Skip to main content

License Latest PyPI version Build Status Coverage Status Code style: black

Django Version Control

A third-party Django application generated with django-plugin-template-cookiecutter.

Quick Start

1. Installation

Install the package via pip:

pip install version_control

2. Configuration

Add "version_control" to your INSTALLED_APPS setting:

INSTALLED_APPS = [
    # ...existing apps...
    "version_control",
]

Enable the middleware by adding it to your MIDDLEWARE setting:

MIDDLEWARE = [
    # ...existing middleware...
    "version_control.middleware.VersionControlMiddleware",
]

3. Version Control Dependencies

Depending on the version control system used by your project, install the corresponding third-party modules:

For Git projects:

pip install GitPython

For Mercurial projects:

pip install hglib         # Python 3.x
pip install python-hglib  # Python 2.7.x

For projects with bumpversion:

pip install bumpversion

Supported Backends

You can explicitly set which backend to use by defining VERSION_CONTROL_BACKEND in your settings.py. The available backends are:

Git

Requires the GitPython dependency.

VERSION_CONTROL_BACKEND = "version_control.backends.git.GitBackend"

Mercurial

Requires the hglib (or python-hglib) dependency.

VERSION_CONTROL_BACKEND = "version_control.backends.mercurial.MercurialBackend"

Bumpversion

Reads the version directly from your bumpversion configuration.

VERSION_CONTROL_BACKEND = "version_control.bumpversion.BumpversionVersionControlBackend"

Dummy

A basic backend useful for testing or local development environments that lack a version control system.

VERSION_CONTROL_BACKEND = "version_control.dummy.DummyBackend"

Release files for version-control 0.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for version-control 0.0.9
File Size Uploaded
version_control-0.0.9.tar.gz 6.9 kB Details

Release files / version_control-0.0.9.tar.gz

Download URL version_control-0.0.9.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a6d3765f642f4af5e985ff587f81c26d38dff4bd3d03339d7968551d47c1c8b0
BLAKE2b-256 checksum
How to use checksums
9c9b39df0349c6f05a3e0d3683c50ff11d06ee531db9647f5f13d112d0b2cf89
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.11.2

Release history Release notifications | RSS feed

This release

0.0.9 This release

1 release file

0.0.8

1 release file

0.0.7

2 release files

0.0.6

1 release file

0.0.5

2 release files

0.0.4

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page