Thank you for considering contributing to PyAutoPlot! Contributions, whether they are bug fixes, new features, or improvements to the documentation, are always welcome. Before contributing, please read the following guidelines to ensure smooth collaboration.
-
Fork the Repository Create a fork of this repository to your GitHub account and clone it locally.
-
Set Up the Environment Ensure you have Python 3.6+ installed. You should also install compatible versions of the necessary dependencies for the project.
-
Run Tests Install the package and run the headless regression suite:
python -m pip install . python -m unittest discover -s tests -vpython test.pyis a separate smoke example using the included energy dataset.
-
Report Issues Use the GitHub Issues page to report bugs or suggest features. Please include:
- A clear description of the issue or suggestion.
- Steps to reproduce (for bugs).
-
Make Changes
- Use clear and descriptive commit messages.
- (Optional) Write tests to show new functionality.
- Ensure the code is readable. You can learn more about Python code readability here: https://peps.python.org/pep-0008/.
-
Submit a Pull Request
- Push your changes to a feature branch in your fork.
- Submit a pull request with a detailed explanation of what you've changed or added.
- Ensure your PR passes all automated tests and adheres to the contribution guidelines.
In the pyautoplot project's publishing settings, add a GitHub Trusted Publisher with these values:
| PyPI field | Value |
|---|---|
| Owner | Infinitode |
| Repository name | PyAutoPlot |
| Workflow name | build_and_publish.yml |
| Environment name | Leave blank |
The workflow does not use a GitHub environment or a PyPI API token. Because there is no environment approval step, limit GitHub write access to trusted maintainers and restrict who can create or modify release tags.
-
Update the version in
setup.pyand the release notes inREADME.md. Merge the release changes intomainafter CI passes. -
On the merged release commit, create and push a matching numeric tag (no
vprefix). For 1.1.1:git tag 1.1.1 git push origin refs/tags/1.1.1
-
The Publish to PyPI workflow checks the tag against the built version and runs the regression suite against the wheel before publishing the wheel and source distribution. After publishing, follow the link in the workflow summary or the README's PyPI provenance badge to the Security tab on PyPI. Check that both files have a PyPI Publish attestation. Prior releases without attestations will not gain them retroactively.
To maintain a positive and collaborative community, we ask that all contributors adhere to the following principles:
-
Be Respectful Treat others with respect, regardless of their background or expertise.
-
Provide Constructive Feedback Offer helpful and actionable suggestions during code reviews.
-
Follow Licensing Requirements Ensure that any derivative works comply with the license.
By contributing, you agree to abide by these guidelines and this project's license. Thank you for helping make PyAutoPlot better!