Skip to content

Commit 3a8f8d4

Browse files
committed
Support Plone 6.0+ and Python3.9+
Actually no change was done in the code, but supporting GHA for older versions is not feasible anymore.
1 parent f7565a6 commit 3a8f8d4

File tree

17 files changed

+76
-319
lines changed

17 files changed

+76
-319
lines changed

.gha.cfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,8 @@ extends = plone-x.x.x.cfg
55
recipe = plone.recipe.codeanalysis
66
pre-commit-hook = False
77
return-status-codes = True
8+
9+
[versions]
10+
# Use the versions from the requirements files
11+
setuptools =
12+
zc.buildout =

.github/workflows/tests.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,16 @@ jobs:
1515
strategy:
1616
matrix:
1717
config:
18-
- ["Py2.7-Plone5.1", "2.7", "5.1"]
19-
- ["Py2.7-Plone5.2", "2.7", "5.2"]
20-
- ["Py3.6-Plone5.2", "3.6", "5.2"]
21-
- ["Py3.7-Plone5.2", "3.7", "5.2"]
22-
- ["Py3.8-Plone5.2", "3.8", "5.2"]
18+
- ["Py3.9-Plone6.0", "3.9", "6.0"]
19+
- ["Py3.13-Plone6.1", "3.13", "6.1"]
2320
steps:
24-
- uses: actions/checkout@v2
21+
- uses: actions/checkout@v5
2522
- name: Set up Python ${{ matrix.config[1] }}
26-
uses: actions/setup-python@v2
23+
uses: actions/setup-python@v6
2724
with:
2825
python-version: ${{ matrix.config[1] }}
2926
- name: Pip cache
30-
uses: actions/cache@v2
27+
uses: actions/cache@v4
3128
with:
3229
path: |
3330
~/.cache/pip
@@ -44,10 +41,14 @@ jobs:
4441
echo "[buildout]" > $HOME/.buildout/default.cfg
4542
echo "download-cache = $HOME/buildout-cache/downloads" >> $HOME/.buildout/default.cfg
4643
echo "eggs-directory = $HOME/buildout-cache/eggs" >> $HOME/.buildout/default.cfg
47-
wget https://github.com/mozilla/geckodriver/releases/download/v0.26.0/geckodriver-v0.26.0-linux64.tar.gz
48-
mkdir geckodriver && tar zxvf geckodriver-v0.26.0-linux64.tar.gz -C geckodriver
49-
python -m pip install --upgrade pip
50-
pip install -r requirements.txt
44+
echo "abi-tag-eggs = true" >> $HOME/.buildout/default.cfg
45+
46+
- name: Install requirements and buildout
47+
run: |
48+
pip install -r requirements-${{ matrix.config[2] }}.txt
49+
50+
- name: Run buildout
51+
run: |
5152
sed -ie "s#plone-x.x.x.cfg#plone-${{ matrix.config[2] }}.x.cfg#" .gha.cfg
5253
buildout -c .gha.cfg
5354
- name: Test

CHANGES.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
Changelog
22
=========
33

4-
3.0.1 (unreleased)
4+
4.0.0 (unreleased)
55
------------------
66

7-
- Nothing changed yet.
7+
- Support only Python 3.9+ and Plone 6.0+
8+
[ale-rt]
89

910

1011
3.0.0 (2021-02-17)

Makefile

Lines changed: 0 additions & 106 deletions
This file was deleted.

README.rst

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,17 @@ Basic Installation
3737
Compatibility
3838
-------------
3939

40-
For Plone 5.1 and 5.2 you should use version 3.x.
41-
For Plone 4.3 and 5.0 you should use version 2.x.
40+
This table shows which version of collective.workspace is compatible with which versions of Plone and Python:
41+
42+
+---------------+----------------------+---------------------------+
43+
| Plone | Python | collective.workspace |
44+
+===============+======================+===========================+
45+
| 6.0+ | 3.9+ | 4 |
46+
+---------------+----------------------+---------------------------+
47+
| 5.1, 5.2 | 2.7 - 3.8 | 3 |
48+
+---------------+----------------------+---------------------------+
49+
| 4.3, 5.0 | 2.7 | 2 |
50+
+---------------+----------------------+---------------------------+
4251

4352
Custom Workspace Groups
4453
-----------------------

base.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ flake8-extensions =
5050
# flake8-select = E123
5151

5252
[test]
53-
recipe = collective.xmltestreport
53+
recipe = zc.recipe.testrunner
5454
eggs = ${instance:eggs}
5555
defaults = ['-s', 'collective.workspace', '--auto-color', '--auto-progress']
5656
environment = environment
@@ -106,4 +106,4 @@ mode = 755
106106
[versions]
107107
collective.workspace =
108108
setuptools =
109-
zc.buildout =
109+
zc.buildout =

plone-5.1.x.cfg

Lines changed: 0 additions & 80 deletions
This file was deleted.

plone-5.2.x.cfg

Lines changed: 0 additions & 53 deletions
This file was deleted.

plone-6.0.x.cfg

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[buildout]
2+
extends =
3+
base.cfg
4+
https://dist.plone.org/release/6.0-latest/versions.cfg
5+
https://dist.plone.org/release/6.0-latest/versions-ecosystem.cfg
6+
https://dist.plone.org/release/6.0-latest/versions-extra.cfg
7+
find-links += https://dist.plone.org/thirdparty/
8+
versions=versions
9+
show-picked-versions = true

plone-6.1.x.cfg

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[buildout]
2+
extends =
3+
base.cfg
4+
https://dist.plone.org/release/6.1-latest/versions.cfg
5+
https://dist.plone.org/release/6.1-latest/versions-ecosystem.cfg
6+
https://dist.plone.org/release/6.1-latest/versions-extra.cfg
7+
find-links += https://dist.plone.org/thirdparty/
8+
versions=versions
9+
show-picked-versions = true

0 commit comments

Comments
 (0)