Skip to content

Commit

Permalink
Make Python >= 3.7 a requirement
Browse files Browse the repository at this point in the history
Python 3.6 will reach EOL on Dec 23th 2021.
  • Loading branch information
alvarolopez committed Jun 8, 2022
1 parent 673c6dc commit 803962a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 12 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Added
### Changed
- DEEPaaS now requires Python >= 3.7
- Start using a changelog.

### Deprecated
Expand Down
5 changes: 3 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ project_urls =
Bug Tracker = https://github.com/indigo-dc/deepaas/issues
Documentation = https://deepaas.readthedocs.io/

python-requires = >=3.6
python-requires = >=3.7

license = Apache-2
license_file = LICENSE
Expand All @@ -30,9 +30,10 @@ classifier =
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Topic :: Internet :: WWW/HTTP
Topic :: Scientific/Engineering :: Artificial Intelligence
Topic :: Scientific/Engineering :: Image Recognition
Expand Down
25 changes: 15 additions & 10 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
minversion = 2.1
envlist = py{36,37},pep8,pip-missing-reqs,bandit,pypi
envlist = py{37,38,39,310},pep8,pip-missing-reqs,bandit,pypi
skipsdist = True

[testenv]
Expand Down Expand Up @@ -42,23 +42,28 @@ commands =
coverage xml -o cover/coverage.xml
coverage report

[testenv:py27]
# TODO(efried): Remove this once https://github.com/tox-dev/tox/issues/425 is fixed.
basepython = python2.7
commands =
{[testenv]commands}
stestr run {posargs}

[testenv:py37]
# TODO(efried): Remove this once https://github.com/tox-dev/tox/issues/425 is fixed.
basepython = python3.7
commands =
{[testenv]commands}
stestr run {posargs}

[testenv:py36]
[testenv:py38]
# TODO(efried): Remove this once https://github.com/tox-dev/tox/issues/425 is fixed.
basepython = python3.8
commands =
{[testenv:py37]commands}

[testenv:py39]
# TODO(efried): Remove this once https://github.com/tox-dev/tox/issues/425 is fixed.
basepython = python3.9
commands =
{[testenv:py37]commands}

[testenv:py310]
# TODO(efried): Remove this once https://github.com/tox-dev/tox/issues/425 is fixed.
basepython = python3.6
basepython = python3.10
commands =
{[testenv:py37]commands}

Expand Down

0 comments on commit 803962a

Please sign in to comment.