Distributing gnlpy makes it easier for people to install gnlpy in their python environment using pip.
This document explains the process to build a new package.
pip install twine wheel
or
make deps
Before building a new package:
- change the version number in
setup.py
. - update the
CHANGELOG.md
- tag the release in github
We build a wheel package as this is pure python module. It is made universal
via settings in setup.cfg
:
python setup.py bdist_wheel
or
make build
To upload to PyPI we use twine. First make sure you have an account.
twine upload dist/gnlpy-version-py2.py3-none-any.whl
or
make upload