Compare commits
10 Commits
05b51cb486
...
31168474d6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
31168474d6 | ||
|
|
9114cfc62f | ||
|
|
84ad3f2f17 | ||
|
|
2813883394 | ||
|
|
86368a6528 | ||
|
|
661d631809 | ||
|
|
ed54380bf3 | ||
|
|
d14fa52317 | ||
|
|
dcf2647285 | ||
|
|
6643d41d68 |
@ -1,15 +1,20 @@
|
||||
%global srcname virtualenv
|
||||
Name: python-%{srcname}
|
||||
Version: 20.4.2
|
||||
%global pypi_name virtualenv
|
||||
Name: python-%{pypi_name}
|
||||
Version: 20.26.6
|
||||
Release: 1
|
||||
Summary: A tool to create isolated Python environments
|
||||
License: MIT
|
||||
URL: http://pypi.python.org/pypi/virtualenv
|
||||
Source0: https://files.pythonhosted.org/packages/79/64/203241c2e2b5abfd5edca4e28242c21bf8a9e84490873e4a8a155a9658fc/virtualenv-20.4.2.tar.gz
|
||||
Source0: %{pypi_source %{pypi_name}}
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: python3-appdirs python3-distlib python3-filelock python3-six
|
||||
BuildRequires: python3-devel python3-setuptools_scm python3-setuptools
|
||||
BuildRequires: python3-distlib python3-filelock
|
||||
BuildRequires: python3-devel python3-setuptools
|
||||
BuildRequires: python3-pip
|
||||
BuildRequires: python3-wheel
|
||||
BuildRequires: python3-editables
|
||||
BuildRequires: python3-hatch-vcs
|
||||
BuildRequires: python3-hatchling
|
||||
|
||||
%description
|
||||
Virtualenv is a tool to create isolated Python environments. Since Python
|
||||
@ -23,51 +28,53 @@ Python versions and some more advanced features.
|
||||
|
||||
%package -n python3-virtualenv
|
||||
Summary: Tool to create isolated Python environments
|
||||
Requires: python3-setuptools python3-appdirs python3-virtualenv-python26
|
||||
Requires: python3-distlib python3-filelock python3-six
|
||||
Requires: python3-setuptools
|
||||
Requires: python3-distlib python3-filelock
|
||||
%{?python_provide:%python_provide python3-virtualenv}
|
||||
Provides: virtualenv = %{version}-%{release}
|
||||
Requires: python-pip-wheel python-setuptools-wheel python-wheel-wheel
|
||||
Requires: python3-appdirs python3-distlib python3-filelock
|
||||
Requires: python3-distlib python3-filelock
|
||||
Obsoletes: python3-virtualenv-python26 < %{version}-%{release}
|
||||
|
||||
%description -n python3-virtualenv
|
||||
%description -n python3-%{pypi_name}
|
||||
virtualenv support in python3.
|
||||
|
||||
%package -n python3-virtualenv-python26
|
||||
Summary: Extra bits of virtuelenv only needed with Python 2.6
|
||||
Requires: python3-virtualenv = %{version}-%{release}
|
||||
%{?python_provide:%python_provide python3-virtualenv-python26}
|
||||
Provides: bundled(python2dist(argparse)) = 1.4.0
|
||||
Provides: bundled(python2dist(pip)) = 19.1.1
|
||||
Provides: bundled(python2dist(pip)) = 20.1.1
|
||||
Provides: bundled(python2dist(setuptools)) = 43.0.0
|
||||
Provides: bundled(python2dist(setuptools)) = 44.1.0
|
||||
Provides: bundled(python2dist(setuptools)) = 46.4.0
|
||||
Provides: bundled(python2dist(wheel)) = 0.33.6
|
||||
Provides: bundled(python2dist(wheel)) = 0.34.2
|
||||
|
||||
%description -n python3-virtualenv-python26
|
||||
Tools that support for python2.6 virtual environments with python3.
|
||||
|
||||
%prep
|
||||
%autosetup -n virtualenv-%{version} -p1
|
||||
%autosetup -n %{pypi_name}-%{version} -p1
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
%pyproject_build
|
||||
|
||||
%install
|
||||
%py3_install
|
||||
%pyproject_install
|
||||
# revert the version.py content to origin sources
|
||||
export ver_pyfile=$(find %{buildroot}%{python3_sitelib}/%{pypi_name} -name version.py)
|
||||
sed -i "s/^version = /__version__ = version = /g" ${ver_pyfile}
|
||||
sed -i "s/^version_tuple = /__version_tuple__ = version_tuple = /g" ${ver_pyfile}
|
||||
|
||||
%files -n python3-virtualenv
|
||||
%files -n python3-%{pypi_name}
|
||||
%license LICENSE
|
||||
%doc docs/*rst PKG-INFO
|
||||
%{python3_sitelib}/virtualenv*
|
||||
%doc README.md
|
||||
%{_bindir}/virtualenv
|
||||
|
||||
%files -n python3-virtualenv-python26
|
||||
%{python3_sitelib}/virtualenv/seed/wheels/embed/*.whl
|
||||
%{python3_sitelib}/%{pypi_name}
|
||||
%{python3_sitelib}/%{pypi_name}*.dist-info/
|
||||
|
||||
%changelog
|
||||
* Wed Nov 27 2024 yaoxin <yao_xin001@hoperun.com> - 20.26.6-1
|
||||
- Update to 20.26.6 for fix CVE-2024-53899
|
||||
|
||||
* Mon Jan 15 2024 xu_ping <707078654@qq.com.com> - 20.24.4-1
|
||||
- update version to 20.24.4
|
||||
|
||||
* Sun Jun 4 2023 Dongxing Wang <dxwangk@isoftstone.com> - 20.23.0-1
|
||||
- update version to 20.23.0
|
||||
|
||||
* Tue May 16 2023 shixuantong <shixuantong1@huawei.com> - 20.4.7-2
|
||||
- remove python3-virtualenv-python26
|
||||
|
||||
* Thu Dec 09 2021 shixuantong <shixuantong@huawei.com> - 20.4.7-1
|
||||
- update version to 20.4.7
|
||||
|
||||
* Thu Aug 05 2021 liusheng <liusheng2048@gmail.com> - 20.4.2-1
|
||||
- Upgrade to version 20.4.2
|
||||
|
||||
|
||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user