django-dynamic-admin-forms 3.2.7__tar.gz → 3.2.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_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/.github/workflows/ci.yml +3 -5
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/.pre-commit-config.yaml +18 -13
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/CHANGES.md +6 -0
- django_dynamic_admin_forms-3.2.9/CONTRIBUTING.md +77 -0
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/PKG-INFO +6 -86
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/README.md +0 -80
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/SECURITY.md +1 -1
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/django_dynamic_admin_forms/__init__.py +1 -1
- django_dynamic_admin_forms-3.2.9/docs/features/changelog.rst +1 -0
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/docs/index.rst +7 -7
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/pyproject.toml +10 -8
- django_dynamic_admin_forms-3.2.7/docs/features/changelog.rst +0 -1
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/.ambient-package-update/metadata.py +0 -0
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/.ambient-package-update/templates/snippets/content.tpl +0 -0
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/.ambient-package-update/templates/snippets/installation.tpl +0 -0
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/.editorconfig +0 -0
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/.gitignore +0 -0
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/.python-version +0 -0
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/.readthedocs.yaml +0 -0
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/LICENSE.md +0 -0
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/MANIFEST.in +0 -0
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/django_dynamic_admin_forms/admin.py +0 -0
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/django_dynamic_admin_forms/apps.py +0 -0
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/django_dynamic_admin_forms/static/js/dynamic_admin.js +0 -0
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/django_dynamic_admin_forms/templates/admin/change_form.html +0 -0
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/django_dynamic_admin_forms/urls.py +0 -0
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/docs/Makefile +0 -0
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/docs/conf.py +0 -0
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/docs/demo.gif +0 -0
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/docs/make.bat +0 -0
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/e2e/cypress/integration/dynamic-select.spec.js +0 -0
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/e2e/cypress/plugins/index.js +0 -0
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/e2e/cypress/support/commands.js +0 -0
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/e2e/cypress/support/index.js +0 -0
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/e2e/cypress/support/paths.js +0 -0
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/e2e/cypress.json +0 -0
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/e2e/package.json +0 -0
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/e2e/yarn.lock +0 -0
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/fixtures/fixtures-dev.json +0 -0
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/manage.py +0 -0
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/scripts/unix/install_requirements.sh +0 -0
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/scripts/unix/publish_to_pypi.sh +0 -0
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/scripts/windows/install_requirements.ps1 +0 -0
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/scripts/windows/publish_to_pypi.ps1 +0 -0
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/settings.py +0 -0
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/testapp/__init__.py +0 -0
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/testapp/admin.py +0 -0
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/testapp/apps.py +0 -0
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/testapp/migrations/0001_initial.py +0 -0
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/testapp/migrations/0002_extend_example.py +0 -0
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/testapp/migrations/0003_example_file_field.py +0 -0
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/testapp/migrations/__init__.py +0 -0
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/testapp/models.py +0 -0
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/testapp/urls.py +0 -0
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/tests/__init__.py +0 -0
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/tests/test_admin_generic.py +0 -0
- {django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/tests/test_admin_unit.py +0 -0
{django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/.github/workflows/ci.yml
RENAMED
|
@@ -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
|
|
|
27
27
|
tests:
|
|
@@ -30,17 +30,15 @@ jobs:
|
|
|
30
30
|
strategy:
|
|
31
31
|
matrix:
|
|
32
32
|
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', ]
|
|
33
|
-
django-version: ['42', '
|
|
33
|
+
django-version: ['42', '51', '52', ]
|
|
34
34
|
|
|
35
35
|
exclude:
|
|
36
36
|
- python-version: '3.9'
|
|
37
|
-
django-version:
|
|
37
|
+
django-version: 52
|
|
38
38
|
- python-version: '3.9'
|
|
39
39
|
django-version: 51
|
|
40
40
|
- python-version: "3.13"
|
|
41
41
|
django-version: 42
|
|
42
|
-
- python-version: "3.13"
|
|
43
|
-
django-version: 50
|
|
44
42
|
|
|
45
43
|
steps:
|
|
46
44
|
- uses: actions/checkout@v4
|
{django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/.pre-commit-config.yaml
RENAMED
|
@@ -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-dynamic-admin-forms` or via pip `pip install -e /Users/workspace/django-dynamic-admin-forms`
|
|
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-dynamic-admin-forms`
|
|
70
|
+
* `python manage.py makemessages -l de`
|
|
71
|
+
* Have a look at the new/changed files within `django_dynamic_admin_forms/locale`
|
|
72
|
+
|
|
73
|
+
How to compile translation files:
|
|
74
|
+
|
|
75
|
+
* Navigate to `django-dynamic-admin-forms`
|
|
76
|
+
* `python manage.py compilemessages`
|
|
77
|
+
* Have a look at the new/changed files within `django_dynamic_admin_forms/locale`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: django-dynamic-admin-forms
|
|
3
|
-
Version: 3.2.
|
|
3
|
+
Version: 3.2.9
|
|
4
4
|
Summary: Add simple dynamic interaction to the otherwise static django admin.
|
|
5
5
|
Author-email: Ambient Digital <hello@ambient.digital>, Fabian Binz <fabian.binz@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.4 ; extra == "dev"
|
|
40
40
|
Project-URL: Bugtracker, https://github.com/ambient-innovation/django-dynamic-admin/issues
|
|
@@ -218,85 +218,6 @@ $ yarn cypress # or npm run cypress
|
|
|
218
218
|
|
|
219
219
|
- Run `python manage.py collectstatic` to include this apps Javascript code in your `settings.STATIC_ROOT` directory
|
|
220
220
|
|
|
221
|
-
## Contribute
|
|
222
|
-
|
|
223
|
-
### Setup package for development
|
|
224
|
-
|
|
225
|
-
- Create a Python virtualenv and activate it
|
|
226
|
-
- Install "pip-tools" with `pip install -U pip-tools`
|
|
227
|
-
- Compile the requirements with `pip-compile --extra dev, -o requirements.txt pyproject.toml --resolver=backtracking`
|
|
228
|
-
- Sync the dependencies with your virtualenv with `pip-sync`
|
|
229
|
-
|
|
230
|
-
### Add functionality
|
|
231
|
-
|
|
232
|
-
- Create a new branch for your feature
|
|
233
|
-
- Change the dependency in your requirements.txt to a local (editable) one that points to your local file system:
|
|
234
|
-
`-e /Users/workspace/django-dynamic-admin-forms` or via pip `pip install -e /Users/workspace/django-dynamic-admin-forms`
|
|
235
|
-
- Ensure the code passes the tests
|
|
236
|
-
- Create a pull request
|
|
237
|
-
|
|
238
|
-
### Run tests
|
|
239
|
-
|
|
240
|
-
- Run tests
|
|
241
|
-
````
|
|
242
|
-
pytest --ds settings tests
|
|
243
|
-
````
|
|
244
|
-
|
|
245
|
-
- Check coverage
|
|
246
|
-
````
|
|
247
|
-
coverage run -m pytest --ds settings tests
|
|
248
|
-
coverage report -m
|
|
249
|
-
````
|
|
250
|
-
|
|
251
|
-
### Git hooks (via pre-commit)
|
|
252
|
-
|
|
253
|
-
We use pre-push hooks to ensure that only linted code reaches our remote repository and pipelines aren't triggered in
|
|
254
|
-
vain.
|
|
255
|
-
|
|
256
|
-
To enable the configured pre-push hooks, you need to [install](https://pre-commit.com/) pre-commit and run once:
|
|
257
|
-
|
|
258
|
-
pre-commit install -t pre-push -t pre-commit --install-hooks
|
|
259
|
-
|
|
260
|
-
This will permanently install the git hooks for both, frontend and backend, in your local
|
|
261
|
-
[`.git/hooks`](./.git/hooks) folder.
|
|
262
|
-
The hooks are configured in the [`.pre-commit-config.yaml`](templates/.pre-commit-config.yaml.tpl).
|
|
263
|
-
|
|
264
|
-
You can check whether hooks work as intended using the [run](https://pre-commit.com/#pre-commit-run) command:
|
|
265
|
-
|
|
266
|
-
pre-commit run [hook-id] [options]
|
|
267
|
-
|
|
268
|
-
Example: run single hook
|
|
269
|
-
|
|
270
|
-
pre-commit run ruff --all-files
|
|
271
|
-
|
|
272
|
-
Example: run all hooks of pre-push stage
|
|
273
|
-
|
|
274
|
-
pre-commit run --all-files --hook-stage push
|
|
275
|
-
|
|
276
|
-
### Update documentation
|
|
277
|
-
|
|
278
|
-
- To build the documentation, run: `sphinx-build docs/ docs/_build/html/`.
|
|
279
|
-
- Open `docs/_build/html/index.html` to see the documentation.
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
### Translation files
|
|
283
|
-
|
|
284
|
-
If you have added custom text, make sure to wrap it in `_()` where `_` is
|
|
285
|
-
gettext_lazy (`from django.utils.translation import gettext_lazy as _`).
|
|
286
|
-
|
|
287
|
-
How to create translation file:
|
|
288
|
-
|
|
289
|
-
* Navigate to `django-dynamic-admin-forms`
|
|
290
|
-
* `python manage.py makemessages -l de`
|
|
291
|
-
* Have a look at the new/changed files within `django_dynamic_admin_forms/locale`
|
|
292
|
-
|
|
293
|
-
How to compile translation files:
|
|
294
|
-
|
|
295
|
-
* Navigate to `django-dynamic-admin-forms`
|
|
296
|
-
* `python manage.py compilemessages`
|
|
297
|
-
* Have a look at the new/changed files within `django_dynamic_admin_forms/locale`
|
|
298
|
-
|
|
299
|
-
|
|
300
221
|
### Publish to ReadTheDocs.io
|
|
301
222
|
|
|
302
223
|
- Fetch the latest changes in GitHub mirror and push them
|
|
@@ -334,4 +255,3 @@ configuration and setup files. It works similar to well-known updaters like `pyu
|
|
|
334
255
|
To run an update, refer to the [documentation page](https://pypi.org/project/ambient-package-update/)
|
|
335
256
|
of the "ambient-package-update".
|
|
336
257
|
|
|
337
|
-
|
|
@@ -172,85 +172,6 @@ $ yarn cypress # or npm run cypress
|
|
|
172
172
|
|
|
173
173
|
- Run `python manage.py collectstatic` to include this apps Javascript code in your `settings.STATIC_ROOT` directory
|
|
174
174
|
|
|
175
|
-
## Contribute
|
|
176
|
-
|
|
177
|
-
### Setup package for development
|
|
178
|
-
|
|
179
|
-
- Create a Python virtualenv and activate it
|
|
180
|
-
- Install "pip-tools" with `pip install -U pip-tools`
|
|
181
|
-
- Compile the requirements with `pip-compile --extra dev, -o requirements.txt pyproject.toml --resolver=backtracking`
|
|
182
|
-
- Sync the dependencies with your virtualenv with `pip-sync`
|
|
183
|
-
|
|
184
|
-
### Add functionality
|
|
185
|
-
|
|
186
|
-
- Create a new branch for your feature
|
|
187
|
-
- Change the dependency in your requirements.txt to a local (editable) one that points to your local file system:
|
|
188
|
-
`-e /Users/workspace/django-dynamic-admin-forms` or via pip `pip install -e /Users/workspace/django-dynamic-admin-forms`
|
|
189
|
-
- Ensure the code passes the tests
|
|
190
|
-
- Create a pull request
|
|
191
|
-
|
|
192
|
-
### Run tests
|
|
193
|
-
|
|
194
|
-
- Run tests
|
|
195
|
-
````
|
|
196
|
-
pytest --ds settings tests
|
|
197
|
-
````
|
|
198
|
-
|
|
199
|
-
- Check coverage
|
|
200
|
-
````
|
|
201
|
-
coverage run -m pytest --ds settings tests
|
|
202
|
-
coverage report -m
|
|
203
|
-
````
|
|
204
|
-
|
|
205
|
-
### Git hooks (via pre-commit)
|
|
206
|
-
|
|
207
|
-
We use pre-push hooks to ensure that only linted code reaches our remote repository and pipelines aren't triggered in
|
|
208
|
-
vain.
|
|
209
|
-
|
|
210
|
-
To enable the configured pre-push hooks, you need to [install](https://pre-commit.com/) pre-commit and run once:
|
|
211
|
-
|
|
212
|
-
pre-commit install -t pre-push -t pre-commit --install-hooks
|
|
213
|
-
|
|
214
|
-
This will permanently install the git hooks for both, frontend and backend, in your local
|
|
215
|
-
[`.git/hooks`](./.git/hooks) folder.
|
|
216
|
-
The hooks are configured in the [`.pre-commit-config.yaml`](templates/.pre-commit-config.yaml.tpl).
|
|
217
|
-
|
|
218
|
-
You can check whether hooks work as intended using the [run](https://pre-commit.com/#pre-commit-run) command:
|
|
219
|
-
|
|
220
|
-
pre-commit run [hook-id] [options]
|
|
221
|
-
|
|
222
|
-
Example: run single hook
|
|
223
|
-
|
|
224
|
-
pre-commit run ruff --all-files
|
|
225
|
-
|
|
226
|
-
Example: run all hooks of pre-push stage
|
|
227
|
-
|
|
228
|
-
pre-commit run --all-files --hook-stage push
|
|
229
|
-
|
|
230
|
-
### Update documentation
|
|
231
|
-
|
|
232
|
-
- To build the documentation, run: `sphinx-build docs/ docs/_build/html/`.
|
|
233
|
-
- Open `docs/_build/html/index.html` to see the documentation.
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
### Translation files
|
|
237
|
-
|
|
238
|
-
If you have added custom text, make sure to wrap it in `_()` where `_` is
|
|
239
|
-
gettext_lazy (`from django.utils.translation import gettext_lazy as _`).
|
|
240
|
-
|
|
241
|
-
How to create translation file:
|
|
242
|
-
|
|
243
|
-
* Navigate to `django-dynamic-admin-forms`
|
|
244
|
-
* `python manage.py makemessages -l de`
|
|
245
|
-
* Have a look at the new/changed files within `django_dynamic_admin_forms/locale`
|
|
246
|
-
|
|
247
|
-
How to compile translation files:
|
|
248
|
-
|
|
249
|
-
* Navigate to `django-dynamic-admin-forms`
|
|
250
|
-
* `python manage.py compilemessages`
|
|
251
|
-
* Have a look at the new/changed files within `django_dynamic_admin_forms/locale`
|
|
252
|
-
|
|
253
|
-
|
|
254
175
|
### Publish to ReadTheDocs.io
|
|
255
176
|
|
|
256
177
|
- Fetch the latest changes in GitHub mirror and push them
|
|
@@ -287,4 +208,3 @@ configuration and setup files. It works similar to well-known updaters like `pyu
|
|
|
287
208
|
|
|
288
209
|
To run an update, refer to the [documentation page](https://pypi.org/project/ambient-package-update/)
|
|
289
210
|
of the "ambient-package-update".
|
|
290
|
-
|
|
@@ -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-dynamic-admin/security/advisories/new)
|
|
7
|
+
Advisory ["Report a Vulnerability"](https://github.com/ambient-innovation/django-dynamic-admin/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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.. mdinclude:: ../../CHANGES.md
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
.. mdinclude:: ../README.md
|
|
2
|
-
|
|
3
|
-
.. toctree::
|
|
4
|
-
:maxdepth: 1
|
|
5
|
-
:caption: Contents:
|
|
6
|
-
|
|
7
|
-
features/changelog.md
|
|
1
|
+
.. mdinclude:: ../README.md
|
|
2
|
+
|
|
3
|
+
.. toctree::
|
|
4
|
+
:maxdepth: 1
|
|
5
|
+
:caption: Contents:
|
|
6
|
+
|
|
7
|
+
features/changelog.md
|
|
@@ -14,8 +14,8 @@ classifiers = [
|
|
|
14
14
|
"Environment :: Web Environment",
|
|
15
15
|
"Framework :: Django",
|
|
16
16
|
"Framework :: Django :: 4.2",
|
|
17
|
-
"Framework :: Django :: 5.0",
|
|
18
17
|
"Framework :: Django :: 5.1",
|
|
18
|
+
"Framework :: Django :: 5.2",
|
|
19
19
|
"Intended Audience :: Developers",
|
|
20
20
|
"License :: OSI Approved :: MIT License",
|
|
21
21
|
"Natural Language :: English",
|
|
@@ -44,14 +44,14 @@ dev = [
|
|
|
44
44
|
'pytest-django~=4.9',
|
|
45
45
|
'pytest-mock~=3.14',
|
|
46
46
|
'coverage~=7.6',
|
|
47
|
-
'pre-commit~=4.
|
|
48
|
-
'ruff~=0.
|
|
47
|
+
'pre-commit~=4.2',
|
|
48
|
+
'ruff~=0.11',
|
|
49
49
|
'sphinx~=7.1',
|
|
50
50
|
'sphinx-rtd-theme~=2.0',
|
|
51
51
|
'm2r2==0.3.3.post2',
|
|
52
52
|
'mistune<2.0.0',
|
|
53
|
-
'flit~=3.
|
|
54
|
-
'keyring~=25.
|
|
53
|
+
'flit~=3.12',
|
|
54
|
+
'keyring~=25.6',
|
|
55
55
|
'ambient-package-update',
|
|
56
56
|
'unittest-parametrize~=1.4',
|
|
57
57
|
]
|
|
@@ -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
|
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
|
|
@@ -127,7 +128,8 @@ lint.fixable = [
|
|
|
127
128
|
"ANN401", # Checks that function arguments are annotated with a more specific type than Any
|
|
128
129
|
"TRY", # Clean try/except
|
|
129
130
|
"ERA", # Commented out code
|
|
130
|
-
"INP"
|
|
131
|
+
"INP", # Ban PEP-420 implicit namespace packages
|
|
132
|
+
"C90", # McCabe code complexity
|
|
131
133
|
]
|
|
132
134
|
lint.unfixable = []
|
|
133
135
|
|
|
@@ -205,8 +207,8 @@ legacy_tox_ini = """
|
|
|
205
207
|
# Django deprecation overview: https://www.djangoproject.com/download/
|
|
206
208
|
deps =
|
|
207
209
|
django42: Django==4.2.*
|
|
208
|
-
django50: Django==5.0.*
|
|
209
210
|
django51: Django==5.1.*
|
|
211
|
+
django52: Django==5.2.*
|
|
210
212
|
extras = dev,
|
|
211
213
|
commands =
|
|
212
214
|
coverage run -m pytest --ds settings tests
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.. mdinclude:: ../../CHANGES.md
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/e2e/cypress/plugins/index.js
RENAMED
|
File without changes
|
|
File without changes
|
{django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/e2e/cypress/support/index.js
RENAMED
|
File without changes
|
{django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/e2e/cypress/support/paths.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/fixtures/fixtures-dev.json
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
|
{django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/testapp/migrations/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/tests/test_admin_generic.py
RENAMED
|
File without changes
|
{django_dynamic_admin_forms-3.2.7 → django_dynamic_admin_forms-3.2.9}/tests/test_admin_unit.py
RENAMED
|
File without changes
|