Skip to content

Commit

Permalink
Finished PyPI publication workflow with Poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
fjwillemsen committed Sep 12, 2023
1 parent 06eacb3 commit 574458a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 17 deletions.
20 changes: 5 additions & 15 deletions .github/workflows/publish-python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ on:
release:
types:
- published
push:
branches:
- "searchspace_improvements"

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -46,21 +43,14 @@ jobs:
exit 1;
fi
EXPECTED_WHEELS_COUNT=11
EXPECTED_WHEELS_COUNT=1
WHEELS_COUNT=$(ls -lR ./dist/*.whl | wc -l)
echo "Number of wheel distributions: $WHEELS_COUNT"
if [ "$WHEELS_COUNT" -ne "$EXPECTED_WHEELS_COUNT" ]; then
echo "::error::Number of wheel distributions $WHEELS_COUNT not equal to $EXPECTED_WHEELS_COUNT"
exit 1;
fi
# - name: Publish package distributions to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# skip-existing: true
# Old alternative:
# - name: Publish package
# uses: pypa/gh-action-pypi-publish@release/v1.5
# with:
# user: __token__
# password: ${{ secrets.PYPI_API_TOKEN }}
# verbose: true
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
skip-existing: true
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- Implemented ability to use `PySMT` and `ATF` for searchspace building
- Added Poetry for dependency and build management
- Switched from `setup.py` and `setup.cfg` to `pyproject.toml` for centralized metadata, added relevant tests
- Updated GitHub Action workflows to use Poetry [TODO]:
- Updated dependencies, most notably NumPy is no longer version-locked as scikit-opt is no longer a dependency [TODO]: set correct dependencies for .[cuda] etc., and correct dev dependencies
- Updated GitHub Action workflows to use Poetry
- Updated dependencies, most notably NumPy is no longer version-locked as scikit-opt is no longer a dependency [TODO]: set correct dependencies for .[cuda] etc., and correct dev dependencies / update instructions for installation
- Documentation now uses `pyproject.toml` metadata, minor changes to be compatible with updated dependencies [TODO]: make sure documentation works
- Set up Nox for testing on all supported Python versions in isolated environments
- Added linting information, VS Code settings and recommendations [TODO]: update documentation (contributing etc.)
Expand Down

0 comments on commit 574458a

Please sign in to comment.