A Python port of Generalized Watersheds Loading Functions - Enhanced (MapShed)


Keywords
gwlf-e, watershed, hydrology, civic-apps-team, hydrology-modeling, numba
License
Apache-2.0
Install
pip install gwlf-e==3.1.0

Documentation

gwlf-e

Port of Generalized Watersheds Loading Functions - Enhanced (MapShed)

Build Status

Installation

Install using pip:

$ pip install gwlf-e

Development

Ensure you have Python 3.9 and pipenv available. Then run:

$ pipenv sync

Running Locally

$ pipenv run ./run.py --json test/integrationtests/input_4_output.json test/integrationtests/input_4.gms

Testing

$ pipenv run nosetests

Deployments

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

License

This project is licensed under the terms of the Apache 2.0 license.