django-migration-zero 2.3.2__tar.gz → 2.3.4__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.
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/.github/workflows/ci.yml +9 -2
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/CHANGES.md +6 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/PKG-INFO +2 -2
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/django_migration_zero/__init__.py +1 -1
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/pyproject.toml +35 -1
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/tests/helpers/test_file_system.py +12 -0
- django_migration_zero-2.3.2/.coveragerc +0 -17
- django_migration_zero-2.3.2/setup.cfg +0 -18
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/.ambient-package-update/metadata.py +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/.ambient-package-update/templates/snippets/content.tpl +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/.ambient-package-update/templates/snippets/installation.tpl +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/.ambient-package-update/templates/snippets/tagline.tpl +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/.editorconfig +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/.gitignore +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/.pre-commit-config.yaml +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/.readthedocs.yaml +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/LICENSE.md +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/MANIFEST.in +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/README.md +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/SECURITY.md +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/django_migration_zero/admin.py +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/django_migration_zero/apps.py +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/django_migration_zero/exceptions.py +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/django_migration_zero/helpers/__init__.py +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/django_migration_zero/helpers/file_system.py +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/django_migration_zero/helpers/logger.py +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/django_migration_zero/locale/de/LC_MESSAGES/django.mo +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/django_migration_zero/locale/de/LC_MESSAGES/django.po +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/django_migration_zero/management/__init__.py +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/django_migration_zero/management/commands/__init__.py +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/django_migration_zero/management/commands/handle_migration_zero_reset.py +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/django_migration_zero/management/commands/reset_local_migration_files.py +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/django_migration_zero/managers.py +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/django_migration_zero/migrations/0001_initial.py +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/django_migration_zero/migrations/__init__.py +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/django_migration_zero/models.py +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/django_migration_zero/services/__init__.py +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/django_migration_zero/services/deployment.py +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/django_migration_zero/services/local.py +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/docs/Makefile +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/docs/conf.py +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/docs/features/01_introduction.md +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/docs/features/02_configuration.md +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/docs/features/03_workflow.md +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/docs/features/04_common_issues_and_solutions.md +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/docs/features/05_architecture.md +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/docs/features/06_management_commands.md +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/docs/features/07_changelog.rst +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/docs/index.rst +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/docs/make.bat +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/manage.py +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/scripts/unix/install_requirements.sh +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/scripts/unix/publish_to_pypi.sh +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/scripts/windows/install_requirements.ps1 +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/scripts/windows/publish_to_pypi.ps1 +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/settings.py +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/testapp/__init__.py +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/testapp/nested_app/__init__.py +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/testapp/nested_app/migrations/__init__.py +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/testapp/urls.py +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/tests/__init__.py +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/tests/helpers/__init__.py +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/tests/helpers/test_logger.py +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/tests/management/__init__.py +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/tests/management/commands/__init__.py +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/tests/management/commands/test_handle_migration_zero_reset.py +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/tests/management/commands/test_reset_local_migration_files.py +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/tests/services/__init__.py +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/tests/services/test_deployment.py +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/tests/services/test_local.py +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/tests/test_admin.py +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/tests/test_managers.py +0 -0
- {django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/tests/test_models.py +0 -0
|
@@ -3,6 +3,7 @@ name: Unit tests
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
5
5
|
branches: [ '**' ]
|
|
6
|
+
pull_request:
|
|
6
7
|
|
|
7
8
|
jobs:
|
|
8
9
|
linting:
|
|
@@ -67,7 +68,9 @@ jobs:
|
|
|
67
68
|
uses: actions/upload-artifact@v4
|
|
68
69
|
with:
|
|
69
70
|
name: coverage-data-${{ matrix.python-version }}-${{ matrix.django-version }}
|
|
70
|
-
path: '.coverage
|
|
71
|
+
path: '${{ github.workspace }}/.coverage.*'
|
|
72
|
+
include-hidden-files: true
|
|
73
|
+
if-no-files-found: error
|
|
71
74
|
|
|
72
75
|
coverage:
|
|
73
76
|
name: Coverage
|
|
@@ -86,10 +89,14 @@ jobs:
|
|
|
86
89
|
- name: Download data
|
|
87
90
|
uses: actions/download-artifact@v4
|
|
88
91
|
with:
|
|
89
|
-
|
|
92
|
+
path: ${{ github.workspace }}
|
|
93
|
+
pattern: coverage-data-*
|
|
90
94
|
merge-multiple: true
|
|
91
95
|
|
|
92
96
|
- name: Combine coverage and fail if it's <100.0%
|
|
93
97
|
run: |
|
|
98
|
+
python -m coverage combine
|
|
94
99
|
python -m coverage html --skip-covered --skip-empty
|
|
95
100
|
python -m coverage report --fail-under=100.0
|
|
101
|
+
echo "## Coverage summary" >> $GITHUB_STEP_SUMMARY
|
|
102
|
+
python -m coverage report --format=markdown >> $GITHUB_STEP_SUMMARY
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: django-migration-zero
|
|
3
|
-
Version: 2.3.
|
|
3
|
+
Version: 2.3.4
|
|
4
4
|
Summary: Holistic implementation of "migration zero" pattern for Django covering local changes and in-production database adjustments.
|
|
5
5
|
Author-email: Ambient Digital <hello@ambient.digital>
|
|
6
6
|
Description-Content-Type: text/markdown
|
|
@@ -26,7 +26,7 @@ Requires-Dist: typer~=0.9 ; extra == "dev"
|
|
|
26
26
|
Requires-Dist: freezegun~=1.3 ; extra == "dev"
|
|
27
27
|
Requires-Dist: pytest-django~=4.7 ; extra == "dev"
|
|
28
28
|
Requires-Dist: pytest-mock~=3.12 ; extra == "dev"
|
|
29
|
-
Requires-Dist: coverage~=7.
|
|
29
|
+
Requires-Dist: coverage~=7.6 ; extra == "dev"
|
|
30
30
|
Requires-Dist: pre-commit~=3.7 ; extra == "dev"
|
|
31
31
|
Requires-Dist: ruff~=0.4 ; extra == "dev"
|
|
32
32
|
Requires-Dist: sphinx~=7.1 ; extra == "dev"
|
|
@@ -40,7 +40,7 @@ dev = [
|
|
|
40
40
|
'freezegun~=1.3',
|
|
41
41
|
'pytest-django~=4.7',
|
|
42
42
|
'pytest-mock~=3.12',
|
|
43
|
-
'coverage~=7.
|
|
43
|
+
'coverage~=7.6',
|
|
44
44
|
'pre-commit~=3.7',
|
|
45
45
|
'ruff~=0.4',
|
|
46
46
|
'sphinx~=7.1',
|
|
@@ -197,3 +197,37 @@ python_files = [
|
|
|
197
197
|
"test_*.py",
|
|
198
198
|
"*_tests.py",
|
|
199
199
|
]
|
|
200
|
+
|
|
201
|
+
[tool.coverage.run]
|
|
202
|
+
branch = true
|
|
203
|
+
parallel = true
|
|
204
|
+
source = [
|
|
205
|
+
"django_migration_zero",
|
|
206
|
+
"tests",
|
|
207
|
+
]
|
|
208
|
+
omit = [
|
|
209
|
+
"setup.py",
|
|
210
|
+
"*_test.py",
|
|
211
|
+
"tests.py",
|
|
212
|
+
"testapp/*",
|
|
213
|
+
"tests/*",
|
|
214
|
+
]
|
|
215
|
+
|
|
216
|
+
[tool.coverage.report]
|
|
217
|
+
precision = 2
|
|
218
|
+
show_missing = true
|
|
219
|
+
# Regexes for lines to exclude from consideration
|
|
220
|
+
exclude_also = [
|
|
221
|
+
# Don't complain if tests don't hit defensive assertion code:
|
|
222
|
+
"raise AssertionError",
|
|
223
|
+
"raise NotImplementedError",
|
|
224
|
+
# Don't check type hinting imports
|
|
225
|
+
"if typing.TYPE_CHECKING:",
|
|
226
|
+
"if TYPE_CHECKING:",
|
|
227
|
+
]
|
|
228
|
+
|
|
229
|
+
[tool.coverage.path]
|
|
230
|
+
source = [
|
|
231
|
+
"django_migration_zero",
|
|
232
|
+
".tox/**/site-packages",
|
|
233
|
+
]
|
{django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/tests/helpers/test_file_system.py
RENAMED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import os
|
|
1
2
|
from pathlib import Path
|
|
2
3
|
from unittest import mock
|
|
3
4
|
|
|
@@ -66,6 +67,17 @@ class HelperFileSystemTest(TestCase):
|
|
|
66
67
|
[],
|
|
67
68
|
)
|
|
68
69
|
|
|
70
|
+
@mock.patch.object(os, "listdir", return_value=["0002_my_migration.py"])
|
|
71
|
+
def test_get_migration_files_exclude_initials_no_initials(self, *args):
|
|
72
|
+
self.assertEqual(
|
|
73
|
+
get_migration_files(
|
|
74
|
+
app_label=self.django_migration_zero_config.label,
|
|
75
|
+
app_path=Path(self.django_migration_zero_config.path),
|
|
76
|
+
exclude_initials=True,
|
|
77
|
+
),
|
|
78
|
+
["0002_my_migration.py"],
|
|
79
|
+
)
|
|
80
|
+
|
|
69
81
|
@mock.patch("django_migration_zero.helpers.file_system.os.unlink")
|
|
70
82
|
def test_delete_file_regular(self, mocked_unlink):
|
|
71
83
|
delete_file(app_path=Path(self.testapp_config.path), filename="my_file.py")
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
[run]
|
|
2
|
-
omit =
|
|
3
|
-
setup.py,
|
|
4
|
-
*_test.py,
|
|
5
|
-
tests.py,
|
|
6
|
-
testapp/*
|
|
7
|
-
tests/*,
|
|
8
|
-
conftest.py
|
|
9
|
-
|
|
10
|
-
[report]
|
|
11
|
-
precision = 2
|
|
12
|
-
show_missing = True
|
|
13
|
-
exclude_lines =
|
|
14
|
-
# Don't complain if tests don't hit defensive assertion code:
|
|
15
|
-
raise NotImplementedError
|
|
16
|
-
# Ignore type checking conditions
|
|
17
|
-
if TYPE_CHECKING:
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
[metadata]
|
|
2
|
-
description-file = README.md
|
|
3
|
-
license-file = LICENSE.md
|
|
4
|
-
|
|
5
|
-
[coverage:run]
|
|
6
|
-
branch = True
|
|
7
|
-
parallel = True
|
|
8
|
-
source =
|
|
9
|
-
django_migration_zero
|
|
10
|
-
tests
|
|
11
|
-
|
|
12
|
-
[coverage:paths]
|
|
13
|
-
source =
|
|
14
|
-
django_migration_zero
|
|
15
|
-
.tox/**/site-packages
|
|
16
|
-
|
|
17
|
-
[coverage:report]
|
|
18
|
-
show_missing = True
|
{django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/.ambient-package-update/metadata.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/django_migration_zero/exceptions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/django_migration_zero/helpers/logger.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/django_migration_zero/managers.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/django_migration_zero/services/local.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/docs/features/01_introduction.md
RENAMED
|
File without changes
|
{django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/docs/features/02_configuration.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/docs/features/05_architecture.md
RENAMED
|
File without changes
|
{django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/docs/features/06_management_commands.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/scripts/unix/install_requirements.sh
RENAMED
|
File without changes
|
|
File without changes
|
{django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/scripts/windows/install_requirements.ps1
RENAMED
|
File without changes
|
{django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/scripts/windows/publish_to_pypi.ps1
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/tests/management/commands/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{django_migration_zero-2.3.2 → django_migration_zero-2.3.4}/tests/services/test_deployment.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|