use pip-compile and dependabot grouped updates (#2656)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by David Lord · committed by GitHub · parents ca5e1c3, d7cc790 · Browse files · 13 files·+205 added−118 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
13 files+205 added−118 removed
- other:+205 added−118 removed
Provenance
- Commit
93b7ab5- Tree
45ddb2f- Author
David Lord <davidism@gmail.com>- Committer
GitHub <noreply@github.com>- Parent 1
ca5e1c3- Parent 2
d7cc790
13 files changed+205 added−118 removed
modified:.github/workflows/lock.yaml+5 added-5 removed
1234512345678916 unmodified linesname: 'Lock threads'# Lock closed issues that have not received any further activity for# two weeks. This does not close open issues, only humans may do that.# We find that it is easier to respond to new issues with fresh examples# rather than continuing discussions on old issues.name: 'Lock inactive closed issues'# Lock closed issues that have not received any further activity for two weeks.# This does not close open issues, only humans may do that. We find that it is# easier to respond to new issues with fresh examples rather than continuing# discussions on old issues.
on: schedule: - cron: '0 0 * * *'16 unmodified linesmodified:.github/workflows/publish.yaml+13 added-13 removed
7 unmodified lines89101112131213141516171617181920214 unmodified lines2627282930303132333435363637383940414242434445465 unmodified lines52535455565657585959606162636465656667686967686970717 unmodified lines runs-on: ubuntu-latest outputs: hash: ${{ steps.hash.outputs.hash }} steps: - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 - uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 - uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435 with: python-version: '3.x' cache: 'pip' cache-dependency-path: 'requirements/*.txt' cache: pip cache-dependency-path: requirements/*.txt - run: pip install -r requirements/build.txt # Use the commit date instead of the current date during the build. - run: echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV - run: python -m build4 unmodified lines - uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce with: path: ./dist provenance: needs: ['build'] needs: [build] permissions: actions: read id-token: write contents: write # Can't pin with hash due to how this workflow works. uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v1.9.0 uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v1.7.0 with: base64-subjects: ${{ needs.build.outputs.hash }} create-release: # Upload the sdist, wheels, and provenance to a GitHub release. They remain # available as build artifacts for a while as well. needs: ['provenance'] needs: [provenance] runs-on: ubuntu-latest permissions: contents: write steps:5 unmodified lines *.intoto.jsonl/* artifact/* env: GH_TOKEN: ${{ github.token }} publish-pypi: needs: ['provenance'] needs: [provenance] # Wait for approval before attempting to upload to PyPI. This allows reviewing the # files in the draft release. environment: 'publish' environment: publish runs-on: ubuntu-latest permissions: id-token: write steps: - uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a - uses: pypa/gh-action-pypi-publish@b7f401de30cb6434a1e19f805ff006643653240e - uses: pypa/gh-action-pypi-publish@29930c9cf57955dc1b98162d0d8bc3ec80d9e75c with: repository_url: https://test.pypi.org/legacy/ packages_dir: artifact/ - uses: pypa/gh-action-pypi-publish@b7f401de30cb6434a1e19f805ff006643653240e repository-url: https://test.pypi.org/legacy/ packages-dir: artifact/ - uses: pypa/gh-action-pypi-publish@29930c9cf57955dc1b98162d0d8bc3ec80d9e75c with: packages-dir: artifact/modified:.github/workflows/tests.yaml+16 added-14 removed
7 unmodified lines891011121314121314154 unmodified lines20212223272829302425262728293031353233373834353637414238394041424344454446474847495051527 unmodified lines - 'docs/**' - '*.md' - '*.rst' pull_request: branches: - main - '*.x' paths-ignore: - 'docs/**' - '*.md' - '*.rst'4 unmodified lines strategy: fail-fast: false matrix: include: - {name: Linux, python: '3.11', os: ubuntu-latest, tox: py311} - {name: Windows, python: '3.11', os: windows-latest, tox: py311} - {name: Mac, python: '3.11', os: macos-latest, tox: py311} - {name: '3.12-dev', python: '3.12-dev', os: ubuntu-latest, tox: py312} - {name: Linux, python: '3.12', os: ubuntu-latest, tox: py312} - {name: Windows, python: '3.12', os: windows-latest, tox: py312} - {name: Mac, python: '3.12', os: macos-latest, tox: py312} - {name: '3.11', python: '3.11', os: ubuntu-latest, tox: py311} - {name: '3.10', python: '3.10', os: ubuntu-latest, tox: py310} - {name: '3.9', python: '3.9', os: ubuntu-latest, tox: py39} - {name: '3.8', python: '3.8', os: ubuntu-latest, tox: py38} - {name: 'PyPy', python: 'pypy-3.10', os: ubuntu-latest, tox: pypy310} - {name: Typing, python: '3.11', os: ubuntu-latest, tox: typing} - {name: Typing, python: '3.12', os: ubuntu-latest, tox: typing} steps: - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 - uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c - uses: actions/setup-python@5ccb29d8773c3f3f653e1705f474dfaa8a06a912 with: python-version: ${{ matrix.python }} cache: 'pip' cache-dependency-path: 'requirements/*.txt' cache: pip cache-dependency-path: requirements/*.txt - name: update pip run: | pip install -U wheel pip install -U setuptools python -m pip install -U pip - name: cache mypy uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 uses: actions/cache@58c146cc91c5b9e778e71775dfe9bf1442ad9a12 with: path: ./.mypy_cache key: mypy|${{ matrix.python }}|${{ hashFiles('pyproject.toml') }} key: mypy|${{ matrix.python }}|${{ hashFiles('setup.cfg') }} if: matrix.tox == 'typing' - run: pip install tox - run: tox run -e ${{ matrix.tox }}modified:.github/dependabot.yml+16 added-7 removed
1234567893456789101112131415161718version: 2updates:- package-ecosystem: "github-actions" directory: "/" schedule: interval: "monthly" day: "monday" time: "16:00" timezone: "UTC" - package-ecosystem: github-actions directory: / schedule: interval: monthly groups: github-actions: patterns: - '*' - package-ecosystem: pip directory: /requirements/ schedule: interval: monthly groups: python-requirements: patterns: - '*'modified:requirements/build.txt+6 added-7 removed
1-# SHA1:80754af91bfb6d1073585b046fe0a474ce8685091 #3-# This file is autogenerated by pip-compile-multi4-# To update, run:2+# This file is autogenerated by pip-compile with Python 3.123+# by the following command:4 #6-# pip-compile-multi5+# pip-compile build.in6 #8-build==0.10.09- # via -r requirements/build.in10-packaging==23.17+build==1.0.38+ # via -r build.in9+packaging==23.210 # via build11 pyproject-hooks==1.0.012 # via buildmodified:requirements/dev.in+1 added-1 removed
1 -r docs.in2 -r tests.in3 -r typing.in4-pip-compile-multi4+pip-tools5 pre-commit6 toxmodified:requirements/dev.txt+109 added-29 removed
1-# SHA1:54b5b77ec8c7a0064ffa93b2fd16cb0130ba177c1 #3-# This file is autogenerated by pip-compile-multi4-# To update, run:2+# This file is autogenerated by pip-compile with Python 3.123+# by the following command:4 #6-# pip-compile-multi5+# pip-compile dev.in6 #8--r docs.txt9--r tests.txt10--r typing.txt11-build==0.10.07+alabaster==0.7.138+ # via sphinx9+babel==2.14.010+ # via sphinx11+build==1.0.312 # via pip-tools13-cachetools==5.3.113+cachetools==5.3.214 # via tox15+certifi==2023.11.1716+ # via requests17 cfgv==3.4.018 # via pre-commit19 chardet==5.2.020 # via tox19-click==8.1.620- # via21- # pip-compile-multi22- # pip-tools21+charset-normalizer==3.3.222+ # via requests23+click==8.1.724+ # via pip-tools25 colorama==0.4.626 # via tox25-distlib==0.3.727+distlib==0.3.828 # via virtualenv27-filelock==3.12.229+docutils==0.18.130 # via31+ # sphinx32+ # sphinx-tabs33+filelock==3.13.134+ # via35 # tox36 # virtualenv31-identify==2.5.2637+identify==2.5.3338 # via pre-commit33-pip-compile-multi==2.6.334- # via -r requirements/dev.in39+idna==3.640+ # via requests41+imagesize==1.4.142+ # via sphinx43+iniconfig==2.0.044+ # via pytest45+jinja2==3.1.246+ # via sphinx47+markupsafe==2.1.348+ # via jinja249+mypy==1.8.050+ # via -r typing.in51+mypy-extensions==1.0.052+ # via mypy53+nodeenv==1.8.054+ # via55+ # pre-commit56+ # pyright57+packaging==23.258+ # via59+ # build60+ # pallets-sphinx-themes61+ # pyproject-api62+ # pytest63+ # sphinx64+ # tox65+pallets-sphinx-themes==2.1.166+ # via -r docs.in67 pip-tools==7.3.036- # via pip-compile-multi37-platformdirs==3.10.068+ # via -r dev.in69+platformdirs==4.1.070 # via71 # tox72 # virtualenv41-pre-commit==3.3.342- # via -r requirements/dev.in43-pyproject-api==1.5.473+pluggy==1.3.074+ # via75+ # pytest76+ # tox77+pre-commit==3.6.078+ # via -r dev.in79+pygments==2.17.280+ # via81+ # sphinx82+ # sphinx-tabs83+pyproject-api==1.6.184 # via tox85 pyproject-hooks==1.0.086 # via build87+pyright==1.1.34388+ # via -r typing.in89+pytest==7.4.390+ # via -r tests.in91 pyyaml==6.0.192 # via pre-commit49-toposort==1.1050- # via pip-compile-multi51-tox==4.9.052- # via -r requirements/dev.in53-virtualenv==20.24.393+requests==2.31.094+ # via sphinx95+snowballstemmer==2.2.096+ # via sphinx97+sphinx==7.2.698 # via99+ # -r docs.in100+ # pallets-sphinx-themes101+ # sphinx-issues102+ # sphinx-tabs103+ # sphinxcontrib-applehelp104+ # sphinxcontrib-devhelp105+ # sphinxcontrib-htmlhelp106+ # sphinxcontrib-log-cabinet107+ # sphinxcontrib-qthelp108+ # sphinxcontrib-serializinghtml109+sphinx-issues==3.0.1110+ # via -r docs.in111+sphinx-tabs==3.4.4112+ # via -r docs.in113+sphinxcontrib-applehelp==1.0.7114+ # via sphinx115+sphinxcontrib-devhelp==1.0.5116+ # via sphinx117+sphinxcontrib-htmlhelp==2.0.4118+ # via sphinx119+sphinxcontrib-jsmath==1.0.1120+ # via sphinx121+sphinxcontrib-log-cabinet==1.0.1122+ # via -r docs.in123+sphinxcontrib-qthelp==1.0.6124+ # via sphinx125+sphinxcontrib-serializinghtml==1.1.9126+ # via sphinx127+tox==4.11.4128+ # via -r dev.in129+typing-extensions==4.9.0130+ # via mypy131+urllib3==2.1.0132+ # via requests133+virtualenv==20.25.0134+ # via135 # pre-commit136 # tox57-wheel==0.41.1137+wheel==0.42.0138 # via pip-tools139 140 # The following packages are considered to be unsafe in a requirements file:141 # pip1 unmodified linemodified:requirements/docs.in+2 added-2 removed
1-Pallets-Sphinx-Themes2-Sphinx1+pallets-sphinx-themes2+sphinx3 sphinx-issues4 sphinxcontrib-log-cabinet5 sphinx-tabsmodified:requirements/docs.txt+18 added-19 removed
1-# SHA1:34fd4ca6516e97c7348e6facdd9c4ebb68209d1c1 #3-# This file is autogenerated by pip-compile-multi4-# To update, run:2+# This file is autogenerated by pip-compile with Python 3.123+# by the following command:4 #6-# pip-compile-multi5+# pip-compile docs.in6 #7 alabaster==0.7.138 # via sphinx10-babel==2.12.19+babel==2.14.010 # via sphinx12-certifi==2023.7.2211+certifi==2023.11.1712 # via requests14-charset-normalizer==3.2.013+charset-normalizer==3.3.214 # via requests15 docutils==0.18.116 # via17 # sphinx18 # sphinx-tabs20-idna==3.419+idna==3.620 # via requests21 imagesize==1.4.122 # via sphinx23 jinja2==3.1.224 # via sphinx25 markupsafe==2.1.326 # via jinja228-packaging==23.127+packaging==23.228 # via29 # pallets-sphinx-themes30 # sphinx31 pallets-sphinx-themes==2.1.133- # via -r requirements/docs.in34-pygments==2.16.132+ # via -r docs.in33+pygments==2.17.234 # via35 # sphinx36 # sphinx-tabs37 requests==2.31.038 # via sphinx39 snowballstemmer==2.2.040 # via sphinx42-sphinx==7.2.141+sphinx==7.2.642 # via44- # -r requirements/docs.in43+ # -r docs.in44 # pallets-sphinx-themes45 # sphinx-issues46 # sphinx-tabs47 # sphinxcontrib-applehelp2 unmodified lines50 # sphinxcontrib-log-cabinet51 # sphinxcontrib-qthelp52 # sphinxcontrib-serializinghtml53 sphinx-issues==3.0.155- # via -r requirements/docs.in56-sphinx-tabs==3.4.157- # via -r requirements/docs.in54+ # via -r docs.in55+sphinx-tabs==3.4.456+ # via -r docs.in57 sphinxcontrib-applehelp==1.0.758 # via sphinx59 sphinxcontrib-devhelp==1.0.560 # via sphinx1 unmodified line62 # via sphinx63 sphinxcontrib-jsmath==1.0.164 # via sphinx65 sphinxcontrib-log-cabinet==1.0.167- # via -r requirements/docs.in66+ # via -r docs.in67 sphinxcontrib-qthelp==1.0.668 # via sphinx70-sphinxcontrib-serializinghtml==1.1.869+sphinxcontrib-serializinghtml==1.1.970 # via sphinx72-urllib3==2.0.471+urllib3==2.1.072 # via requestsmodified:requirements/tests.txt+7 added-8 removed
1-# SHA1:0eaa389e1fdb3a1917c0f987514bd561be5718ee1 #3-# This file is autogenerated by pip-compile-multi4-# To update, run:2+# This file is autogenerated by pip-compile with Python 3.123+# by the following command:4 #6-# pip-compile-multi5+# pip-compile tests.in6 #7 iniconfig==2.0.08 # via pytest10-packaging==23.19+packaging==23.210 # via pytest12-pluggy==1.2.011+pluggy==1.3.012 # via pytest14-pytest==7.4.015- # via -r requirements/tests.in13+pytest==7.4.314+ # via -r tests.inmodified:requirements/typing.txt+8 added-9 removed
1-# SHA1:0d25c235a98f3c8c55aefb59b91c82834e185f0a1 #3-# This file is autogenerated by pip-compile-multi4-# To update, run:2+# This file is autogenerated by pip-compile with Python 3.123+# by the following command:4 #6-# pip-compile-multi5+# pip-compile typing.in6 #8-mypy==1.5.19- # via -r requirements/typing.in7+mypy==1.8.08+ # via -r typing.in9 mypy-extensions==1.0.010 # via mypy11 nodeenv==1.8.012 # via pyright14-pyright==1.1.32315- # via -r requirements/typing.in16-typing-extensions==4.7.113+pyright==1.1.34314+ # via -r typing.in15+typing-extensions==4.9.016 # via mypy17 18 # The following packages are considered to be unsafe in a requirements file:19 # setuptoolsmodified:src/click/decorators.py+2 added-2 removed
92 unmodified lines93 return ctx.invoke(f, obj, *args, **kwargs)94 95 return update_wrapper(new_func, f)96 97- return decorator # type: ignore[return-value]97+ return decorator98 99 100 def pass_meta_key(101 key: str, *, doc_description: str | None = None24 unmodified lines126 decorator.__doc__ = (127 f"Decorator that passes {doc_description} as the first argument"128 " to the decorated function."129 )130- return decorator # type: ignore[return-value]130+ return decorator131 132 133 CmdType = t.TypeVar("CmdType", bound=Command)134 429 unmodified linesmodified:.readthedocs.yaml+2 added-2 removed
1 version: 22 build:3- os: ubuntu-20.043+ os: ubuntu-22.044 tools:5- python: "3.10"5+ python: "3.12"6 python:7 install:8 - requirements: requirements/docs.txt9 - method: pip4 unmodified lines