-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #227 from jedie/dev
mamageprojects updates + update requirements
- Loading branch information
Showing
24 changed files
with
3,192 additions
and
3,483 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
*.egg-info | ||
__pycache__ | ||
/dist/ | ||
/build/ | ||
/coverage.* | ||
*.orig | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,11 +7,12 @@ readme = "README.md" | |
authors = [ | ||
{name = 'Jens Diemer', email = '[email protected]'} | ||
] | ||
requires-python = ">=3.9,<4" # Keep Python 3.9 until Yunohost contains a newer Python Version ;) | ||
requires-python = ">=3.9" # Keep Python 3.9 until Yunohost contains a newer Python Version ;) | ||
dependencies = [ | ||
"django", | ||
"django-reversion", # https://github.com/etianen/django-reversion | ||
"diff-match-patch", # https://github.com/diff-match-patch-python/diff-match-patch | ||
"rich", # https://github.com/Textualize/rich | ||
] | ||
[project.optional-dependencies] | ||
dev = [ | ||
|
@@ -56,10 +57,12 @@ dev = [ | |
"model_bakery", # https://github.com/model-bakers/model_bakery | ||
"requests-mock", | ||
"django-override-storage", # https://github.com/danifus/django-override-storage | ||
"beautifulsoup4", # https://pypi.org/project/beautifulsoup4/ | ||
"freezegun", # https://github.com/spulec/freezegun | ||
] | ||
django32=["django>=3.2,<3.3"] | ||
django41=["django>=4.1,<4.2"] | ||
django42=["django>=4.2,<4.3"] | ||
django50=["django>=5.0,<5.1"] | ||
|
||
[project.urls] | ||
Documentation = "https://github.com/jedie/django-reversion-compare" | ||
|
@@ -144,7 +147,7 @@ exclude_lines = [ | |
legacy_tox_ini = """ | ||
[tox] | ||
isolated_build = True | ||
envlist = py{312,311,310,39}-django{42,41,32} | ||
envlist = py{312,311,310,39}-django{50,42,32} | ||
skip_missing_interpreters = True | ||
[testenv] | ||
|
@@ -153,12 +156,12 @@ skip_install = true | |
commands_pre = | ||
pip install -U pip-tools | ||
django32: pip-sync requirements.django32.txt | ||
django41: pip-sync requirements.django41.txt | ||
django42: pip-sync requirements.django42.txt | ||
django50: pip-sync requirements.django50.txt | ||
commands = | ||
django32: {envpython} -m coverage run --context='{envname}' -m reversion_compare_project test --buffer | ||
django41: {envpython} -m coverage run --context='{envname}' -m reversion_compare_project test --buffer --shuffle --parallel | ||
django42: {envpython} -m coverage run --context='{envname}' -m reversion_compare_project test --buffer --shuffle --parallel | ||
django50: {envpython} -m coverage run --context='{envname}' -m reversion_compare_project test --buffer --shuffle --parallel | ||
""" | ||
|
||
|
||
|
@@ -180,6 +183,7 @@ applied_migrations = [ | |
"00fbc5d", # 2023-04-07T12:35:09+02:00 | ||
"c1a9d97", # 2023-11-01T19:59:17+01:00 | ||
"363c360", # 2023-12-16T19:37:39+01:00 | ||
"a66e5ae", # 2024-01-16T19:13:13+01:00 | ||
] | ||
|
||
[manageprojects.cookiecutter_context.cookiecutter] | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
@media (prefers-color-scheme: dark) { | ||
:root { | ||
--del: #59000f; | ||
--ins: #005608; | ||
} | ||
} | ||
html[data-theme="dark"] { | ||
--del: #59000f; | ||
--ins: #005608; | ||
} | ||
@media (prefers-color-scheme: light) { | ||
:root { | ||
--del: #ff7c8e; | ||
--ins: #7df69a; | ||
} | ||
} | ||
html[data-theme="light"] { | ||
--del: #ff7c8e; | ||
--ins: #7df69a; | ||
} | ||
pre.highlight { | ||
max-width: 900px; | ||
border: 1px solid var(--border-color); | ||
border-radius: 4px; | ||
padding: 5px 6px; | ||
margin-top: 0; | ||
color: var(--body-fg); | ||
background-color: var(--body-bg); | ||
} | ||
del { | ||
background-color: var(--del); | ||
} | ||
ins { | ||
background-color: var(--ins); | ||
} |
31 changes: 4 additions & 27 deletions
31
reversion_compare/templates/reversion-compare/compare.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.