Port of Generalized Watersheds Loading Functions - Enhanced (MapShed)
Install using pip
:
$ pip install gwlf-e
Ensure you have Python 3.9 and pipenv available. Then run:
$ pipenv sync
$ pipenv run nosetests
Create a new release using git flow:
$ git flow release start 3.0.0
$ vim CHANGELOG.md
$ vim setup.py
$ git add CHANGELOG.md setup.py
$ git commit -m "3.0.0"
$ git flow release publish 3.0.0
Then create a wheel to publish to PyPI using build:
$ pipenv run python -m build
This should create two files under dist/
:
$ ls -1 dist/
gwlf-e-3.0.0.tar.gz
gwlf_e-3.0.0-cp39-cp39-macosx_11_0_x86_64.whl
Then publish the wheel to PyPI using twine and credentials from LastPass:
$ python -m twine check dist/*
Checking dist/gwlf_e-3.0.0-cp39-cp39-macosx_11_0_x86_64.whl: PASSED
Checking dist/gwlf-e-3.0.0.tar.gz: PASSED
$ python -m twine upload dist/*
Uploading distributions to https://upload.pypi.org/legacy/
Enter your username: azavea
Enter your password:
Uploading gwlf_e-3.0.0-cp39-cp39-macosx_11_0_x86_64.whl
100%|
Uploading gwlf-e-3.0.0.tar.gz
100%|
View at:
https://pypi.org/project/gwlf-e/3.0.0/
Finally, finish the release:
$ git flow release finish -p 3.0.0
This project is licensed under the terms of the Apache 2.0 license.