Contributing¶
Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given.
Types of contributions¶
Report bugs¶
Report bugs at https://github.com/javipalanca/spade_pubsub/issues. If you are reporting a bug, please include:
- Your operating system name and version, and the versions of Python, SPADE and SPADE PubSub.
- The XMPP server you use.
- Detailed steps to reproduce the bug.
Fix bugs and implement features¶
Look through the GitHub issues: anything tagged with "bug" or "enhancement" and "help wanted" is open to whoever wants to implement it.
Write documentation¶
SPADE PubSub could always use more documentation, whether as part of the official docs, in docstrings, or even on the web in blog posts, articles, and such.
Submit feedback¶
The best way to send feedback is to file an issue at https://github.com/javipalanca/spade_pubsub/issues. If you are proposing a feature:
- Explain in detail how it would work.
- Keep the scope as narrow as possible, to make it easier to implement.
- Remember that this is a volunteer-driven project, and that contributions are welcome :)
Get started¶
Ready to contribute? Here's how to set up spade_pubsub for local development.
-
Fork the
spade_pubsubrepo on GitHub, and clone your fork locally: -
Install uv and create the development environment (
.venv): -
Create a branch for local development from
develop:Now you can make your changes locally.
-
When you're done making changes, check that they pass the linter and the tests, also on the other supported Python versions (the tests start their own XMPP server):
If you changed the documentation, preview it with
make servedocs, and check thatmake docsbuilds it without warnings. -
Commit your changes and push your branch to GitHub:
-
Submit a pull request to the
developbranch through the GitHub website.
Pull request guidelines¶
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: add docstrings to the new functions, and
explain the feature in the guides (
docs/). - The pull request should work for Python 3.11, 3.12, 3.13 and 3.14. Check the GitHub Actions of your pull request and make sure that the tests pass for all supported Python versions.
Tips¶
To run a subset of tests:
Deploying¶
A reminder for the maintainers on how to deploy. Make sure all your changes are committed (including an entry in
HISTORY.md). Then run:
uv run bump-my-version bump patch # possible: major / minor / patch
git push
git tag v<version> && git push origin v<version>
The Publish to PyPI workflow publishes the version tag to PyPI.