To run the linter, run make lint
Before packaging, make sure all information (such as version and development status) is up to date in setup.py
-
To build the Pypi package, run the following:
python setup.py sdist bdist_wheelsdistbuilds the distribution directory, andbdist\_wheelbuilds the wheel for faster installs. -
Both
egg-info(describes package information), andbuild(temp directory for setuptools) are unneeded, so clean up:python setup.py clean --all # Removes build dir rm -r *.egg-info -
Make sure the README files in the package fit Pypi's requirements:
twine check dist/* -
Follow the instructions found here to upload to Pypi, or here to upload to the Pypi test instance.
-
Once the package is uploaded, you can safely delete the dist directory:
rm -r dist
- Look into autocleanup of build directories, see this github issue for setuptools.
- Update documentation link in setup.py once documentation is set up
- Update the version and 'development status' in setup.py once ready for release