5 Star 0 Fork 3

OpenCloudOS Stream/python-virtualenv

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python-virtualenv.spec 3.57 KB
一键复制 编辑 原始数据 按行查看 历史
ocs-bot 提交于 2025-03-21 16:02 +08:00 . Upgrade to version 20.26.6
%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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/opencloudos-stream/python-virtualenv.git
git@gitee.com:opencloudos-stream/python-virtualenv.git
opencloudos-stream
python-virtualenv
python-virtualenv
master

搜索帮助