Skip to content

Commit

Permalink
[Python] Fix release workflow for Python (#146)
Browse files Browse the repository at this point in the history
Polyglot-release cannot handle the version in setup.py if a file
pyproject.toml exist in the Python project.
Need to specify the packages-dir for
pypa/gh-action-pypi-publish@release/v1
  • Loading branch information
brasmusson authored Jan 7, 2024
1 parent d48e5c2 commit ff2e54c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release-pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,17 @@ jobs:

- name: Install Python package dependencies
run: |
python -m pip install -U pip setuptools wheel twine build
python -m pip install -U pip setuptools wheel twine
pip install -e .
- name: Build dist
run: python -m build .
run: python setup.py sdist bdist_wheel

- name: Check dist
run: twine check dist/*

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: python/dist/
skip-existing: true
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- [Python] Support the feature of escaping also in Python ([#144](https://github.com/cucumber/tag-expressions/pull/144))

### Fixed
- [Python] Added workflow to release to Pypi ([#145](https://github.com/cucumber/tag-expressions/pull/145))
- [Python] Added workflow to release to Pypi ([#145](https://github.com/cucumber/tag-expressions/pull/145), [#146](https://github.com/cucumber/tag-expressions/pull/146), [#20](https://github.com/cucumber/tag-expressions/issues/20))
- [Ruby] Fixed up around 75% of all rubocop offenses ([#138](https://github.com/cucumber/tag-expressions/pull/138))

## [6.0.0] - 2023-10-13
Expand Down
5 changes: 0 additions & 5 deletions python/pyproject.toml

This file was deleted.

0 comments on commit ff2e54c

Please sign in to comment.