summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.zuul.yaml2
-rw-r--r--doc/requirements.txt3
-rw-r--r--lower-constraints.txt2
-rw-r--r--releasenotes/notes/drop-python-2-7-73d3113c69d724d6.yaml5
-rw-r--r--requirements.txt12
-rw-r--r--setup.cfg28
-rw-r--r--test-requirements.txt2
-rw-r--r--tox.ini18
8 files changed, 16 insertions, 56 deletions
diff --git a/.zuul.yaml b/.zuul.yaml
index ff3006a..923a8c1 100644
--- a/.zuul.yaml
+++ b/.zuul.yaml
@@ -1,11 +1,9 @@
- project:
templates:
- check-requirements
- - lib-forward-testing
- lib-forward-testing-python3
- openstack-lower-constraints-jobs
- openstack-cover-jobs
- - openstack-python-jobs
- openstack-python3-ussuri-jobs
- periodic-stable-jobs
- publish-openstack-docs-pti
diff --git a/doc/requirements.txt b/doc/requirements.txt
index 007ec97..f5b2c7f 100644
--- a/doc/requirements.txt
+++ b/doc/requirements.txt
@@ -1,8 +1,7 @@
# The order of packages is significant, because pip processes them in the order
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
-sphinx!=1.6.6,!=1.6.7,>=1.6.2,<2.0.0;python_version=='2.7' # BSD
-sphinx!=1.6.6,!=1.6.7,>=1.6.2;python_version>='3.4' # BSD
+sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD
openstackdocstheme>=1.18.1 # Apache-2.0
reno>=2.5.0 # Apache-2.0
doc8>=0.6.0 # Apache-2.0
diff --git a/lower-constraints.txt b/lower-constraints.txt
index cd73918..49199c3 100644
--- a/lower-constraints.txt
+++ b/lower-constraints.txt
@@ -10,13 +10,11 @@ contextlib2==0.4.0
decorator==3.4.0
doc8==0.6.0
docutils==0.11
-enum34==1.0.4;python_version=='2.7' or python_version=='2.6' or python_version=='3.3'
eventlet==0.18.2
extras==1.0.0
fasteners==0.7.0
fixtures==3.0.0
flake8==2.2.4
-futures==3.0.0;python_version=='2.7' or python_version=='2.6'
futurist==1.2.0
greenlet==0.4.10
hacking==0.10.0
diff --git a/releasenotes/notes/drop-python-2-7-73d3113c69d724d6.yaml b/releasenotes/notes/drop-python-2-7-73d3113c69d724d6.yaml
new file mode 100644
index 0000000..ba4056c
--- /dev/null
+++ b/releasenotes/notes/drop-python-2-7-73d3113c69d724d6.yaml
@@ -0,0 +1,5 @@
+---
+upgrade:
+ - |
+ Python 2.7 support has been dropped. The minimum version of Python now
+ supported by taskflow is Python 3.6.
diff --git a/requirements.txt b/requirements.txt
index 92daa08..e6a5264 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -10,9 +10,6 @@ pbr!=2.1.0,>=2.0.0 # Apache-2.0
# Python 2->3 compatibility library.
six>=1.10.0 # MIT
-# Enum library made for <= python 3.3
-enum34>=1.0.4;python_version=='2.7' or python_version=='2.6' or python_version=='3.3' # BSD
-
# For async and/or periodic work
futurist>=1.2.0 # Apache-2.0
@@ -20,18 +17,11 @@ futurist>=1.2.0 # Apache-2.0
fasteners>=0.7.0 # Apache-2.0
# Very nice graph library
-networkx>=2.1.0,<2.3;python_version<'3.0' # BSD
-networkx>=2.1.0;python_version>='3.4' # BSD
-
-# For contextlib new additions/compatibility for <= python 3.3
-contextlib2>=0.4.0;python_version<'3.0' # PSF License
+networkx>=2.1.0 # BSD
# Used for backend storage engine loading.
stevedore>=1.20.0 # Apache-2.0
-# Backport for concurrent.futures which exists in 3.2+
-futures>=3.0.0;python_version=='2.7' or python_version=='2.6' # BSD
-
# Used for structured input validation
jsonschema>=2.6.0 # MIT
diff --git a/setup.cfg b/setup.cfg
index 3814fbd..4d9a748 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -7,6 +7,7 @@ author = OpenStack
author-email = openstack-discuss@lists.openstack.org
home-page = https://docs.openstack.org/taskflow/latest/
keywords = reliable,tasks,execution,parallel,dataflow,workflows,distributed
+python-requires = >=3.6
classifier =
Development Status :: 4 - Beta
Environment :: OpenStack
@@ -15,18 +16,14 @@ classifier =
License :: OSI Approved :: Apache Software License
Operating System :: POSIX :: Linux
Programming Language :: Python
- Programming Language :: Python :: 2
- Programming Language :: Python :: 2.7
Programming Language :: Python :: 3
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
+ Programming Language :: Python :: 3 :: Only
+ Programming Language :: Python :: Implementation :: CPython
Topic :: Software Development :: Libraries
Topic :: System :: Distributed Computing
-[global]
-setup-hooks =
- pbr.hooks.setup_hook
-
[files]
packages =
taskflow
@@ -82,22 +79,3 @@ test =
testtools>=2.2.0 # MIT
testscenarios>=0.4 # Apache-2.0/BSD
stestr>=2.0.0 # Apache-2.0
-
-[nosetests]
-cover-erase = true
-verbosity = 2
-
-[pbr]
-warnerrors = True
-
-[wheel]
-universal = 1
-
-[build_sphinx]
-source-dir = doc/source
-build-dir = doc/build
-all_files = 1
-warning-is-error = 1
-
-[upload_sphinx]
-upload-dir = doc/build/html
diff --git a/test-requirements.txt b/test-requirements.txt
index 09ee1f4..7c65a15 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -24,7 +24,7 @@ psycopg2>=2.7.0 # LGPL/ZPL
# test
pydotplus>=2.0.2 # MIT License
-hacking<0.11,>=0.10.0
+hacking<2.1,>=2.0
oslotest>=3.2.0 # Apache-2.0
mock>=2.0.0 # BSD
testtools>=2.2.0 # MIT
diff --git a/tox.ini b/tox.ini
index f7e1aeb..5bf2c17 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,8 +1,10 @@
[tox]
-minversion = 2.0
-envlist = cover,docs,pep8,py27,py37,pylint,update-states
+minversion = 3.1.0
+envlist = cover,docs,pep8,py37,pylint,update-states
+ignore_basepython_conflict = True
[testenv]
+basepython = python3
setenv =
# We need to install a bit more than just `test' because those drivers have
# custom tests that we always run
@@ -14,7 +16,6 @@ commands =
stestr run {posargs}
[testenv:docs]
-basepython = python3
deps =
{[testenv]deps}
-r{toxinidir}/doc/requirements.txt
@@ -23,26 +24,22 @@ commands =
doc8 doc/source
[testenv:update-states]
-basepython = python3
deps =
{[testenv]deps}
pydot3
commands = {toxinidir}/tools/update_states.sh
[testenv:pep8]
-basepython = python3
commands =
flake8 {posargs}
[testenv:pylint]
-basepython = python3
deps =
{[testenv]deps}
pylint==0.26.0
commands = pylint --rcfile=pylintrc taskflow
[testenv:cover]
-basepython = python3
deps =
{[testenv]deps}
coverage>=3.6
@@ -56,13 +53,12 @@ commands =
coverage xml -o cover/coverage.xml
[testenv:venv]
-basepython = python3
commands = {posargs}
[flake8]
builtins = _
exclude = .venv,.tox,dist,doc,*egg,.git,build,tools
-ignore = E721
+ignore = E305,E402,E721,E731,E741,W503,W504
[hacking]
import_exceptions =
@@ -78,12 +74,10 @@ import_exceptions =
ignore-path = doc/*/target,doc/*/build*
[testenv:releasenotes]
-basepython = python3
deps = -r{toxinidir}/doc/requirements.txt
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[testenv:bindep]
-basepython = python3
# Do not install any requirements. We want this to be fast and work even if
# system dependencies are missing, since it's used to tell you what system
# dependencies are missing! This also means that bindep must be installed
@@ -95,8 +89,6 @@ commands = bindep test
usedevelop = False
[testenv:lower-constraints]
-basepython = python3
-install_command = pip install {opts} {packages}
deps =
-c{toxinidir}/lower-constraints.txt
.[test,workers,zookeeper,database,redis,eventlet]