Repository for dumping additional models for use with gwpopulation that I don't want to add to the main package.
This is also intended as a template for downstream users to implement models and provide a minimal packaging example.
- Create a copy of this repository using the "Use this template" button on GitHub.
- Go through
setup.cfg,pyproject.tomland update to match your package name. - Replace the
gwpopulation_additional_modelsdirectory with one matching your package name. Make sure to include the__init__.pyfile for packaging. - Add your model to this new directory.
- If you use
gwpopulation.utils.xporgwpopulation.utils.scsin your model, you will need to update the[options.entry_points]insetup.cfg. - Update
requirements.txtto add any additional packages you need. - Write meaningful unit tests in the
testsdirectory, these will run automatically via GitHub actions. - If you want to release the package to
pypi, you need to set your access token using a secret. Versions can then be pushed to pypi by creating a tag and release. The version of the code is automatically set usingsetuptools_scm.
This template is set up to automate packaging and accessing the GWPopulation backend.
This is intended for users who are looking to share their models as published packages, which is always a good idea.