How to create a Python package in 2022
mathspp.com
How to create a Python package in 2022
1–10 of 153 posts
Re: How to create a Python package in 2022
#2Re: How to create a Python package in 2022
#3Re: How to create a Python package in 2022
#4Re: How to create a Python package in 2022
#5Re: How to create a Python package in 2022
#6If I can be forgiven one nitpick: Poetry does not use a PEP 518-style[1] build configuration by default, which means that its use of `pyproject.toml` is slightly out of pace with the rest of the Python packaging ecosystem. That isn't to say that it isn't excellent, because it is! But you the standards have come a long way, and you can now use `pyproject.toml` with any build backend as long as you use the standard metadata.
By way of example, here's a project that's completely PEP 517 and PEP 518 compatible without needing a setup.py or setup.cfg[2]. Everything goes through pyproject.toml.
[1]: https://peps.python.org/pep-0518/
[2]: https://github.com/trailofbits/pip-audit/blob/main/pyproject...
Re: How to create a Python package in 2022
#7Re: How to create a Python package in 2022
#8I don't have a blog post but you can see the process on my personal project https://github.com/DontShaveTheYak/cf2tf
Check out the merged PR's and the GitHub actions.
I even do alpha releases to test pypi.
Re: How to create a Python package in 2022
#9"How do you create a Python package? How do you set up automated testing and code coverage? How do you publish the package? That's what this article teaches you." — delivered as promised!
Re: How to create a Python package in 2022
#10 [tool.tox]
legacy_tox_ini = """"""