diff --git a/py39.patch b/py39.patch new file mode 100644 index 0000000..9c06421 --- /dev/null +++ b/py39.patch @@ -0,0 +1,13 @@ +diff --git a/src/tox/constants.py b/src/tox/constants.py +index 8dcc86b..1c90e47 100644 +--- a/src/tox/constants.py ++++ b/src/tox/constants.py +@@ -30,7 +30,7 @@ def _construct_default_factors(cpython_versions, pypy_versions, other_interprete + + class PYTHON: + PY_FACTORS_RE = re.compile("^(?!py$)(py|pypy|jython)([2-9][0-9]?)?$") +- CPYTHON_VERSION_TUPLES = [(2, 7), (3, 4), (3, 5), (3, 6), (3, 7), (3, 8)] ++ CPYTHON_VERSION_TUPLES = [(2, 7), (3, 4), (3, 5), (3, 6), (3, 7), (3, 8), (3, 9)] + PYPY_VERSION_TUPLES = [(2, 7), (3, 5)] + OTHER_PYTHON_INTERPRETERS = ["jython"] + DEFAULT_FACTORS = _construct_default_factors( diff --git a/python-tox.spec b/python-tox.spec index 5a5b7ea..6020a69 100644 --- a/python-tox.spec +++ b/python-tox.spec @@ -8,7 +8,7 @@ %global pypi_name tox Name: python-%{pypi_name} Version: 3.13.2 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Virtualenv-based automation of test activities License: MIT @@ -19,6 +19,10 @@ Source0: %{pypi_source} # Rebased from https://github.com/tox-dev/tox/pull/1368 Patch0: 1368.patch +# Run py39 env with Python 3.9 +# https://bugzilla.redhat.com/show_bug.cgi?id=1798929 +Patch1: py39.patch + BuildArch: noarch %description @@ -55,6 +59,7 @@ Recommends: python35 Recommends: python36 Recommends: python37 Recommends: python38 +Recommends: python39 Recommends: pypy2-devel Recommends: pypy3-devel Recommends: python2-devel @@ -146,6 +151,10 @@ rm -rf .path %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/ %changelog +* Thu Feb 06 2020 Miro HronĨok - 3.13.2-3 +- Fix invocation with Python 3.9 (#1798929) +- Recommend Python 3.9 + * Fri Jul 26 2019 Fedora Release Engineering - 3.13.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild diff --git a/tests/tests.yml b/tests/tests.yml index 8374952..35894f8 100644 --- a/tests/tests.yml +++ b/tests/tests.yml @@ -34,6 +34,9 @@ - smoke38: dir: python/smoke run: VERSION=3.8 ./venv.sh + - smoke39: + dir: python/smoke + run: VERSION=3.9 ./venv.sh required_packages: - gcc - virtualenv @@ -43,6 +46,7 @@ - python36 - python37 - python38 + - python39 - python2-devel - python3-devel - python3-tox