with Poetry
January 15, 2023
pyproject.toml contains the metadata and dependencies of the project.
simple_calculator folder contains the source code.tests folder contains the tests.Adding a new dependency:
Installing dependencies
Running the project
Running a script
Running pytest
Building the project generates both sdist (sourse) and wheel (compiled) formats.
You can then publish your package on PyPi
To publish a package on PyPI, you need to create an account on https://pypi.org.
Before publishing on the main repository, it is better to test your package on Test PyPI.
The process is similar. You need to create an account on Test PyPI and get a token.
Increase the version (patch, minor, major, …, prerelease)
Publish!