Ready to contribute? Here's how to set up cepact for local development.
-
Fork the repo on GitHub.
-
Clone your fork locally.
-
Install the requirements using virtualenv (first create a virtualenv):
pip install -r requirements.txt -
To get the necessary developer tools, run
pip install -r requirements-dev.txt -
Create a branch for local development. Now you can make your changes locally.
-
When you're done making changes, check that your changes pass several requirements
./code-check.sh. If needed add/modify tests. -
Commit your changes and push your branch to GitHub.
-
Submit a pull request through the GitHub website.
Before you submit a pull request, check that it meets these guidelines:
- The pull request should include tests.
- If the pull request adds functionality, the docs should be updated. Put your new functionality into a function with a docstring, and add the feature to the list in README.md.
- The pull request should work for Python 3.12. Make sure that the pipeline passes.
A reminder for the maintainers on how to deploy. Deployment happens manually. Make sure all your changes are committed (including an entry in HISTORY.md), and that the pipelines all pass. Modify the relevant fields in setup.cfg and/or cepact/init.py. Then run::
python3 -m pip install --upgrade build
python3 -m build
python3 -m pip install --upgrade twine
python3 -m twine upload dist/*