Skip to content

Conversation

@ollipa
Copy link

@ollipa ollipa commented Jan 4, 2026

I noticed that the project requires installing jinja2, pytest, setuptools, build, and wheel. jinja2, pytest, and setuptools were installed because they were defined as normal dependencies in pyproject.toml. The build workflow also called "poetry add" for build and wheel dependencies before creating the package, which made them end up in the requirements as well. This PR fixes those issues and also moves to a modern PEP 517 build process (using setup.py as a script is deprecated).

  • Remove setup.py in favor of PEP 517 build via pyproject.toml
  • Update GitHub Actions (checkout, setup-python) to v6
  • Simplify release workflow to use 'poetry build'
  • Move pytest and jinja2 to dev-dependencies
  • Add dist/ to .gitignore

I tested the publishing workflow in my own fork against test-pypi (workflow run logs) and everything worked after changes.

- Remove setup.py in favor of PEP 517 build via pyproject.toml
- Update GitHub Actions (checkout, setup-python) to v6
- Simplify release workflow to use 'poetry build'
- Move pytest and jinja2 to dev-dependencies
- Add dist/ to .gitignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant