[packages/python-virtualenv] - python3 stuff moved to python3-virtualenv
baggins
baggins at pld-linux.org
Tue Mar 11 11:06:22 CET 2025
commit a827d25daebcd3598ceb7a44205b1462e8057947
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Tue Mar 11 11:01:06 2025 +0100
- python3 stuff moved to python3-virtualenv
python-virtualenv.spec | 99 ++------------------------------------------------
1 file changed, 3 insertions(+), 96 deletions(-)
---
diff --git a/python-virtualenv.spec b/python-virtualenv.spec
index 491df7d..af29dc3 100644
--- a/python-virtualenv.spec
+++ b/python-virtualenv.spec
@@ -3,8 +3,6 @@
# Conditional build:
%bcond_with doc # Sphinx documentation
%bcond_with tests # pytest tests
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
%define module virtualenv
Summary: Tool to create isolated Python environments
@@ -19,7 +17,6 @@ Source0: https://files.pythonhosted.org/packages/source/v/virtualenv/virtualenv-
# Source0-md5: 95176f0639dc033650f0f3f9fdff299e
Patch0: multilib.patch
URL: https://pypi.org/project/virtualenv/
-%if %{with python2}
BuildRequires: python >= 1:2.7
BuildRequires: python-modules >= 1:2.7.10-6
BuildRequires: python-setuptools >= 1:41
@@ -49,42 +46,6 @@ BuildRequires: python-pytest-mock >= 2
BuildRequires: python-pytest-randomly >= 1
BuildRequires: python-pytest-timeout >= 1
%endif
-%endif
-%if %{with python3}
-BuildRequires: python3 >= 1:3.5
-BuildRequires: python3-modules >= 1:3.5.0-6
-BuildRequires: python3-setuptools >= 1:41
-BuildRequires: python3-setuptools_scm >= 2
-%if %{with tests}
-# runtime dependencies
-BuildRequires: python3-distlib >= 0.3.1
-BuildRequires: python3-distlib < 1
-BuildRequires: python3-filelock >= 3.2
-BuildRequires: python3-filelock < 4
-%if "%{py3_ver}" < "3.8"
-BuildRequires: python3-importlib-metadata >= 0.12
-%endif
-%if "%{py3_ver}" < "3.7"
-BuildRequires: python3-importlib-resources >= 1.0
-%endif
-BuildRequires: python3-platformdirs >= 2
-BuildRequires: python3-platformdirs < 3
-BuildRequires: python3-pytest
-BuildRequires: python3-six >= 1.9
-BuildRequires: python3-six < 2
-# test-only dependencies
-BuildRequires: python-coverage >= 4
-BuildRequires: python-coverage-enable-subprocess >= 1
-BuildRequires: python-flaky >= 3
-BuildRequires: python-packaging >= 20.0
-BuildRequires: python-pytest >= 4
-BuildRequires: python-pytest-env >= 0.6.2
-BuildRequires: python-pytest-freezegun >= 0.4.1
-BuildRequires: python-pytest-mock >= 2
-BuildRequires: python-pytest-randomly >= 1
-BuildRequires: python-pytest-timeout >= 1
-%endif
-%endif
%if %{with doc}
BuildRequires: python3-sphinx-argparse >= 0.2.5
BuildRequires: python3-sphinx_rtd_theme >= 0.4.3
@@ -120,40 +81,11 @@ Jest to następca workignenv i rozszerzenie virtual-pythona. Jest
tworzone przez Iana Bickinga i sponsorowane przez Open Planning
Project. Zostało wydane na liberalnej licencji w stylu MIT.
-%package -n python3-%{module}
-Summary: Tool to create isolated Python environments
-Summary(pl.UTF-8): Narzędzie do tworzenia oddzielonych środowisk Pythona
-Group: Libraries/Python
-Requires: python3-distlib >= 0.3.1
-Requires: python3-filelock >= 3.2
-Requires: python3-modules >= 1:3.4
-Requires: python3-platformdirs >= 2
-# for virtualenv-3 wrapper
-Requires: python3-setuptools
-Requires: python3-six >= 1.9
-
-%description -n python3-%{module}
-virtualenv is a tool to create isolated Python environments.
-virtualenv is a successor to workingenv, and an extension of
-virtual-python. It is written by Ian Bicking, and sponsored by the
-Open Planning Project. It is licensed under an MIT-style permissive
-license.
-
-%description -n python3-%{module} -l pl.UTF-8
-virtualenv to narzędzie do tworzenia oddzielonych środowisk Pythona.
-Jest to następca workignenv i rozszerzenie virtual-pythona. Jest
-tworzone przez Iana Bickinga i sponsorowane przez Open Planning
-Project. Zostało wydane na liberalnej licencji w stylu MIT.
-
%package -n virtualenv
Summary: Tool to create isolated Python environments
Summary(pl.UTF-8): Narzędzie do tworzenia oddzielonych środowisk Pythona
Group: Libraries/Python
-%if %{with python3}
-Requires: python3-virtualenv = %{version}-%{release}
-%else
Requires: python-virtualenv = %{version}-%{release}
-%endif
%description -n virtualenv
virtualenv is a tool to create isolated Python environments.
@@ -173,21 +105,11 @@ Project. Zostało wydane na liberalnej licencji w stylu MIT.
%patch -P 0 -p1
%build
-%if %{with python2}
%py_build
%if %{with tests}
%{__python} -m pytest tests
%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-%{__python3} -m pytest tests
-%endif
-%endif
%if %{with doc}
%{__make} -C docs text
@@ -196,37 +118,22 @@ Project. Zostało wydane na liberalnej licencji w stylu MIT.
%install
rm -rf $RPM_BUILD_ROOT
-%if %{with python2}
%py_install
cp -p $RPM_BUILD_ROOT%{_bindir}/virtualenv{,-2}
-%endif
-
-%if %{with python3}
-%py3_install
-cp -p $RPM_BUILD_ROOT%{_bindir}/virtualenv{,-3}
-%endif
%clean
rm -rf $RPM_BUILD_ROOT
-%if %{with python2}
%files
%defattr(644,root,root,755)
%doc LICENSE README.md %{?with_doc:docs/_build/text/*.txt}
%attr(755,root,root) %{_bindir}/virtualenv-2
%{py_sitescriptdir}/virtualenv
%{py_sitescriptdir}/virtualenv-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-%{module}
-%defattr(644,root,root,755)
-%doc LICENSE README.md %{?with_doc:docs/_build/text/*.txt}
-%attr(755,root,root) %{_bindir}/virtualenv-3
-%{py3_sitescriptdir}/virtualenv
-%{py3_sitescriptdir}/virtualenv-%{version}-py*.egg-info
-%endif
+%if 0
+# packaged from python3-virtualenv
%files -n virtualenv
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/virtualenv
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-virtualenv.git/commitdiff/2d2208c27af0c406f3a793125d38018faefe292b
More information about the pld-cvs-commit
mailing list