ntung / my-first-python-package

My First Python Package

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple Python Package

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.

How to build and upload

  1. Update the version in the pyproject.toml file to avoid the errors when uploading the package to TestPyPi or PyPi.
  2. Build: python -m build.
  3. Upload: python -m twine upload --repository testpypi dist/*.

Tests

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.

References

Packaging Python Projects

About

My First Python Package

License:MIT License


Languages

Language:Python 100.0%