From 0d3fc4322660d6e0111a85b72ea28a1028bdd688 Mon Sep 17 00:00:00 2001 From: Paolo Melchiorre Date: Wed, 19 Jan 2022 17:59:33 +0100 Subject: [PATCH] Fix #261 # 262 Update Python and Django versions - Removed Python 3.5 and 3.6 - Added Python 3.10 - Updated Django 4 version --- .github/workflows/tests.yml | 6 ++---- README.md | 4 +++- setup.py | 12 +++++++----- tox.ini | 10 +++++----- xmlrunner/version.py | 2 +- 5 files changed, 18 insertions(+), 16 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a2b4ea1..6d220fc 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -12,10 +12,6 @@ jobs: strategy: matrix: include: - - python-version: 3.5 - toxenv: py35 - - python-version: 3.6 - toxenv: py36 - python-version: 3.7 toxenv: py37 - python-version: 3.8 @@ -28,6 +24,8 @@ jobs: toxenv: py38-quality - python-version: 3.9 toxenv: py39 + - python-version: "3.10" + toxenv: py310 steps: - name: Checkout uses: actions/checkout@v2 diff --git a/README.md b/README.md index 7b07656..b9d3102 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,9 @@ and continuous integration servers. ## Requirements -* Python 3.5+ +* Python 3.7+ +* Please note Python 3.6 end-of-life was in Dec 2021, last version supporting 3.6 was 3.1.0 +* Please note Python 3.5 end-of-life was in Sep 2020, last version supporting 3.5 was 3.1.0 * Please note Python 2.7 end-of-life was in Jan 2020, last version supporting 2.7 was 2.5.2 * Please note Python 3.4 end-of-life was in Mar 2019, last version supporting 3.4 was 2.5.2 * Please note Python 2.6 end-of-life was in Oct 2013, last version supporting 2.6 was 1.14.0 diff --git a/setup.py b/setup.py index 0fb37f8..c524ed4 100755 --- a/setup.py +++ b/setup.py @@ -17,8 +17,8 @@ # this is for sdist to work. import sys -if sys.version_info < (3, 5): - raise RuntimeError('This version requires Python 3.5+') # pragma: no cover +if sys.version_info < (3, 7): + raise RuntimeError('This version requires Python 3.7+') # pragma: no cover setup( name = 'unittest-xml-reporting', @@ -31,7 +31,7 @@ install_requires = ['lxml'], license = 'BSD', platforms = ['Any'], - python_requires='>=3.5', + python_requires='>=3.7', keywords = [ 'pyunit', 'unittest', 'junit xml', 'xunit', 'report', 'testrunner', 'xmlrunner' ], @@ -44,9 +44,11 @@ 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.5', - 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3 :: Only', 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: Implementation :: CPython', 'Programming Language :: Python :: Implementation :: PyPy', 'Topic :: Software Development :: Libraries :: Python Modules', diff --git a/tox.ini b/tox.ini index 92013fd..c290205 100644 --- a/tox.ini +++ b/tox.ini @@ -4,22 +4,22 @@ testpaths = tests norecursedirs = tests/django_example [tox] -envlist = begin,py{py3,35,36,37,38},pytest,py38-django{lts,curr},end,quality +envlist = begin,py{py3,37,38,39,310},pytest,py38-django{lts,curr},end,quality [gh-actions] python = - 3.5: py35 - 3.6: py36 3.7: py37,pytest 3.8: begin,py38,py38-django{lts,curr},end,quality + 3.9: py39 + 3.10: py310 [testenv] deps = coverage codecov>=1.4.0 coveralls - djangolts,pytest: django>=3.2.0,<4.0.0 - djangocurr: django>=4.0a1,<4.1.0 + djangolts,pytest: django~=3.2.0 + djangocurr: django~=4.0.0 pytest: pytest lxml>=3.6.0 commands = diff --git a/xmlrunner/version.py b/xmlrunner/version.py index 310e871..bb42b14 100644 --- a/xmlrunner/version.py +++ b/xmlrunner/version.py @@ -1,2 +1,2 @@ -__version__ = '3.1.0' +__version__ = '3.2.0'