From 4f58c90fa7b65b95d3a2cdb9b10d78bc8c9c70fb Mon Sep 17 00:00:00 2001 From: Andrea Cecchi Date: Fri, 29 Nov 2024 17:31:07 +0100 Subject: [PATCH] completely remove eea.api.taxonomy deps --- setup.py | 3 +-- src/design/plone/contenttypes/configure.zcml | 7 +++++++ src/design/plone/contenttypes/overrides.zcml | 3 --- .../plone/contenttypes/profiles/default/metadata.xml | 2 +- .../profiles/remove_eea_api_taxonomy/browserlayer.xml | 4 ++++ src/design/plone/contenttypes/upgrades/to_730x.py | 4 +++- test-6.0.x.cfg | 1 + 7 files changed, 17 insertions(+), 7 deletions(-) create mode 100644 src/design/plone/contenttypes/profiles/remove_eea_api_taxonomy/browserlayer.xml diff --git a/setup.py b/setup.py index 162f3e9e..0b4ee34a 100644 --- a/setup.py +++ b/setup.py @@ -65,10 +65,9 @@ "redturtle.bandi", "z3c.unconfigure", "plone.restapi", - "collective.taxonomy", + "collective.taxonomy>=3.1", "openpyxl", "collective.volto.enhancedlinks", - "eea.api.taxonomy", # BBB to be removed. Remove also the unconfigure in overrides.zcml ], extras_require={ "test": [ diff --git a/src/design/plone/contenttypes/configure.zcml b/src/design/plone/contenttypes/configure.zcml index 715b8049..8c7b867b 100644 --- a/src/design/plone/contenttypes/configure.zcml +++ b/src/design/plone/contenttypes/configure.zcml @@ -65,6 +65,13 @@ directory="profiles/fix_syndication" /> + - - - diff --git a/src/design/plone/contenttypes/profiles/default/metadata.xml b/src/design/plone/contenttypes/profiles/default/metadata.xml index 3cdf2fe5..58edf1c4 100644 --- a/src/design/plone/contenttypes/profiles/default/metadata.xml +++ b/src/design/plone/contenttypes/profiles/default/metadata.xml @@ -1,6 +1,6 @@ - 7308 + 7309 profile-redturtle.bandi:default profile-collective.venue:default diff --git a/src/design/plone/contenttypes/profiles/remove_eea_api_taxonomy/browserlayer.xml b/src/design/plone/contenttypes/profiles/remove_eea_api_taxonomy/browserlayer.xml new file mode 100644 index 00000000..ab11dda3 --- /dev/null +++ b/src/design/plone/contenttypes/profiles/remove_eea_api_taxonomy/browserlayer.xml @@ -0,0 +1,4 @@ + + + + diff --git a/src/design/plone/contenttypes/upgrades/to_730x.py b/src/design/plone/contenttypes/upgrades/to_730x.py index 33b2443c..492b273c 100644 --- a/src/design/plone/contenttypes/upgrades/to_730x.py +++ b/src/design/plone/contenttypes/upgrades/to_730x.py @@ -162,5 +162,7 @@ def to_7308(context): def to_7309(context): ps = api.portal.get_tool(name="portal_setup") - ps.runAllImportStepsFromProfile("profile-eea.api.taxonomy:uninstall") + ps.runAllImportStepsFromProfile( + "profile-design.plone.contenttypes:remove_eea_api_taxonomy" + ) ps.unsetLastVersionForProfile("eea.api.taxonomy:default") diff --git a/test-6.0.x.cfg b/test-6.0.x.cfg index e7455034..0060e5fa 100644 --- a/test-6.0.x.cfg +++ b/test-6.0.x.cfg @@ -6,3 +6,4 @@ extends = base.cfg [versions] +collective.taxonomy =