Skip to main content

Integrate project upgrade checks in Django's system check framework

Project description

1 Welcome to django-upgrade-check’s documentation!

Version:

0.2.0

Source:

https://github.com/maykinmedia/django-upgrade-check

Keywords:

<keywords>

PythonVersion:

3.10

Build status Code quality checks black Coverage status Documentation Status

python-versions django-versions pypi-version

Integrate project upgrade checks in Django’s system check framework.

2 Features

  • Define supported upgrade paths in settings using Semantic Versioning.

  • Integrates with Django’s system check framework, preventing migrations from running on invalid upgrade paths.

  • Planned: run management commands as part of a check.

  • Planned: hook up your own checks as simple python functions.

  • Battle-tested and doesn’t get in the way during development.

3 Installation and usage

See the documentation on ReadTheDocs or check the docs folder.

4 Local development

To install and develop the library locally, use:

pip install -e .[tests,coverage,docs,release]

When running management commands via django-admin, make sure to add the root directory to the python path (or use python -m django <command>):

export PYTHONPATH=`pwd` DJANGO_SETTINGS_MODULE=testapp.settings
django-admin check
# or other commands like:
# django-admin makemessages -l nl

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_upgrade_check-0.2.0.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_upgrade_check-0.2.0-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file django_upgrade_check-0.2.0.tar.gz.

File metadata

  • Download URL: django_upgrade_check-0.2.0.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for django_upgrade_check-0.2.0.tar.gz
Algorithm Hash digest
SHA256 202cd37c785aea48aa681421bf7ad202e04b8b79a30b0da3d50f7b5f9ea69123
MD5 bd624e03d1af6fce4cae0c887633a068
BLAKE2b-256 cac19cbfc1b08dd180fcaf0252db83fa06078eb92d11faa04912d96b6b6bfd9f

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_upgrade_check-0.2.0.tar.gz:

Publisher: ci.yml on maykinmedia/django-upgrade-check

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file django_upgrade_check-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_upgrade_check-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8212141ad683c0a1721d193da81c026c30d2e9ac1c646bfa46c6bb845e47201b
MD5 d8bac70dbd6bf9116ce0ce1ab714919c
BLAKE2b-256 0d3965648d1c17da5100cc1d3070bae2d244a98f37700c064792225c81a028da

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_upgrade_check-0.2.0-py3-none-any.whl:

Publisher: ci.yml on maykinmedia/django-upgrade-check

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page