From 574458a6481c67fc7143d119ffa55eeab422a821 Mon Sep 17 00:00:00 2001 From: Floris-Jan Willemsen Date: Tue, 12 Sep 2023 12:08:45 +0200 Subject: [PATCH] Finished PyPI publication workflow with Poetry --- .github/workflows/publish-python-package.yml | 20 +++++--------------- CHANGELOG.md | 4 ++-- 2 files changed, 7 insertions(+), 17 deletions(-) diff --git a/.github/workflows/publish-python-package.yml b/.github/workflows/publish-python-package.yml index 8e4f3cbb8..c144987c6 100644 --- a/.github/workflows/publish-python-package.yml +++ b/.github/workflows/publish-python-package.yml @@ -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: @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 23b425551..9277b9192 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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.)