Compare commits

...
Sign in to create a new pull request.

2 commits

Author SHA1 Message Date
Miro Hrončok
7020984115 Add Python 3.9 to the CI 2020-02-06 13:27:45 +01:00
Miro Hrončok
aa466cd2d6 Fix invocation with Python 3.9 (#1798929)
- Recommend Python 3.9
2020-02-06 13:14:19 +01:00
3 changed files with 27 additions and 1 deletions

13
py39.patch Normal file
View file

@ -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(

View file

@ -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 <mhroncok@redhat.com> - 3.13.2-3
- Fix invocation with Python 3.9 (#1798929)
- Recommend Python 3.9
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.13.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

View file

@ -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