Skip to content

Commit c0c98ae

Browse files
committed
fix ci
1 parent df06531 commit c0c98ae

5 files changed

Lines changed: 20 additions & 28 deletions

File tree

constraints_plone60.txt

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1 @@
11
-c https://dist.plone.org/release/6.0-latest/constraints.txt
2-
3-
#setuptools==54.0.0
4-
#zc.buildout==3.0.0b2
5-
#pip==21.0.1
6-
#
7-
## Windows specific down here (has to be installed here, fails in buildout)
8-
## Dependency of zope.sendmail:
9-
#pywin32 ; platform_system == 'Windows'
10-
#
11-
## SSL Certs on windows, because Python is missing them otherwise:
12-
#certifi ; platform_system == 'Windows'
13-
tox==4.3.5
14-
isort>=5
15-
black==22.8.0
16-
flake8==5.0.4

requirements_plone60.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
-c constraints_plone60.txt
2-
setuptools
32
zc.buildout

src/redturtle/rsync/adapters/adapter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from plone import api
66
from plone.registry.interfaces import IRegistry
77
from Products.CMFPlone.interfaces.controlpanel import IMailSchema
8+
from redturtle.rsync import _
89
from redturtle.rsync.interfaces import IRedturtleRsyncAdapter
910
from redturtle.rsync.scripts.rsync import logger
1011
from requests.adapters import HTTPAdapter
@@ -13,7 +14,6 @@
1314
from zope.component import getUtility
1415
from zope.interface import implementer
1516
from zope.interface import Interface
16-
from redturtle.rsync import _
1717

1818
import json
1919
import re

src/redturtle/rsync/scripts/rsync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def _main(args):
138138
runner = ScriptRunner(args=args)
139139
runner.rsync()
140140
if not getattr(runner.options, "dry_run", False):
141-
logger.info(f"FINAL COMMIT")
141+
logger.info("FINAL COMMIT")
142142
transaction.get().note(
143143
runner.adapter.log_item_title(start=runner.adapter.start)
144144
)

tox.ini

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
[tox]
22
envlist =
3-
py37-lint,
4-
py38-lint,
5-
py39-lint,
6-
py310-lint,
3+
py311-lint,
74
black-check,
8-
py{38,37}-Plone{52},
9-
py{39,310}-Plone{60},
5+
py{38}-Plone{52},
6+
py{311}-Plone{60},
107
# docs,
118
# coverage-report,
129

@@ -15,11 +12,10 @@ skip_missing_interpreters = True
1512

1613
[gh-actions]
1714
python =
18-
3.6: py36
19-
3.7: py37
2015
3.8: py38
2116
3.9: py39
2217
3.10: py310
18+
3.11: py311
2319

2420

2521
[gh-actions:env]
@@ -54,6 +50,10 @@ deps =
5450
Plone60: -rrequirements_plone60.txt
5551
# Plone60: -cconstraints_plone60.txt
5652
coverage
53+
isort>=5
54+
black==22.8.0
55+
flake8==5.0.4
56+
5757

5858

5959
[testenv:coverage-report]
@@ -127,7 +127,7 @@ commands =
127127

128128

129129
[testenv:black-check]
130-
basepython = python3.9
130+
basepython = python3.11
131131
skip_install = True
132132
deps =
133133
-cconstraints.txt
@@ -138,7 +138,7 @@ commands =
138138

139139

140140
[testenv:black-enforce]
141-
basepython = python3.9
141+
basepython = python3.11
142142
skip_install = True
143143
deps =
144144
-cconstraints.txt
@@ -176,6 +176,14 @@ deps = {[lint]deps}
176176
commands = {[lint]commands}
177177
allowlist_externals = {[lint]allowlist_externals}
178178

179+
[testenv:py311-lint]
180+
basepython = python3.11
181+
skip_install = true
182+
deps = {[lint]deps}
183+
commands = {[lint]commands}
184+
allowlist_externals = {[lint]allowlist_externals}
185+
186+
179187
[testenv:docs]
180188
skip_install = true
181189

0 commit comments

Comments
 (0)