- the code is from https://www.tutorialsteacher.com/python/python-package
- the document refers to https://packaging.python.org/en/latest/tutorials/packaging-projects/
- usage of setup.py, setup.cfg, pyproject.toml:
Open a command ternimal, and then switch to the project directory(where setup.py is). Then use the command below to install
pip install mypackagepy -m buildthen it will create a folder dist and a folder mypackage.egg-info
- there are
*.tar.gzand*.whlin the folderdist
pip install wheel_name.whlThere is a demo:
test.pyin this folder