Skip to content

Commit

Permalink
enh: add dcor_control to compatible version list
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Jan 17, 2024
1 parent 433854e commit 5122876
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 28 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
0.9.3
- enh: add dcor_control to compatible version list
- cleanup
0.9.2
- fix: fix compatible versions header
0.9.1
Expand Down
1 change: 1 addition & 0 deletions dcor_control/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from ._version import version as __version__ # noqa: F401
50 changes: 25 additions & 25 deletions dcor_control/resources/compatible_versions.txt
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
ckan ckanext-dc_log_view ckanext-dc_serve ckanext-dc_view ckanext-dcor_depot ckanext-dcor_schemas ckanext-dcor_theme dcor_shared
2.10.3 0.3.2 0.14.0 0.8.1 0.13.7 0.18.10 0.7.6 0.5.5
2.10.1 0.3.2 0.14.0 0.8.1 0.13.7 0.18.9 0.7.6 0.5.5
2.10.1 0.3.2 0.13.11 0.8.0 0.13.6 0.18.9 0.7.6 0.5.4
2.10.1 0.3.1 0.13.2 0.7.1 0.13.4 0.18.7 0.7.5 0.5.2
2.10.1 0.3.1 0.13.0 0.7.1 0.13.3 0.18.6 0.7.5 0.5.2
2.10.1 0.3.1 0.12.2 0.7.1 0.13.0 0.18.6 0.7.4 0.4.4
2.10.1 0.3.1 0.12.2 0.7.1 0.12.1 0.18.4 0.7.4 0.4.3
2.10.1 0.3.1 0.12.2 0.7.1 0.12.1 0.18.2 0.7.4 0.4.1
2.10.1 0.3.0 0.12.0 0.7.0 0.12.0 0.18.0 0.7.0 0.4.1
2.9.0 0.2.2 0.4.1 0.5.1 0.7.1 0.9.1 0.3.2 0.2.2
2.9.0 0.2.2 0.4.1 0.5.2 0.7.2 0.9.1 0.3.2 0.2.3
2.9.0 0.2.3 0.4.2 0.5.4 0.7.3 0.9.3 0.3.3 0.2.4
2.9.0 0.2.3 0.4.3 0.5.5 0.7.4 0.9.4 0.3.3 0.2.5
2.9.0 0.2.3 0.4.5 0.5.7 0.7.11 0.10.0 0.3.5 0.2.6
2.9.0 0.2.3 0.4.5 0.5.7 0.7.11 0.11.0 0.3.6 0.2.6
2.9.0 0.2.5 0.4.6 0.5.8 0.8.12 0.12.0 0.3.9 0.2.7
2.9.2 0.2.5 0.4.6 0.5.8 0.8.14 0.12.4 0.3.9 0.2.8
2.9.2 0.2.6 0.4.7 0.5.9 0.8.18 0.13.0 0.4.1 0.2.8
2.9.2 0.2.6 0.4.7 0.5.9 0.8.19 0.14.0 0.4.2 0.2.8
2.9.2 0.2.6 0.4.7 0.5.10 0.9.2 0.14.1 0.4.2 0.2.8
2.9.4 0.2.7 0.6.1 0.6.4 0.9.9 0.15.9 0.4.3 0.2.11
2.9.4 0.2.8 0.6.4 0.6.7 0.9.12 0.15.12 0.4.6 0.2.11
2.9.4 0.2.8 0.9.1 0.6.9 0.10.2 0.17.1 0.6.0 0.2.11
2.9.4 0.2.9 0.9.2 0.6.10 0.10.3 0.17.2 0.6.1 0.3.1
ckan ckanext-dc_log_view ckanext-dc_serve ckanext-dc_view ckanext-dcor_depot ckanext-dcor_schemas ckanext-dcor_theme dcor_control dcor_shared
2.10.3 0.3.2 0.14.0 0.8.1 0.13.7 0.18.10 0.7.6 0.9.3 0.5.5
2.10.1 0.3.2 0.14.0 0.8.1 0.13.7 0.18.9 0.7.6 0.9.3 0.5.5
2.10.1 0.3.2 0.13.11 0.8.0 0.13.6 0.18.9 0.7.6 0.9.3 0.5.4
2.10.1 0.3.1 0.13.2 0.7.1 0.13.4 0.18.7 0.7.5 0.9.3 0.5.2
2.10.1 0.3.1 0.13.0 0.7.1 0.13.3 0.18.6 0.7.5 0.9.3 0.5.2
2.10.1 0.3.1 0.12.2 0.7.1 0.13.0 0.18.6 0.7.4 0.9.3 0.4.4
2.10.1 0.3.1 0.12.2 0.7.1 0.12.1 0.18.4 0.7.4 0.9.3 0.4.3
2.10.1 0.3.1 0.12.2 0.7.1 0.12.1 0.18.2 0.7.4 0.9.3 0.4.1
2.10.1 0.3.0 0.12.0 0.7.0 0.12.0 0.18.0 0.7.0 0.9.3 0.4.1
2.9.0 0.2.2 0.4.1 0.5.1 0.7.1 0.9.1 0.3.2 0.9.3 0.2.2
2.9.0 0.2.2 0.4.1 0.5.2 0.7.2 0.9.1 0.3.2 0.9.3 0.2.3
2.9.0 0.2.3 0.4.2 0.5.4 0.7.3 0.9.3 0.3.3 0.9.3 0.2.4
2.9.0 0.2.3 0.4.3 0.5.5 0.7.4 0.9.4 0.3.3 0.9.3 0.2.5
2.9.0 0.2.3 0.4.5 0.5.7 0.7.11 0.10.0 0.3.5 0.9.3 0.2.6
2.9.0 0.2.3 0.4.5 0.5.7 0.7.11 0.11.0 0.3.6 0.9.3 0.2.6
2.9.0 0.2.5 0.4.6 0.5.8 0.8.12 0.12.0 0.3.9 0.9.3 0.2.7
2.9.2 0.2.5 0.4.6 0.5.8 0.8.14 0.12.4 0.3.9 0.9.3 0.2.8
2.9.2 0.2.6 0.4.7 0.5.9 0.8.18 0.13.0 0.4.1 0.9.3 0.2.8
2.9.2 0.2.6 0.4.7 0.5.9 0.8.19 0.14.0 0.4.2 0.9.3 0.2.8
2.9.2 0.2.6 0.4.7 0.5.10 0.9.2 0.14.1 0.4.2 0.9.3 0.2.8
2.9.4 0.2.7 0.6.1 0.6.4 0.9.9 0.15.9 0.4.3 0.9.3 0.2.11
2.9.4 0.2.8 0.6.4 0.6.7 0.9.12 0.15.12 0.4.6 0.9.3 0.2.11
2.9.4 0.2.8 0.9.1 0.6.9 0.10.2 0.17.1 0.6.0 0.9.3 0.2.11
2.9.4 0.2.9 0.9.2 0.6.10 0.10.3 0.17.2 0.6.1 0.9.3 0.3.1
1 change: 0 additions & 1 deletion dcor_control/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ def get_max_compatible_version(name, ckan_version=None):
# if current version is lower (compatibility mode), return the
# latest package version listed in `compatible_versions.txt`
for vdict in compatible_versions:
print(vdict)
if vdict["ckan"] == ckan_cur:
max_version = vdict[name]
break
Expand Down
2 changes: 2 additions & 0 deletions scripts/list_extension_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from ckanext import dcor_depot
from ckanext import dcor_schemas
from ckanext import dcor_theme
import dcor_control
import dcor_shared


Expand All @@ -29,6 +30,7 @@
"ckanext.dcor_depot": dcor_depot.__version__,
"ckanext.dcor_schemas": dcor_schemas.__version__,
"ckanext.dcor_theme": dcor_theme.__version__,
"dcor_control": dcor_control.__version__,
"dcor_shared": dcor_shared.__version__,
}

Expand Down
6 changes: 4 additions & 2 deletions tests/test_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def test_get_package_version(name, version):
def test_parse_compatible_versions():
data = update.parse_compatible_versions()
# make sure this line exists
# 2.10.1 0.3.2 0.14.0 0.8.1 0.13.7 0.18.9 0.7.6 0.5.5
# 2.10.1 0.3.2 0.14.0 0.8.1 0.13.7 0.18.9 0.7.6 0.9.3 0.5.5
dict_exp = {
'ckan': '2.10.1',
'ckanext-dc_log_view': '0.3.2',
Expand All @@ -43,7 +43,9 @@ def test_parse_compatible_versions():
'ckanext-dcor_depot': '0.13.7',
'ckanext-dcor_schemas': '0.18.9',
'ckanext-dcor_theme': '0.7.6',
'dcor_shared': '0.5.5'}
'dcor_control': '0.9.3',
'dcor_shared': '0.5.5',
}
assert dict_exp in data


Expand Down

0 comments on commit 5122876

Please sign in to comment.