This is a simple example package. Getting through the documentation below, we create a simple Python package and publish it on PyPi.
You can use Github-flavored Markdown to write your content.
- Update the version in the
pyproject.toml
file to avoid the errors when uploading the package to TestPyPi or PyPi. - Build:
python -m build
. - Upload:
python -m twine upload --repository testpypi dist/*
.
Run pip install pytest
to install the pytest package. See the tests/utils_test.py
for the tips/tricks to load package path. Then, run pytest
.