From c13615ffb83b6f2a096f33548308783285c8dbf9 Mon Sep 17 00:00:00 2001 From: konstantin Date: Sat, 20 Jan 2024 14:28:05 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=93=8D=20Pin=20packaging=20require?= =?UTF-8?q?ments;=20Fix=20file=20path=20in=20publish=20workflow=20(#217)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix: 📍 Pin Packaging Requirements; Fix file path in publish workflow --- .github/workflows/python-publish.yml | 3 +- .../requirements-test_packaging.in | 2 + .../requirements-test_packaging.txt | 66 +++++++++++++++++++ tox.ini | 3 +- 4 files changed, 70 insertions(+), 4 deletions(-) create mode 100644 dev_requirements/requirements-test_packaging.in create mode 100644 dev_requirements/requirements-test_packaging.txt diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 3dd0653d..97f8a221 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -52,11 +52,10 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -r dev_requirements/requirements-packaging.txt + pip install -r dev_requirements/requirements-test_packaging.txt - name: Build wheel and source distributions run: | python -m build - name: Publish distribution 📦 to PyPI if: startsWith(github.ref, 'refs/tags/v') uses: pypa/gh-action-pypi-publish@release/v1 - diff --git a/dev_requirements/requirements-test_packaging.in b/dev_requirements/requirements-test_packaging.in new file mode 100644 index 00000000..e47b6e99 --- /dev/null +++ b/dev_requirements/requirements-test_packaging.in @@ -0,0 +1,2 @@ +build +twine diff --git a/dev_requirements/requirements-test_packaging.txt b/dev_requirements/requirements-test_packaging.txt new file mode 100644 index 00000000..8cea2844 --- /dev/null +++ b/dev_requirements/requirements-test_packaging.txt @@ -0,0 +1,66 @@ +# +# This file is autogenerated by pip-compile with Python 3.11 +# by the following command: +# +# pip-compile '.\requirements-test_packaging.in' +# +build==1.0.3 + # via -r .\requirements-test_packaging.in +certifi==2023.11.17 + # via requests +charset-normalizer==3.3.2 + # via requests +colorama==0.4.6 + # via build +docutils==0.20.1 + # via readme-renderer +idna==3.6 + # via requests +importlib-metadata==7.0.1 + # via + # keyring + # twine +jaraco-classes==3.3.0 + # via keyring +keyring==24.3.0 + # via twine +markdown-it-py==3.0.0 + # via rich +mdurl==0.1.2 + # via markdown-it-py +more-itertools==10.2.0 + # via jaraco-classes +nh3==0.2.15 + # via readme-renderer +packaging==23.2 + # via build +pkginfo==1.9.6 + # via twine +pygments==2.17.2 + # via + # readme-renderer + # rich +pyproject-hooks==1.0.0 + # via build +pywin32-ctypes==0.2.2 + # via keyring +readme-renderer==42.0 + # via twine +requests==2.31.0 + # via + # requests-toolbelt + # twine +requests-toolbelt==1.0.0 + # via twine +rfc3986==2.0.0 + # via twine +rich==13.7.0 + # via twine +twine==4.0.2 + # via -r .\requirements-test_packaging.in +urllib3==2.1.0 + # via + # requests + # twine +zipp==3.17.0 + # via importlib-metadata diff --git a/tox.ini b/tox.ini index ba0f6a48..91026147 100644 --- a/tox.ini +++ b/tox.ini @@ -72,8 +72,7 @@ commands = [testenv:test_packaging] skip_install = true deps = - build - twine + -r dev_requirements/requirements-test_packaging.txt commands = python -m build twine check dist/*