Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use pyproject.toml instead of setup.py #22

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

lewisblake
Copy link
Contributor

@lewisblake lewisblake commented Mar 16, 2024

It is now strongly recommended to use a pyproject.toml file instead of a setup.py file to declare the setup for the packaging of Python projects.

Changes:

  • Introduces pyproject.toml
  • Removes setup.py and tox.ini
  • Introduces optional dependencies mypy, pytest-sugar, and black
  • Bumps the version to 0.1.4

This PR really requires testing before merging into master. I can not say at this stage that everything is correct, but I am opening this PR to test out the changes, see if/where things fail, and get some feedback. Contributions welcome.

@lewisblake lewisblake marked this pull request as ready for review March 16, 2024 10:38
@lewisblake
Copy link
Contributor Author

NB: mypy is throwing a lot of errors about the typescripting, etc. Please let me know if you do not want to keep this as a optional dependency. A subsequent PR would need to go through the issues and see which ones are relevant, if mypy is useful and we want to include it.

@lewisblake
Copy link
Contributor Author

@florafauna any thoughts on this? I went back to using setuptools for the packaging. The build passes my local tests as well as on CI.

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