diff --git a/allow-python3.11.patch b/allow-python3.11.patch new file mode 100644 index 0000000..78da869 --- /dev/null +++ b/allow-python3.11.patch @@ -0,0 +1,13 @@ +diff --git a/tests/__init__.py b/tests/__init__.py +index c9a52ca..224e34f 100644 +--- a/tests/__init__.py ++++ b/tests/__init__.py +@@ -8,7 +8,7 @@ from unittest import TestCase + tmplocation = tempfile.mkdtemp() + venv_path = os.path.realpath(os.path.join(tmplocation,'srs_venv')) + clone_path = os.path.realpath(os.path.join(tmplocation,'clone_venv')) +-versions = ['2.7', '3.4', '3.5', '3.6', '3.7', '3.8', '3.9', '3.10'] ++versions = ['2.7', '3.4', '3.5', '3.6', '3.7', '3.8', '3.9', '3.10', '3.11'] + + def clean(): + if os.path.exists(tmplocation): shutil.rmtree(tmplocation) diff --git a/python-virtualenv-clone.spec b/python-virtualenv-clone.spec index 9a49207..31d3333 100644 --- a/python-virtualenv-clone.spec +++ b/python-virtualenv-clone.spec @@ -11,6 +11,9 @@ URL: https://github.com/edwardgeorge/virtualenv-clone # the tests/ directory and tox.ini file. Source0: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz +# Allow Python 3.11 +Patch: allow-python3.11.patch + BuildArch: noarch BuildRequires: python3-devel