django-migration-zero 2.3.7__tar.gz → 2.3.9__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.7 → django_migration_zero-2.3.9}/.github/workflows/ci.yml +3 -5
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/.pre-commit-config.yaml +18 -13
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/CHANGES.md +6 -0
- django_migration_zero-2.3.9/CONTRIBUTING.md +77 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/PKG-INFO +6 -86
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/README.md +0 -80
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/SECURITY.md +1 -1
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/django_migration_zero/__init__.py +1 -1
- django_migration_zero-2.3.9/docs/features/07_changelog.rst +2 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/pyproject.toml +10 -8
- django_migration_zero-2.3.7/docs/features/07_changelog.rst +0 -2
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/.ambient-package-update/metadata.py +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/.ambient-package-update/templates/snippets/content.tpl +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/.ambient-package-update/templates/snippets/installation.tpl +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/.ambient-package-update/templates/snippets/tagline.tpl +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/.editorconfig +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/.gitignore +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/.readthedocs.yaml +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/LICENSE.md +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/MANIFEST.in +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/django_migration_zero/admin.py +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/django_migration_zero/apps.py +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/django_migration_zero/exceptions.py +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/django_migration_zero/helpers/__init__.py +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/django_migration_zero/helpers/file_system.py +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/django_migration_zero/helpers/logger.py +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/django_migration_zero/locale/de/LC_MESSAGES/django.mo +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/django_migration_zero/locale/de/LC_MESSAGES/django.po +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/django_migration_zero/management/__init__.py +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/django_migration_zero/management/commands/__init__.py +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/django_migration_zero/management/commands/handle_migration_zero_reset.py +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/django_migration_zero/management/commands/reset_local_migration_files.py +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/django_migration_zero/managers.py +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/django_migration_zero/migrations/0001_initial.py +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/django_migration_zero/migrations/__init__.py +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/django_migration_zero/models.py +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/django_migration_zero/services/__init__.py +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/django_migration_zero/services/deployment.py +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/django_migration_zero/services/local.py +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/docs/Makefile +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/docs/conf.py +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/docs/features/01_introduction.md +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/docs/features/02_configuration.md +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/docs/features/03_workflow.md +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/docs/features/04_common_issues_and_solutions.md +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/docs/features/05_architecture.md +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/docs/features/06_management_commands.md +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/docs/index.rst +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/docs/make.bat +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/manage.py +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/scripts/unix/install_requirements.sh +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/scripts/unix/publish_to_pypi.sh +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/scripts/windows/install_requirements.ps1 +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/scripts/windows/publish_to_pypi.ps1 +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/settings.py +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/testapp/__init__.py +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/testapp/nested_app/__init__.py +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/testapp/nested_app/migrations/__init__.py +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/testapp/urls.py +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/tests/__init__.py +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/tests/helpers/__init__.py +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/tests/helpers/test_file_system.py +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/tests/helpers/test_logger.py +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/tests/management/__init__.py +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/tests/management/commands/__init__.py +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/tests/management/commands/test_handle_migration_zero_reset.py +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/tests/management/commands/test_reset_local_migration_files.py +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/tests/services/__init__.py +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/tests/services/test_deployment.py +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/tests/services/test_local.py +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/tests/test_admin.py +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/tests/test_managers.py +0 -0
- {django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/tests/test_models.py +0 -0
|
@@ -21,7 +21,7 @@ jobs:
|
|
|
21
21
|
run: pip install pre-commit
|
|
22
22
|
|
|
23
23
|
- name: Run pre-commit hooks
|
|
24
|
-
run: pre-commit run --all-files
|
|
24
|
+
run: pre-commit run --all-files
|
|
25
25
|
|
|
26
26
|
validate_migrations:
|
|
27
27
|
name: Validate migrations
|
|
@@ -45,17 +45,15 @@ jobs:
|
|
|
45
45
|
strategy:
|
|
46
46
|
matrix:
|
|
47
47
|
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', ]
|
|
48
|
-
django-version: ['42', '
|
|
48
|
+
django-version: ['42', '51', '52', ]
|
|
49
49
|
|
|
50
50
|
exclude:
|
|
51
51
|
- python-version: '3.9'
|
|
52
|
-
django-version:
|
|
52
|
+
django-version: 52
|
|
53
53
|
- python-version: '3.9'
|
|
54
54
|
django-version: 51
|
|
55
55
|
- python-version: "3.13"
|
|
56
56
|
django-version: 42
|
|
57
|
-
- python-version: "3.13"
|
|
58
|
-
django-version: 50
|
|
59
57
|
|
|
60
58
|
steps:
|
|
61
59
|
- uses: actions/checkout@v4
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
|
|
4
4
|
repos:
|
|
5
5
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
6
|
-
rev: v0.
|
|
6
|
+
rev: v0.11.11
|
|
7
7
|
hooks:
|
|
8
8
|
# Run the Ruff formatter.
|
|
9
9
|
- id: ruff-format
|
|
10
10
|
# Run the Ruff linter.
|
|
11
|
-
- id: ruff
|
|
11
|
+
- id: ruff-check
|
|
12
12
|
args: [--fix, --exit-non-zero-on-fix]
|
|
13
13
|
|
|
14
14
|
- repo: https://github.com/adamchainz/blacken-docs
|
|
@@ -16,23 +16,23 @@ repos:
|
|
|
16
16
|
hooks:
|
|
17
17
|
- id: blacken-docs
|
|
18
18
|
additional_dependencies:
|
|
19
|
-
- black==
|
|
19
|
+
- black==25.1.0
|
|
20
20
|
files: '(?:README\.md|\.ambient-package-update\/templates\/snippets\/.*\.tpl|docs\/.*\.(?:md|rst))'
|
|
21
21
|
|
|
22
22
|
- repo: https://github.com/asottile/pyupgrade
|
|
23
|
-
rev: v3.
|
|
23
|
+
rev: v3.20.0
|
|
24
24
|
hooks:
|
|
25
25
|
- id: pyupgrade
|
|
26
26
|
args: [ --py39-plus ]
|
|
27
27
|
|
|
28
28
|
- repo: https://github.com/adamchainz/django-upgrade
|
|
29
|
-
rev: 1.
|
|
29
|
+
rev: 1.25.0
|
|
30
30
|
hooks:
|
|
31
31
|
- id: django-upgrade
|
|
32
32
|
args: [--target-version, "4.2"]
|
|
33
33
|
|
|
34
34
|
- repo: https://github.com/adamchainz/djade-pre-commit
|
|
35
|
-
rev: 1.
|
|
35
|
+
rev: 1.4.0
|
|
36
36
|
hooks:
|
|
37
37
|
- id: djade
|
|
38
38
|
args: [--target-version, "4.2"]
|
|
@@ -45,10 +45,15 @@ repos:
|
|
|
45
45
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
46
46
|
rev: v5.0.0
|
|
47
47
|
hooks:
|
|
48
|
-
- id:
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
48
|
+
- id: check-ast
|
|
49
|
+
- id: check-builtin-literals
|
|
50
|
+
- id: check-case-conflict
|
|
51
|
+
- id: check-docstring-first
|
|
52
|
+
- id: check-executables-have-shebangs
|
|
53
|
+
- id: check-json
|
|
54
|
+
- id: check-merge-conflict
|
|
55
|
+
- id: check-toml
|
|
56
|
+
- id: end-of-file-fixer
|
|
57
|
+
- id: fix-byte-order-marker
|
|
58
|
+
- id: mixed-line-ending
|
|
59
|
+
- id: trailing-whitespace
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# Contribute
|
|
2
|
+
|
|
3
|
+
## Setup package for development
|
|
4
|
+
|
|
5
|
+
- Create a Python virtualenv and activate it
|
|
6
|
+
- Install "pip-tools" with `pip install -U pip-tools`
|
|
7
|
+
- Compile the requirements with `pip-compile --extra dev, -o requirements.txt pyproject.toml --resolver=backtracking`
|
|
8
|
+
- Sync the dependencies with your virtualenv with `pip-sync`
|
|
9
|
+
|
|
10
|
+
## Add functionality
|
|
11
|
+
|
|
12
|
+
- Create a new branch for your feature
|
|
13
|
+
- Change the dependency in your requirements.txt to a local (editable) one that points to your local file system:
|
|
14
|
+
`-e /Users/workspace/django-migration-zero` or via pip `pip install -e /Users/workspace/django-migration-zero`
|
|
15
|
+
- Ensure the code passes the tests
|
|
16
|
+
- Create a pull request
|
|
17
|
+
|
|
18
|
+
## Run tests
|
|
19
|
+
|
|
20
|
+
- Run tests
|
|
21
|
+
````
|
|
22
|
+
pytest --ds settings tests
|
|
23
|
+
````
|
|
24
|
+
|
|
25
|
+
- Check coverage
|
|
26
|
+
````
|
|
27
|
+
coverage run -m pytest --ds settings tests
|
|
28
|
+
coverage report -m
|
|
29
|
+
````
|
|
30
|
+
|
|
31
|
+
## Git hooks (via pre-commit)
|
|
32
|
+
|
|
33
|
+
We use pre-push hooks to ensure that only linted code reaches our remote repository and pipelines aren't triggered in
|
|
34
|
+
vain.
|
|
35
|
+
|
|
36
|
+
To enable the configured pre-push hooks, you need to [install](https://pre-commit.com/) pre-commit and run once:
|
|
37
|
+
|
|
38
|
+
pre-commit install -t pre-push -t pre-commit --install-hooks
|
|
39
|
+
|
|
40
|
+
This will permanently install the git hooks for both, frontend and backend, in your local
|
|
41
|
+
[`.git/hooks`](./.git/hooks) folder.
|
|
42
|
+
The hooks are configured in the [`.pre-commit-config.yaml`](templates/.pre-commit-config.yaml.tpl).
|
|
43
|
+
|
|
44
|
+
You can check whether hooks work as intended using the [run](https://pre-commit.com/#pre-commit-run) command:
|
|
45
|
+
|
|
46
|
+
pre-commit run [hook-id] [options]
|
|
47
|
+
|
|
48
|
+
Example: run single hook
|
|
49
|
+
|
|
50
|
+
pre-commit run ruff --all-files
|
|
51
|
+
|
|
52
|
+
Example: run all hooks of pre-push stage
|
|
53
|
+
|
|
54
|
+
pre-commit run --all-files
|
|
55
|
+
|
|
56
|
+
## Update documentation
|
|
57
|
+
|
|
58
|
+
- To build the documentation, run: `sphinx-build docs/ docs/_build/html/`.
|
|
59
|
+
- Open `docs/_build/html/index.html` to see the documentation.
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
### Translation files
|
|
63
|
+
|
|
64
|
+
If you have added custom text, make sure to wrap it in `_()` where `_` is
|
|
65
|
+
gettext_lazy (`from django.utils.translation import gettext_lazy as _`).
|
|
66
|
+
|
|
67
|
+
How to create translation file:
|
|
68
|
+
|
|
69
|
+
* Navigate to `django-migration-zero`
|
|
70
|
+
* `python manage.py makemessages -l de`
|
|
71
|
+
* Have a look at the new/changed files within `django_migration_zero/locale`
|
|
72
|
+
|
|
73
|
+
How to compile translation files:
|
|
74
|
+
|
|
75
|
+
* Navigate to `django-migration-zero`
|
|
76
|
+
* `python manage.py compilemessages`
|
|
77
|
+
* Have a look at the new/changed files within `django_migration_zero/locale`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: django-migration-zero
|
|
3
|
-
Version: 2.3.
|
|
3
|
+
Version: 2.3.9
|
|
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
|
|
@@ -8,8 +8,8 @@ Classifier: Development Status :: 5 - Production/Stable
|
|
|
8
8
|
Classifier: Environment :: Web Environment
|
|
9
9
|
Classifier: Framework :: Django
|
|
10
10
|
Classifier: Framework :: Django :: 4.2
|
|
11
|
-
Classifier: Framework :: Django :: 5.0
|
|
12
11
|
Classifier: Framework :: Django :: 5.1
|
|
12
|
+
Classifier: Framework :: Django :: 5.2
|
|
13
13
|
Classifier: Intended Audience :: Developers
|
|
14
14
|
Classifier: License :: OSI Approved :: MIT License
|
|
15
15
|
Classifier: Natural Language :: English
|
|
@@ -27,14 +27,14 @@ Requires-Dist: typer~=0.12 ; extra == "dev"
|
|
|
27
27
|
Requires-Dist: pytest-django~=4.9 ; extra == "dev"
|
|
28
28
|
Requires-Dist: pytest-mock~=3.14 ; extra == "dev"
|
|
29
29
|
Requires-Dist: coverage~=7.6 ; extra == "dev"
|
|
30
|
-
Requires-Dist: pre-commit~=4.
|
|
31
|
-
Requires-Dist: ruff~=0.
|
|
30
|
+
Requires-Dist: pre-commit~=4.2 ; extra == "dev"
|
|
31
|
+
Requires-Dist: ruff~=0.11 ; extra == "dev"
|
|
32
32
|
Requires-Dist: sphinx~=7.1 ; extra == "dev"
|
|
33
33
|
Requires-Dist: sphinx-rtd-theme~=2.0 ; extra == "dev"
|
|
34
34
|
Requires-Dist: m2r2==0.3.3.post2 ; extra == "dev"
|
|
35
35
|
Requires-Dist: mistune<2.0.0 ; extra == "dev"
|
|
36
|
-
Requires-Dist: flit~=3.
|
|
37
|
-
Requires-Dist: keyring~=25.
|
|
36
|
+
Requires-Dist: flit~=3.12 ; extra == "dev"
|
|
37
|
+
Requires-Dist: keyring~=25.6 ; extra == "dev"
|
|
38
38
|
Requires-Dist: ambient-package-update ; extra == "dev"
|
|
39
39
|
Requires-Dist: unittest-parametrize~=1.3 ; extra == "dev"
|
|
40
40
|
Requires-Dist: freezegun~=1.5 ; extra == "dev"
|
|
@@ -133,85 +133,6 @@ LOGGING = {
|
|
|
133
133
|
}
|
|
134
134
|
```
|
|
135
135
|
|
|
136
|
-
## Contribute
|
|
137
|
-
|
|
138
|
-
### Setup package for development
|
|
139
|
-
|
|
140
|
-
- Create a Python virtualenv and activate it
|
|
141
|
-
- Install "pip-tools" with `pip install -U pip-tools`
|
|
142
|
-
- Compile the requirements with `pip-compile --extra dev, -o requirements.txt pyproject.toml --resolver=backtracking`
|
|
143
|
-
- Sync the dependencies with your virtualenv with `pip-sync`
|
|
144
|
-
|
|
145
|
-
### Add functionality
|
|
146
|
-
|
|
147
|
-
- Create a new branch for your feature
|
|
148
|
-
- Change the dependency in your requirements.txt to a local (editable) one that points to your local file system:
|
|
149
|
-
`-e /Users/workspace/django-migration-zero` or via pip `pip install -e /Users/workspace/django-migration-zero`
|
|
150
|
-
- Ensure the code passes the tests
|
|
151
|
-
- Create a pull request
|
|
152
|
-
|
|
153
|
-
### Run tests
|
|
154
|
-
|
|
155
|
-
- Run tests
|
|
156
|
-
````
|
|
157
|
-
pytest --ds settings tests
|
|
158
|
-
````
|
|
159
|
-
|
|
160
|
-
- Check coverage
|
|
161
|
-
````
|
|
162
|
-
coverage run -m pytest --ds settings tests
|
|
163
|
-
coverage report -m
|
|
164
|
-
````
|
|
165
|
-
|
|
166
|
-
### Git hooks (via pre-commit)
|
|
167
|
-
|
|
168
|
-
We use pre-push hooks to ensure that only linted code reaches our remote repository and pipelines aren't triggered in
|
|
169
|
-
vain.
|
|
170
|
-
|
|
171
|
-
To enable the configured pre-push hooks, you need to [install](https://pre-commit.com/) pre-commit and run once:
|
|
172
|
-
|
|
173
|
-
pre-commit install -t pre-push -t pre-commit --install-hooks
|
|
174
|
-
|
|
175
|
-
This will permanently install the git hooks for both, frontend and backend, in your local
|
|
176
|
-
[`.git/hooks`](./.git/hooks) folder.
|
|
177
|
-
The hooks are configured in the [`.pre-commit-config.yaml`](templates/.pre-commit-config.yaml.tpl).
|
|
178
|
-
|
|
179
|
-
You can check whether hooks work as intended using the [run](https://pre-commit.com/#pre-commit-run) command:
|
|
180
|
-
|
|
181
|
-
pre-commit run [hook-id] [options]
|
|
182
|
-
|
|
183
|
-
Example: run single hook
|
|
184
|
-
|
|
185
|
-
pre-commit run ruff --all-files
|
|
186
|
-
|
|
187
|
-
Example: run all hooks of pre-push stage
|
|
188
|
-
|
|
189
|
-
pre-commit run --all-files --hook-stage push
|
|
190
|
-
|
|
191
|
-
### Update documentation
|
|
192
|
-
|
|
193
|
-
- To build the documentation, run: `sphinx-build docs/ docs/_build/html/`.
|
|
194
|
-
- Open `docs/_build/html/index.html` to see the documentation.
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
### Translation files
|
|
198
|
-
|
|
199
|
-
If you have added custom text, make sure to wrap it in `_()` where `_` is
|
|
200
|
-
gettext_lazy (`from django.utils.translation import gettext_lazy as _`).
|
|
201
|
-
|
|
202
|
-
How to create translation file:
|
|
203
|
-
|
|
204
|
-
* Navigate to `django-migration-zero`
|
|
205
|
-
* `python manage.py makemessages -l de`
|
|
206
|
-
* Have a look at the new/changed files within `django_migration_zero/locale`
|
|
207
|
-
|
|
208
|
-
How to compile translation files:
|
|
209
|
-
|
|
210
|
-
* Navigate to `django-migration-zero`
|
|
211
|
-
* `python manage.py compilemessages`
|
|
212
|
-
* Have a look at the new/changed files within `django_migration_zero/locale`
|
|
213
|
-
|
|
214
|
-
|
|
215
136
|
### Publish to ReadTheDocs.io
|
|
216
137
|
|
|
217
138
|
- Fetch the latest changes in GitHub mirror and push them
|
|
@@ -249,4 +170,3 @@ configuration and setup files. It works similar to well-known updaters like `pyu
|
|
|
249
170
|
To run an update, refer to the [documentation page](https://pypi.org/project/ambient-package-update/)
|
|
250
171
|
of the "ambient-package-update".
|
|
251
172
|
|
|
252
|
-
|
|
@@ -86,85 +86,6 @@ LOGGING = {
|
|
|
86
86
|
}
|
|
87
87
|
```
|
|
88
88
|
|
|
89
|
-
## Contribute
|
|
90
|
-
|
|
91
|
-
### Setup package for development
|
|
92
|
-
|
|
93
|
-
- Create a Python virtualenv and activate it
|
|
94
|
-
- Install "pip-tools" with `pip install -U pip-tools`
|
|
95
|
-
- Compile the requirements with `pip-compile --extra dev, -o requirements.txt pyproject.toml --resolver=backtracking`
|
|
96
|
-
- Sync the dependencies with your virtualenv with `pip-sync`
|
|
97
|
-
|
|
98
|
-
### Add functionality
|
|
99
|
-
|
|
100
|
-
- Create a new branch for your feature
|
|
101
|
-
- Change the dependency in your requirements.txt to a local (editable) one that points to your local file system:
|
|
102
|
-
`-e /Users/workspace/django-migration-zero` or via pip `pip install -e /Users/workspace/django-migration-zero`
|
|
103
|
-
- Ensure the code passes the tests
|
|
104
|
-
- Create a pull request
|
|
105
|
-
|
|
106
|
-
### Run tests
|
|
107
|
-
|
|
108
|
-
- Run tests
|
|
109
|
-
````
|
|
110
|
-
pytest --ds settings tests
|
|
111
|
-
````
|
|
112
|
-
|
|
113
|
-
- Check coverage
|
|
114
|
-
````
|
|
115
|
-
coverage run -m pytest --ds settings tests
|
|
116
|
-
coverage report -m
|
|
117
|
-
````
|
|
118
|
-
|
|
119
|
-
### Git hooks (via pre-commit)
|
|
120
|
-
|
|
121
|
-
We use pre-push hooks to ensure that only linted code reaches our remote repository and pipelines aren't triggered in
|
|
122
|
-
vain.
|
|
123
|
-
|
|
124
|
-
To enable the configured pre-push hooks, you need to [install](https://pre-commit.com/) pre-commit and run once:
|
|
125
|
-
|
|
126
|
-
pre-commit install -t pre-push -t pre-commit --install-hooks
|
|
127
|
-
|
|
128
|
-
This will permanently install the git hooks for both, frontend and backend, in your local
|
|
129
|
-
[`.git/hooks`](./.git/hooks) folder.
|
|
130
|
-
The hooks are configured in the [`.pre-commit-config.yaml`](templates/.pre-commit-config.yaml.tpl).
|
|
131
|
-
|
|
132
|
-
You can check whether hooks work as intended using the [run](https://pre-commit.com/#pre-commit-run) command:
|
|
133
|
-
|
|
134
|
-
pre-commit run [hook-id] [options]
|
|
135
|
-
|
|
136
|
-
Example: run single hook
|
|
137
|
-
|
|
138
|
-
pre-commit run ruff --all-files
|
|
139
|
-
|
|
140
|
-
Example: run all hooks of pre-push stage
|
|
141
|
-
|
|
142
|
-
pre-commit run --all-files --hook-stage push
|
|
143
|
-
|
|
144
|
-
### Update documentation
|
|
145
|
-
|
|
146
|
-
- To build the documentation, run: `sphinx-build docs/ docs/_build/html/`.
|
|
147
|
-
- Open `docs/_build/html/index.html` to see the documentation.
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
### Translation files
|
|
151
|
-
|
|
152
|
-
If you have added custom text, make sure to wrap it in `_()` where `_` is
|
|
153
|
-
gettext_lazy (`from django.utils.translation import gettext_lazy as _`).
|
|
154
|
-
|
|
155
|
-
How to create translation file:
|
|
156
|
-
|
|
157
|
-
* Navigate to `django-migration-zero`
|
|
158
|
-
* `python manage.py makemessages -l de`
|
|
159
|
-
* Have a look at the new/changed files within `django_migration_zero/locale`
|
|
160
|
-
|
|
161
|
-
How to compile translation files:
|
|
162
|
-
|
|
163
|
-
* Navigate to `django-migration-zero`
|
|
164
|
-
* `python manage.py compilemessages`
|
|
165
|
-
* Have a look at the new/changed files within `django_migration_zero/locale`
|
|
166
|
-
|
|
167
|
-
|
|
168
89
|
### Publish to ReadTheDocs.io
|
|
169
90
|
|
|
170
91
|
- Fetch the latest changes in GitHub mirror and push them
|
|
@@ -201,4 +122,3 @@ configuration and setup files. It works similar to well-known updaters like `pyu
|
|
|
201
122
|
|
|
202
123
|
To run an update, refer to the [documentation page](https://pypi.org/project/ambient-package-update/)
|
|
203
124
|
of the "ambient-package-update".
|
|
204
|
-
|
|
@@ -4,7 +4,7 @@ The maintainers of this package take security bugs seriously. We appreciate your
|
|
|
4
4
|
disclose your findings, and will make every effort to acknowledge your contributions.
|
|
5
5
|
|
|
6
6
|
To report a security issue, please use the GitHub Security
|
|
7
|
-
Advisory ["Report a Vulnerability"](https://github.com/ambient-innovation/django-migration-zero/security/advisories/new)
|
|
7
|
+
Advisory ["Report a Vulnerability"](https://github.com/ambient-innovation/django-migration-zero/security/advisories/new)
|
|
8
8
|
tab.
|
|
9
9
|
|
|
10
10
|
The maintainers will send a response indicating the next steps in handling your report. After the initial reply to
|
|
@@ -13,8 +13,8 @@ classifiers = [
|
|
|
13
13
|
"Environment :: Web Environment",
|
|
14
14
|
"Framework :: Django",
|
|
15
15
|
"Framework :: Django :: 4.2",
|
|
16
|
-
"Framework :: Django :: 5.0",
|
|
17
16
|
"Framework :: Django :: 5.1",
|
|
17
|
+
"Framework :: Django :: 5.2",
|
|
18
18
|
"Intended Audience :: Developers",
|
|
19
19
|
"License :: OSI Approved :: MIT License",
|
|
20
20
|
"Natural Language :: English",
|
|
@@ -43,14 +43,14 @@ dev = [
|
|
|
43
43
|
'pytest-django~=4.9',
|
|
44
44
|
'pytest-mock~=3.14',
|
|
45
45
|
'coverage~=7.6',
|
|
46
|
-
'pre-commit~=4.
|
|
47
|
-
'ruff~=0.
|
|
46
|
+
'pre-commit~=4.2',
|
|
47
|
+
'ruff~=0.11',
|
|
48
48
|
'sphinx~=7.1',
|
|
49
49
|
'sphinx-rtd-theme~=2.0',
|
|
50
50
|
'm2r2==0.3.3.post2',
|
|
51
51
|
'mistune<2.0.0',
|
|
52
|
-
'flit~=3.
|
|
53
|
-
'keyring~=25.
|
|
52
|
+
'flit~=3.12',
|
|
53
|
+
'keyring~=25.6',
|
|
54
54
|
'ambient-package-update',
|
|
55
55
|
'unittest-parametrize~=1.3',
|
|
56
56
|
'freezegun~=1.5',
|
|
@@ -93,7 +93,8 @@ lint.select = [
|
|
|
93
93
|
"ANN401", # Checks that function arguments are annotated with a more specific type than Any
|
|
94
94
|
"TRY", # Clean try/except
|
|
95
95
|
"ERA", # Commented out code
|
|
96
|
-
"INP"
|
|
96
|
+
"INP", # Ban PEP-420 implicit namespace packages
|
|
97
|
+
"C90", # McCabe code complexity
|
|
97
98
|
]
|
|
98
99
|
lint.ignore = [
|
|
99
100
|
"TRY003", # Avoid specifying long messages outside the exception class
|
|
@@ -126,7 +127,8 @@ lint.fixable = [
|
|
|
126
127
|
"ANN401", # Checks that function arguments are annotated with a more specific type than Any
|
|
127
128
|
"TRY", # Clean try/except
|
|
128
129
|
"ERA", # Commented out code
|
|
129
|
-
"INP"
|
|
130
|
+
"INP", # Ban PEP-420 implicit namespace packages
|
|
131
|
+
"C90", # McCabe code complexity
|
|
130
132
|
]
|
|
131
133
|
lint.unfixable = []
|
|
132
134
|
|
|
@@ -204,8 +206,8 @@ legacy_tox_ini = """
|
|
|
204
206
|
# Django deprecation overview: https://www.djangoproject.com/download/
|
|
205
207
|
deps =
|
|
206
208
|
django42: Django==4.2.*
|
|
207
|
-
django50: Django==5.0.*
|
|
208
209
|
django51: Django==5.1.*
|
|
210
|
+
django52: Django==5.2.*
|
|
209
211
|
extras = dev,
|
|
210
212
|
commands =
|
|
211
213
|
coverage run -m pytest --ds settings tests
|
{django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/.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
|
{django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/django_migration_zero/exceptions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/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.7 → django_migration_zero-2.3.9}/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.7 → django_migration_zero-2.3.9}/django_migration_zero/services/local.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/docs/features/01_introduction.md
RENAMED
|
File without changes
|
{django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/docs/features/02_configuration.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/docs/features/05_architecture.md
RENAMED
|
File without changes
|
{django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/docs/features/06_management_commands.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/scripts/unix/install_requirements.sh
RENAMED
|
File without changes
|
|
File without changes
|
{django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/scripts/windows/install_requirements.ps1
RENAMED
|
File without changes
|
{django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/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
|
{django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/tests/helpers/test_file_system.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/tests/management/commands/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{django_migration_zero-2.3.7 → django_migration_zero-2.3.9}/tests/services/test_deployment.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|