Skip to main content

m3-django-compatibility

m3-django-compatibility - это библиотека для обеспечения совместимости кода с разными версиями Django. Использование инструментов библиотеки позволяет писать код, работающий без изменений в разных версиях Django.

Поддерживаемые версии Django: 2.0 - 6.1.

Запуск тестов

Тесты запускаются через tox. В системе должен быть установлен uv.

Для корректного запуска тестов необходимы следующие значения переменных окружения в системе. Вместо <login> и <password> необходимо подставить данные от УЗ БАРС:

UV_INDEX="internal=http://<login>:<password>@nexus.py.bars.group/repository/pypi-all/simple"
UV_DEFAULT_INDEX="https://pypi.org/simple"
UV_INDEX_STRATEGY=unsafe-best-match
# Для docker 29+
TOX_DOCKER_GATEWAY=localhost

Чтобы не менять значения системных переменных, можно создать .env файл c переменными окружения и запускать команды через python-dotenv.

Установка tox с необходимыми зависимостями:

uv tool install tox --with tox-uv --with m3-tox-docker

Или с использованием python-dotenv:

dotenv run uv tool install tox --with tox-uv --with m3-tox-docker

Запуск тестов:

tox

Через python-dotenv:

dotenv run tox

Release files for m3-django-compatibility 2.1.0

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

Source distribution (sdist)

Source distribution for m3-django-compatibility 2.1.0
File Size Uploaded
m3_django_compatibility-2.1.0.tar.gz 17.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for m3-django-compatibility 2.1.0
File Interpreter ABI Platform
m3_django_compatibility-2.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 36.5 kB

Release files / m3_django_compatibility-2.1.0.tar.gz

Download URL m3_django_compatibility-2.1.0.tar.gz
Size 17.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d02ade62a70f4f5b43c92027ae045d76789b0148f24d0058ffa87f0966a1ebcd
BLAKE2b-256 checksum
How to use checksums
6c164406b8f2cb0b43a8ea02b3b257068508f8680e0e1a886a24e631266bc01d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.23

Release files / m3_django_compatibility-2.1.0-py3-none-any.whl

Download URL m3_django_compatibility-2.1.0-py3-none-any.whl
Size 18.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0bf3d892b6a3bcd69911daac27e31abb0fdcfdaa8d12c2323ba7e766a93218ab
BLAKE2b-256 checksum
How to use checksums
210c208276e91d5a71066bddab26223cc3b3ace96e1bd2a415b5edb7609de18c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.23

Release history Release notifications | RSS feed

This release

2.1.0 This release

2 release files

2.0.0

2 release files

1.13.0

1 release file

1.12.0

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