Contributing¶
Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given.
Get Started!¶
Ready to contribute? Here’s how to set up django_dd_logger for local development.
Fork the django_dd_logger repo on GitHub.
Clone your fork locally:
$ git clone git@github.com:your_name_here/django_dd_logger.git
Install your local copy into a virtualenv. Assuming you have virtualenvwrapper installed, this is how you set up your fork for local development:
$ pip install . $ pip install .[dev] For zsh: `pip install ."[dev]"`
Create a branch for local development:
$ git checkout -b name-of-your-bugfix-or-feature
Now you can make your changes locally.
When you’re done making changes, check that your changes pass ruff and the tests. This will be replaced with pre-commit. Other versions of Python are checked with CI:
$ make lint $ make test
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
Submit a pull request 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. Put your new functionality into a function with a docstring, and add the feature to the list in README.rst.
The pull request should work for Python 3.7, 3.8, 3.9, 3.10, 3.11 and 3.12.
Deploying¶
A reminder for the maintainers on how to deploy. Make sure all your changes are committed (including an entry in HISTORY.rst). Then create a Pull Request on Github with one of the following labels: patch, minor or major. Release will be handled manually by the maintainers.
Release Process¶
Update the version in django_dd_logger/__init__.py and pyproject.toml to a new version number following semantic versioning.
Update HISTORY.rst with the new version number, date and changes.
Commit the changes with the title “Release version X.Y.Z”.
Create a git tag for the new version: git tag -a X.Y.Z -m “Version X.Y.Z”
Push the changes and tag: git push –follow-tags
Create a new release on GitHub with the release notes from HISTORY.rst.
Publish the new release to PyPI: make release.