Skip to content

Commit

Permalink
fix: 馃搷 Pin Packaging Requirements; Fix file path in publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hf-kklein committed Jan 20, 2024
1 parent e9b66d4 commit e575f2e
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

2 changes: 2 additions & 0 deletions dev_requirements/requirements-test_packaging.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
build
twine
66 changes: 66 additions & 0 deletions dev_requirements/requirements-test_packaging.txt
Original file line number Diff line number Diff line change
@@ -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
3 changes: 1 addition & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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/*

0 comments on commit e575f2e

Please sign in to comment.