django-api-versioning 0.3.6__tar.gz → 0.3.7__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. {django_api_versioning-0.3.6 → django_api_versioning-0.3.7}/CHANGELOG.md +11 -0
  2. {django_api_versioning-0.3.6/django_api_versioning.egg-info → django_api_versioning-0.3.7}/PKG-INFO +35 -13
  3. {django_api_versioning-0.3.6 → django_api_versioning-0.3.7}/README.md +34 -10
  4. {django_api_versioning-0.3.6 → django_api_versioning-0.3.7/django_api_versioning.egg-info}/PKG-INFO +35 -13
  5. {django_api_versioning-0.3.6 → django_api_versioning-0.3.7}/pyproject.toml +1 -3
  6. {django_api_versioning-0.3.6 → django_api_versioning-0.3.7}/LICENSE +0 -0
  7. {django_api_versioning-0.3.6 → django_api_versioning-0.3.7}/MANIFEST.in +0 -0
  8. {django_api_versioning-0.3.6 → django_api_versioning-0.3.7}/django_api_versioning/__init__.py +0 -0
  9. {django_api_versioning-0.3.6 → django_api_versioning-0.3.7}/django_api_versioning/channels.py +0 -0
  10. {django_api_versioning-0.3.6 → django_api_versioning-0.3.7}/django_api_versioning/decorators.py +0 -0
  11. {django_api_versioning-0.3.6 → django_api_versioning-0.3.7}/django_api_versioning/exceptions.py +0 -0
  12. {django_api_versioning-0.3.6 → django_api_versioning-0.3.7}/django_api_versioning/lifecycle.py +0 -0
  13. {django_api_versioning-0.3.6 → django_api_versioning-0.3.7}/django_api_versioning/management/__init__.py +0 -0
  14. {django_api_versioning-0.3.6 → django_api_versioning-0.3.7}/django_api_versioning/management/commands/__init__.py +0 -0
  15. {django_api_versioning-0.3.6 → django_api_versioning-0.3.7}/django_api_versioning/management/commands/check_versions.py +0 -0
  16. {django_api_versioning-0.3.6 → django_api_versioning-0.3.7}/django_api_versioning/management/commands/migrate_endpoints.py +0 -0
  17. {django_api_versioning-0.3.6 → django_api_versioning-0.3.7}/django_api_versioning/registry.py +0 -0
  18. {django_api_versioning-0.3.6 → django_api_versioning-0.3.7}/django_api_versioning/reverse.py +0 -0
  19. {django_api_versioning-0.3.6 → django_api_versioning-0.3.7}/django_api_versioning/settings.py +0 -0
  20. {django_api_versioning-0.3.6 → django_api_versioning-0.3.7}/django_api_versioning/testing.py +0 -0
  21. {django_api_versioning-0.3.6 → django_api_versioning-0.3.7}/django_api_versioning/urls.py +0 -0
  22. {django_api_versioning-0.3.6 → django_api_versioning-0.3.7}/django_api_versioning.egg-info/SOURCES.txt +0 -0
  23. {django_api_versioning-0.3.6 → django_api_versioning-0.3.7}/django_api_versioning.egg-info/dependency_links.txt +0 -0
  24. {django_api_versioning-0.3.6 → django_api_versioning-0.3.7}/django_api_versioning.egg-info/requires.txt +0 -0
  25. {django_api_versioning-0.3.6 → django_api_versioning-0.3.7}/django_api_versioning.egg-info/top_level.txt +0 -0
  26. {django_api_versioning-0.3.6 → django_api_versioning-0.3.7}/pytest.ini +0 -0
  27. {django_api_versioning-0.3.6 → django_api_versioning-0.3.7}/requirements-dev.txt +0 -0
  28. {django_api_versioning-0.3.6 → django_api_versioning-0.3.7}/requirements.txt +0 -0
  29. {django_api_versioning-0.3.6 → django_api_versioning-0.3.7}/setup.cfg +0 -0
  30. {django_api_versioning-0.3.6 → django_api_versioning-0.3.7}/tests/__init__.py +0 -0
  31. {django_api_versioning-0.3.6 → django_api_versioning-0.3.7}/tests/conftest.py +0 -0
  32. {django_api_versioning-0.3.6 → django_api_versioning-0.3.7}/tests/settings.py +0 -0
  33. {django_api_versioning-0.3.6 → django_api_versioning-0.3.7}/tests/test_channels.py +0 -0
  34. {django_api_versioning-0.3.6 → django_api_versioning-0.3.7}/tests/test_channels_extra.py +0 -0
  35. {django_api_versioning-0.3.6 → django_api_versioning-0.3.7}/tests/test_decorators.py +0 -0
  36. {django_api_versioning-0.3.6 → django_api_versioning-0.3.7}/tests/test_exceptions.py +0 -0
  37. {django_api_versioning-0.3.6 → django_api_versioning-0.3.7}/tests/test_lifecycle.py +0 -0
  38. {django_api_versioning-0.3.6 → django_api_versioning-0.3.7}/tests/test_management_commands.py +0 -0
  39. {django_api_versioning-0.3.6 → django_api_versioning-0.3.7}/tests/test_registry.py +0 -0
  40. {django_api_versioning-0.3.6 → django_api_versioning-0.3.7}/tests/test_reverse.py +0 -0
  41. {django_api_versioning-0.3.6 → django_api_versioning-0.3.7}/tests/test_segment_model.py +0 -0
  42. {django_api_versioning-0.3.6 → django_api_versioning-0.3.7}/tests/test_settings.py +0 -0
  43. {django_api_versioning-0.3.6 → django_api_versioning-0.3.7}/tests/test_testing_utils.py +0 -0
  44. {django_api_versioning-0.3.6 → django_api_versioning-0.3.7}/tests/test_urls.py +0 -0
@@ -8,6 +8,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8
8
 
9
9
  ## [Unreleased]
10
10
 
11
+ ## [0.3.7] - 2026-11-14
12
+
13
+ ### Changed
14
+
15
+ - Run the full tox test matrix in parallel by default, with separate coverage data per environment.
16
+
17
+ ### Verified
18
+
19
+ - ✅ All 175 unit tests and 245 integration tests passing in each of the 15 Python/Django environments
20
+ - ✅ Tox lint environment passing
21
+
11
22
  ## [0.3.6] - 2026-11-13
12
23
 
13
24
  ### Fixed
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: django-api-versioning
3
- Version: 0.3.6
3
+ Version: 0.3.7
4
4
  Summary: API versioning for Django and Django REST Framework (DRF), with decorator-based endpoint registration, automatic URL routing, version-specific views, and forward inheritance for backward-compatible API evolution.
5
5
  Author-email: Mojtaba Arvin <ArvinDevDay@gmail.com>
6
6
  License: MIT
@@ -18,8 +18,6 @@ Classifier: Programming Language :: Python :: 3.14
18
18
  Classifier: Programming Language :: Python :: 3.15
19
19
  Classifier: Framework :: Django
20
20
  Classifier: Framework :: Django :: 4.2
21
- Classifier: Framework :: Django :: 5.0
22
- Classifier: Framework :: Django :: 5.1
23
21
  Classifier: Framework :: Django :: 5.2
24
22
  Classifier: Framework :: Django :: 6.0
25
23
  Classifier: Framework :: Django :: 6.1
@@ -52,7 +50,7 @@ Dynamic: license-file
52
50
  [![PyPI version](https://badge.fury.io/py/django-api-versioning.svg)](https://badge.fury.io/py/django-api-versioning)
53
51
  [![PyPI Downloads](https://img.shields.io/pypi/dm/django-api-versioning.svg)](https://pypi.org/project/django-api-versioning/)
54
52
  [![Build Status](https://github.com/mojtaba-arvin/django-api-versioning/actions/workflows/tests.yml/badge.svg)](https://github.com/mojtaba-arvin/django-api-versioning/actions)
55
- [![Django versions](https://img.shields.io/badge/django-4.2%20%7C%205.x%20%7C%206.x-blue)](https://www.djangoproject.com/)
53
+ [![Django versions](https://img.shields.io/badge/django-4.2%20%7C%205.2%2B%20%7C%206.x-blue)](https://www.djangoproject.com/)
56
54
  [![Python versions](https://img.shields.io/pypi/pyversions/django-api-versioning.svg)](https://pypi.org/project/django-api-versioning/)
57
55
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
58
56
 
@@ -263,9 +261,6 @@ In your project's root URL configuration:
263
261
 
264
262
  from django.urls import include, path
265
263
 
266
- from your_app import views # noqa: F401
267
-
268
-
269
264
  from your_app import views # noqa: F401
270
265
 
271
266
  from django_api_versioning.urls import urlpatterns as api_urlpatterns
@@ -928,7 +923,11 @@ If you need `request.version` populated, consider implementing a custom DRF vers
928
923
 
929
924
  ### Configuration timing
930
925
 
931
- Package settings (`API_MAX_VERSION`, `API_BASE_PATH`, etc.) are validated and loaded at module import time. Using Django's `override_settings` after the package has been imported will NOT affect already-loaded configuration:
926
+ Route-registry settings, such as `API_MAX_VERSION` and `API_BASE_PATH`, are loaded when the package modules and endpoint declarations are imported. Changing these settings with `override_settings` after endpoint registration does not rebuild the existing URL patterns.
927
+
928
+ `LifecycleMiddleware` is different: it reads `API_VERSION_LIFECYCLE` and `API_BASE_PATH` from `django.conf.settings` at request time. This allows lifecycle behavior to respond to runtime setting overrides, but it does not make the already-registered URL patterns dynamic.
929
+
930
+ Configure route-registry settings before importing modules containing `@endpoint` declarations:
932
931
 
933
932
  ```python
934
933
  # ✓ Correct: configure before importing views
@@ -1024,8 +1023,31 @@ pre-commit install
1024
1023
 
1025
1024
  ### Running tests
1026
1025
 
1026
+ Run the unit tests:
1027
+
1028
+ ```bash
1029
+ python -m pytest tests
1030
+ ```
1031
+
1032
+ Run the integration tests:
1033
+
1034
+ ```bash
1035
+ python -m pytest integration_test_project
1036
+ ```
1037
+
1038
+ Run the complete configured Python/Django test matrix:
1039
+
1040
+ ```bash
1041
+ python -m pip install tox
1042
+ tox run-parallel -p auto
1043
+ ```
1044
+
1045
+ The parallel run uses the available CPU count; use `tox run-parallel -p 4`
1046
+ to limit concurrency on memory-constrained machines.
1047
+
1048
+ Run pre-commit checks:
1049
+
1027
1050
  ```bash
1028
- pytest
1029
1051
  pre-commit run --all-files
1030
1052
  ```
1031
1053
 
@@ -1038,10 +1060,10 @@ and delegates execution to `entrypoint.sh`.
1038
1060
  # Build the Docker image
1039
1061
  docker build -t dapi .
1040
1062
 
1041
- # Run the test suite
1063
+ # Run the default test command (unit tests)
1042
1064
  docker run --rm dapi
1043
1065
 
1044
- # Run pre-commit checks followed by the test suite
1066
+ # Run pre-commit checks followed by the unit tests
1045
1067
  docker run --rm -e RUN_PRE_COMMIT=true dapi
1046
1068
 
1047
1069
  # Build and run with a specific Python version
@@ -1061,8 +1083,8 @@ docker run --rm dapi:py315
1061
1083
  ```
1062
1084
 
1063
1085
  Pushing a `v*` tag triggers GitHub Actions to build the package, validate
1064
- the distribution with `twine check`, and publish it to PyPI using
1065
- the `PYPI_API_TOKEN` repository secret.
1086
+ the distribution with `twine check --strict`, and publish it to PyPI
1087
+ using PyPI Trusted Publishing (GitHub Actions OIDC).
1066
1088
 
1067
1089
  ### Reporting issues
1068
1090
 
@@ -3,7 +3,7 @@
3
3
  [![PyPI version](https://badge.fury.io/py/django-api-versioning.svg)](https://badge.fury.io/py/django-api-versioning)
4
4
  [![PyPI Downloads](https://img.shields.io/pypi/dm/django-api-versioning.svg)](https://pypi.org/project/django-api-versioning/)
5
5
  [![Build Status](https://github.com/mojtaba-arvin/django-api-versioning/actions/workflows/tests.yml/badge.svg)](https://github.com/mojtaba-arvin/django-api-versioning/actions)
6
- [![Django versions](https://img.shields.io/badge/django-4.2%20%7C%205.x%20%7C%206.x-blue)](https://www.djangoproject.com/)
6
+ [![Django versions](https://img.shields.io/badge/django-4.2%20%7C%205.2%2B%20%7C%206.x-blue)](https://www.djangoproject.com/)
7
7
  [![Python versions](https://img.shields.io/pypi/pyversions/django-api-versioning.svg)](https://pypi.org/project/django-api-versioning/)
8
8
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
9
9
 
@@ -214,9 +214,6 @@ In your project's root URL configuration:
214
214
 
215
215
  from django.urls import include, path
216
216
 
217
- from your_app import views # noqa: F401
218
-
219
-
220
217
  from your_app import views # noqa: F401
221
218
 
222
219
  from django_api_versioning.urls import urlpatterns as api_urlpatterns
@@ -879,7 +876,11 @@ If you need `request.version` populated, consider implementing a custom DRF vers
879
876
 
880
877
  ### Configuration timing
881
878
 
882
- Package settings (`API_MAX_VERSION`, `API_BASE_PATH`, etc.) are validated and loaded at module import time. Using Django's `override_settings` after the package has been imported will NOT affect already-loaded configuration:
879
+ Route-registry settings, such as `API_MAX_VERSION` and `API_BASE_PATH`, are loaded when the package modules and endpoint declarations are imported. Changing these settings with `override_settings` after endpoint registration does not rebuild the existing URL patterns.
880
+
881
+ `LifecycleMiddleware` is different: it reads `API_VERSION_LIFECYCLE` and `API_BASE_PATH` from `django.conf.settings` at request time. This allows lifecycle behavior to respond to runtime setting overrides, but it does not make the already-registered URL patterns dynamic.
882
+
883
+ Configure route-registry settings before importing modules containing `@endpoint` declarations:
883
884
 
884
885
  ```python
885
886
  # ✓ Correct: configure before importing views
@@ -975,8 +976,31 @@ pre-commit install
975
976
 
976
977
  ### Running tests
977
978
 
979
+ Run the unit tests:
980
+
981
+ ```bash
982
+ python -m pytest tests
983
+ ```
984
+
985
+ Run the integration tests:
986
+
987
+ ```bash
988
+ python -m pytest integration_test_project
989
+ ```
990
+
991
+ Run the complete configured Python/Django test matrix:
992
+
993
+ ```bash
994
+ python -m pip install tox
995
+ tox run-parallel -p auto
996
+ ```
997
+
998
+ The parallel run uses the available CPU count; use `tox run-parallel -p 4`
999
+ to limit concurrency on memory-constrained machines.
1000
+
1001
+ Run pre-commit checks:
1002
+
978
1003
  ```bash
979
- pytest
980
1004
  pre-commit run --all-files
981
1005
  ```
982
1006
 
@@ -989,10 +1013,10 @@ and delegates execution to `entrypoint.sh`.
989
1013
  # Build the Docker image
990
1014
  docker build -t dapi .
991
1015
 
992
- # Run the test suite
1016
+ # Run the default test command (unit tests)
993
1017
  docker run --rm dapi
994
1018
 
995
- # Run pre-commit checks followed by the test suite
1019
+ # Run pre-commit checks followed by the unit tests
996
1020
  docker run --rm -e RUN_PRE_COMMIT=true dapi
997
1021
 
998
1022
  # Build and run with a specific Python version
@@ -1012,8 +1036,8 @@ docker run --rm dapi:py315
1012
1036
  ```
1013
1037
 
1014
1038
  Pushing a `v*` tag triggers GitHub Actions to build the package, validate
1015
- the distribution with `twine check`, and publish it to PyPI using
1016
- the `PYPI_API_TOKEN` repository secret.
1039
+ the distribution with `twine check --strict`, and publish it to PyPI
1040
+ using PyPI Trusted Publishing (GitHub Actions OIDC).
1017
1041
 
1018
1042
  ### Reporting issues
1019
1043
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: django-api-versioning
3
- Version: 0.3.6
3
+ Version: 0.3.7
4
4
  Summary: API versioning for Django and Django REST Framework (DRF), with decorator-based endpoint registration, automatic URL routing, version-specific views, and forward inheritance for backward-compatible API evolution.
5
5
  Author-email: Mojtaba Arvin <ArvinDevDay@gmail.com>
6
6
  License: MIT
@@ -18,8 +18,6 @@ Classifier: Programming Language :: Python :: 3.14
18
18
  Classifier: Programming Language :: Python :: 3.15
19
19
  Classifier: Framework :: Django
20
20
  Classifier: Framework :: Django :: 4.2
21
- Classifier: Framework :: Django :: 5.0
22
- Classifier: Framework :: Django :: 5.1
23
21
  Classifier: Framework :: Django :: 5.2
24
22
  Classifier: Framework :: Django :: 6.0
25
23
  Classifier: Framework :: Django :: 6.1
@@ -52,7 +50,7 @@ Dynamic: license-file
52
50
  [![PyPI version](https://badge.fury.io/py/django-api-versioning.svg)](https://badge.fury.io/py/django-api-versioning)
53
51
  [![PyPI Downloads](https://img.shields.io/pypi/dm/django-api-versioning.svg)](https://pypi.org/project/django-api-versioning/)
54
52
  [![Build Status](https://github.com/mojtaba-arvin/django-api-versioning/actions/workflows/tests.yml/badge.svg)](https://github.com/mojtaba-arvin/django-api-versioning/actions)
55
- [![Django versions](https://img.shields.io/badge/django-4.2%20%7C%205.x%20%7C%206.x-blue)](https://www.djangoproject.com/)
53
+ [![Django versions](https://img.shields.io/badge/django-4.2%20%7C%205.2%2B%20%7C%206.x-blue)](https://www.djangoproject.com/)
56
54
  [![Python versions](https://img.shields.io/pypi/pyversions/django-api-versioning.svg)](https://pypi.org/project/django-api-versioning/)
57
55
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
58
56
 
@@ -263,9 +261,6 @@ In your project's root URL configuration:
263
261
 
264
262
  from django.urls import include, path
265
263
 
266
- from your_app import views # noqa: F401
267
-
268
-
269
264
  from your_app import views # noqa: F401
270
265
 
271
266
  from django_api_versioning.urls import urlpatterns as api_urlpatterns
@@ -928,7 +923,11 @@ If you need `request.version` populated, consider implementing a custom DRF vers
928
923
 
929
924
  ### Configuration timing
930
925
 
931
- Package settings (`API_MAX_VERSION`, `API_BASE_PATH`, etc.) are validated and loaded at module import time. Using Django's `override_settings` after the package has been imported will NOT affect already-loaded configuration:
926
+ Route-registry settings, such as `API_MAX_VERSION` and `API_BASE_PATH`, are loaded when the package modules and endpoint declarations are imported. Changing these settings with `override_settings` after endpoint registration does not rebuild the existing URL patterns.
927
+
928
+ `LifecycleMiddleware` is different: it reads `API_VERSION_LIFECYCLE` and `API_BASE_PATH` from `django.conf.settings` at request time. This allows lifecycle behavior to respond to runtime setting overrides, but it does not make the already-registered URL patterns dynamic.
929
+
930
+ Configure route-registry settings before importing modules containing `@endpoint` declarations:
932
931
 
933
932
  ```python
934
933
  # ✓ Correct: configure before importing views
@@ -1024,8 +1023,31 @@ pre-commit install
1024
1023
 
1025
1024
  ### Running tests
1026
1025
 
1026
+ Run the unit tests:
1027
+
1028
+ ```bash
1029
+ python -m pytest tests
1030
+ ```
1031
+
1032
+ Run the integration tests:
1033
+
1034
+ ```bash
1035
+ python -m pytest integration_test_project
1036
+ ```
1037
+
1038
+ Run the complete configured Python/Django test matrix:
1039
+
1040
+ ```bash
1041
+ python -m pip install tox
1042
+ tox run-parallel -p auto
1043
+ ```
1044
+
1045
+ The parallel run uses the available CPU count; use `tox run-parallel -p 4`
1046
+ to limit concurrency on memory-constrained machines.
1047
+
1048
+ Run pre-commit checks:
1049
+
1027
1050
  ```bash
1028
- pytest
1029
1051
  pre-commit run --all-files
1030
1052
  ```
1031
1053
 
@@ -1038,10 +1060,10 @@ and delegates execution to `entrypoint.sh`.
1038
1060
  # Build the Docker image
1039
1061
  docker build -t dapi .
1040
1062
 
1041
- # Run the test suite
1063
+ # Run the default test command (unit tests)
1042
1064
  docker run --rm dapi
1043
1065
 
1044
- # Run pre-commit checks followed by the test suite
1066
+ # Run pre-commit checks followed by the unit tests
1045
1067
  docker run --rm -e RUN_PRE_COMMIT=true dapi
1046
1068
 
1047
1069
  # Build and run with a specific Python version
@@ -1061,8 +1083,8 @@ docker run --rm dapi:py315
1061
1083
  ```
1062
1084
 
1063
1085
  Pushing a `v*` tag triggers GitHub Actions to build the package, validate
1064
- the distribution with `twine check`, and publish it to PyPI using
1065
- the `PYPI_API_TOKEN` repository secret.
1086
+ the distribution with `twine check --strict`, and publish it to PyPI
1087
+ using PyPI Trusted Publishing (GitHub Actions OIDC).
1066
1088
 
1067
1089
  ### Reporting issues
1068
1090
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "django-api-versioning"
7
- version = "0.3.6"
7
+ version = "0.3.7"
8
8
  description = "API versioning for Django and Django REST Framework (DRF), with decorator-based endpoint registration, automatic URL routing, version-specific views, and forward inheritance for backward-compatible API evolution."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -38,8 +38,6 @@ classifiers = [
38
38
  "Programming Language :: Python :: 3.15",
39
39
  "Framework :: Django",
40
40
  "Framework :: Django :: 4.2",
41
- "Framework :: Django :: 5.0",
42
- "Framework :: Django :: 5.1",
43
41
  "Framework :: Django :: 5.2",
44
42
  "Framework :: Django :: 6.0",
45
43
  "Framework :: Django :: 6.1",