@@ -53,15 +53,24 @@ class Folders:
5353ENVS = {
5454 # python 3.14 - numpy is not available in precompiled version for this python version yet
5555 # (PY314, "pytest-latest"): {"coverage": False, "pkg_specs": {"pip": ">19", "pytest": ""}},
56+ # (PY314, "pytest7.x"): {"coverage": False, "pkg_specs": {"pip": ">19", "pytest": "<8"}},
57+ # (PY314, "pytest6.x"): {"coverage": False, "pkg_specs": {"pip": ">19", "pytest": "<7"}},
5658 # python 3.13
5759 (PY313 , "pytest-latest" ): {"coverage" : False , "pkg_specs" : {"pip" : ">19" , "pytest" : "" }},
60+ (PY313 , "pytest7.x" ): {"coverage" : False , "pkg_specs" : {"pip" : ">19" , "pytest" : "<8" }},
61+ (PY313 , "pytest6.x" ): {"coverage" : False , "pkg_specs" : {"pip" : ">19" , "pytest" : "<7" }},
5862 # python 3.12
5963 (PY312 , "pytest-latest" ): {"coverage" : False , "pkg_specs" : {"pip" : ">19" , "pytest" : "" }},
6064 (PY312 , "pytest7.x" ): {"coverage" : False , "pkg_specs" : {"pip" : ">19" , "pytest" : "<8" }},
65+ (PY312 , "pytest6.x" ): {"coverage" : False , "pkg_specs" : {"pip" : ">19" , "pytest" : "<7" }},
6166 # python 3.11
62- # We'll run this last for coverage
67+ # We'll run 'pytest-latest' this last for coverage
68+ (PY311 , "pytest7.x" ): {"coverage" : False , "pkg_specs" : {"pip" : ">19" , "pytest" : "<8" }},
69+ (PY311 , "pytest6.x" ): {"coverage" : False , "pkg_specs" : {"pip" : ">19" , "pytest" : "<7" }},
6370 # python 3.10
6471 (PY310 , "pytest-latest" ): {"coverage" : False , "pkg_specs" : {"pip" : ">19" , "pytest" : "" }},
72+ (PY310 , "pytest7.x" ): {"coverage" : False , "pkg_specs" : {"pip" : ">19" , "pytest" : "<8" }},
73+ (PY310 , "pytest6.x" ): {"coverage" : False , "pkg_specs" : {"pip" : ">19" , "pytest" : "<7" }},
6574 # python 3.9
6675 (PY39 , "pytest-latest" ): {"coverage" : False , "pkg_specs" : {"pip" : ">19" , "pytest" : "" }},
6776 (PY39 , "pytest7.x" ): {"coverage" : False , "pkg_specs" : {"pip" : ">19" , "pytest" : "<8" }},
@@ -166,7 +175,7 @@ def tests(session, coverage, pkg_specs):
166175 session .run ("genbadge" , "coverage" , "-i" , f"{ Folders .coverage_xml } " , "-o" , f"{ Folders .coverage_badge } " )
167176
168177
169- @nox .session (python = PY39 )
178+ @nox .session (python = PY311 )
170179def flake8 (session ):
171180 """Launch flake8 qualimetry."""
172181
@@ -187,7 +196,7 @@ def flake8(session):
187196 rm_file (Folders .flake8_intermediate_file )
188197
189198
190- @nox .session (python = PY39 )
199+ @nox .session (python = PY311 )
191200def docs (session ):
192201 """Generates the doc. Pass '-- serve' to serve it on a local http server instead."""
193202
@@ -200,7 +209,7 @@ def docs(session):
200209 session .run ("mkdocs" , "build" )
201210
202211
203- @nox .session (python = PY39 )
212+ @nox .session (python = PY311 )
204213def publish (session ):
205214 """Deploy the docs+reports on github pages. Note: this rebuilds the docs"""
206215
@@ -245,18 +254,19 @@ def my_scheme(version_):
245254
246255 session .run ("python" , "setup.py" , "sdist" , "bdist_wheel" )
247256
248- # Make sure that the generated _version.py file exists and is compliant with python 2.7
257+ # Make sure that the generated _version.py file exists
249258 version_py = Path (f"src/{ pkg_name } /_version.py" )
250259 if not version_py .exists ():
251260 raise ValueError ("Error with setuptools_scm: _version.py file not generated" )
252261
253- if ":" in version_py .read_text ():
254- raise ValueError ("Error with setuptools_scm: _version.py file contains annotations" )
262+ # ...and is compliant with python 2.7
263+ # if ":" in version_py.read_text():
264+ # raise ValueError("Error with setuptools_scm: _version.py file contains annotations")
255265
256266 return current_tag , version
257267
258268
259- @nox .session (python = PY39 )
269+ @nox .session (python = PY311 )
260270def build (session ):
261271 """Same as release but just builds"""
262272
@@ -265,7 +275,7 @@ def build(session):
265275 print (f"version: { version } " )
266276
267277
268- @nox .session (python = PY39 )
278+ @nox .session (python = PY311 )
269279def release (session ):
270280 """Create a release on github corresponding to the latest tag"""
271281
0 commit comments