Skip to content

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.

  1. Fork the spade_pubsub repo on GitHub, and clone your fork locally:

    git clone git@github.com:your_name_here/spade_pubsub.git
    
  2. Install uv and create the development environment (.venv):

    cd spade_pubsub/
    make install-dev
    
  3. Create a branch for local development from develop:

    git checkout -b name-of-your-bugfix-or-feature develop
    

    Now you can make your changes locally.

  4. 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):

    make lint
    make test
    make test-all
    

    If you changed the documentation, preview it with make servedocs, and check that make docs builds it without warnings.

  5. Commit your changes and push your branch to GitHub:

    git add .
    git commit -m "Your detailed description of your changes."
    git push origin name-of-your-bugfix-or-feature
    
  6. Submit a pull request to the develop branch through the GitHub website.

Pull request guidelines

Before you submit a pull request, check that it meets these guidelines:

  1. The pull request should include tests.
  2. 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/).
  3. 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:

uv run pytest tests/test_spade_pubsub_e2e.py -k publish

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.