Before contributing, please take time to review our code of conduct here.
$ git clone https://github.com/ebenh/abyssinica/ abyssinica
-
Update
MANIFEST.into include any new, non-source files you may have added. -
Manually increment the version number in
setup.cfg. -
Build the Python package.
$ python3 setup.py sdist -
Install and/or upgrade
twine.$ python3 -m pip install --upgrade twine -
Upload the package to the PyPI test repository.
$ python3 -m twine upload --repository testpypi dist/*Note: Username is
__token__and password is your token for the test repository (make sure to include thepypi-prefix). -
Test the package you just uploaded to the PyPI test repository.
$ virtualenv venv $ source venv/bin/activate $ python3 -m pip install --index-url https://test.pypi.org/simple/ --no-deps abyssinica $ python3 -c "from abyssinica.numerals import arabic_to_geez; print(arabic_to_geez(42));" $ deactivate -
If the above commands complete without errors, upload the library to PyPI.
$ python3 -m twine upload dist/*Note: Username is
__token__and password is your PyPI token (make sure to include thepypi-prefix). -
Tag the release. The value of
${VERSION}should be the package's semantic version prefixed with a "v" (e.g.v1.0.0).$ git tag ${VERSION} && git push --tags -
Optionally, clean your working tree.
$ git clean -idx