代码拉取完成,页面将自动刷新
%bcond_with tests
Summary: Tool to create isolated Python environments
Name: python-virtualenv
Version: 20.26.6
Release: 1%{?dist}
License: MIT
URL: http://pypi.python.org/pypi/virtualenv
Source0: %{pypi_source virtualenv}
Patch3000: rpm-wheels.patch
Patch5000: 0001-remove-dependency-to-platformdirs-5-3.9.1.patch
BuildArch: noarch
BuildRequires: python3-devel python3-hatchling
BuildRequires: python-pip-wheel python-setuptools-wheel python-wheel-wheel
%if %{with tests}
BuildRequires: fish
BuildRequires: gcc
BuildRequires: python3-flaky
BuildRequires: python3-packaging
BuildRequires: python3-pytest
BuildRequires: python3-pytest-mock
BuildRequires: python3-pytest-randomly
BuildRequires: python3-pytest-timeout
%endif
%description
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.
%package -n python3-virtualenv
Summary: Tool to create isolated Python environments
Provides: virtualenv = %{version}-%{release}
Requires: python-pip-wheel
Requires: python-setuptools-wheel
Requires: python-wheel-wheel
%description -n python3-virtualenv
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
%prep
%autosetup -p1 -n virtualenv-%{version}
rm src/virtualenv/seed/wheels/embed/pip-*
rm src/virtualenv/seed/wheels/embed/setuptools-*
rm src/virtualenv/seed/wheels/embed/wheel-*
test ! -f src/virtualenv/seed/embed/wheels/*.whl
sed -i "s|/usr/share/python-wheels|%{python_wheel_dir}|" src/virtualenv/util/path/_system_wheels.py
%generate_buildrequires
%pyproject_buildrequires
%build
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files virtualenv
%if %{with tests}
%check
PIP_CERT=/etc/pki/tls/certs/ca-bundle.crt \
%pytest -vv -k "not test_bundle and not test_acquire and not test_periodic_update and not test_wheel_ and not test_download_ and not test_base_bootstrap_via_pip_invoke and not test_seed_link_via_app_data"
rm -r tmp_path
%endif
%files -n python3-virtualenv -f %{pyproject_files}
%license %{python3_sitelib}/virtualenv-%{version}.dist-info/licenses/LICENSE
%doc README.md
%{_bindir}/virtualenv
%changelog
* Fri Mar 21 2025 Upgrade Robot <upbot@opencloudos.tech> - 20.26.6-1
- Upgrade to version 20.26.6
* Thu Sep 26 2024 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 20.21.1-3
- Rebuilt for clarifying the packages requirement in BaseOS and AppStream
* Fri Aug 16 2024 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 20.21.1-2
- Rebuilt for loongarch release
* Mon Sep 25 2023 Wang Guodong <gordonwwang@tencent.com> - 20.21.1-1
- Upgrade to version 20.21.1
* Tue Sep 19 2023 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 20.13.3-5
- Rebuilt for python 3.11
* Fri Sep 08 2023 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 20.13.3-4
- Rebuilt for OpenCloudOS Stream 23.09
* Fri Apr 28 2023 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 20.13.3-3
- Rebuilt for OpenCloudOS Stream 23.05
* Fri Mar 31 2023 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 20.13.3-2
- Rebuilt for OpenCloudOS Stream 23
* Thu Dec 22 2022 cunshunxia <cunshunxia@tencent.com> - 20.13.3-1
- initial build
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。