Skip to content

Commit c773217

Browse files
committed
Force to use pip<24 for Plone 5.2
``` WARNING: Ignoring version 5.2.5 of Products.CMFPlone since it has invalid metadata: Requested Products.CMFPlone from https://files.pythonhosted.org/packages/a8/b1/7f746d0ecf0fc95c3e81585aa4f6dddca04be643509aa803754d736ab7e6/Products.CMFPlone-5.2.5-py2.py3-none-any.whl (from plone.app.contentmenu==2.3.3->-r requirements-mxdev.txt (line 8)) has invalid metadata: Expected matching RIGHT_PARENTHESIS for LEFT_PARENTHESIS, after version specifier plone.app.contentmenu (>=1.1.6dev-r22380) ~~~~~~~~~~~~^ Please use pip<24.1 if you need to use this version. ``` In connection with this, avoid using the setup-plone action because it's unclear how it can be forced to use a specific old version of pip.
1 parent c46b671 commit c773217

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.github/workflows/test-plone-5.2.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,12 @@ jobs:
2929
3030
# python setup
3131
- name: Set up Python ${{ matrix.python-version }} with Plone 5.2.5
32-
uses: plone/[email protected]
33-
with:
34-
python-version: ${{ matrix.python-version }}
35-
plone-version: "5.2.5"
32+
run: |
33+
make install-plone-5.2
34+
35+
## Note: setup-plone action is retired, because we need to force
36+
## an older pip version, but the action seems to fetch the new version
37+
## regardless what I try.
3638

3739
# python cache
3840
- uses: actions/cache@v1

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ install-plone-5.2: bin/mxdev config ## pip install Plone packages
106106
@echo "$(GREEN)==> Setup Build$(RESET)"
107107
cp constraints-5.2.txt constraints.txt
108108
cp requirements-5.2.txt requirements.txt
109+
pip install pip\<24
109110
bin/tox -e init
110111
bin/mxdev -c mx.ini
111112
bin/pip install -r requirements-mxdev.txt

requirements-5.2.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
-c constraints.txt
2+
pip<24
23

34
# Cannot install new testing framework with 5.2
45
# -e ".[test]"

0 commit comments

Comments
 (0)