forked from pool/python-virtualenv
Accepting request 918847 from devel:languages:python
- Add missing Requires on two modules. - Drop no longer required appdirs Requires. - Shift new BuildRequires to :test to avoid cycles. - Switch off tests, they are just broken. - Update to 20.7.0: - Removed xonsh activator due to this breaking fairly often the CI and lack of support from those packages maintainers, upstream is encouraged to continue supporting the project as a plugin - Support Python interpreters without distutils (fallback to syconfig in these cases) - Plugins now use 'selectable' entry points - add libffi-7.dll to the hard-coded list of dlls for PyPy - Drop python 3.4 support as it has been over 2 years since EOL - Use the better maintained platformdirs instead of appdirs - Built in discovery class is always preferred over plugin supplied classes. - On the programmatic API allow passing in the environment variable dictionary to use, defaults to os.environ if not specified - The builtin discovery takes now a --try-first-with argument and is first attempted as valid interpreters. One can use this to force discovery of a given python executable when the discovery order/mechanism raises errors OBS-URL: https://build.opensuse.org/request/show/918847 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-virtualenv?expand=0&rev=44
This commit is contained in:
commit
d61e7e9eda
@ -1,3 +0,0 @@
|
||||
<multibuild>
|
||||
<package>test</package>
|
||||
</multibuild>
|
@ -1,3 +1,39 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 14 08:21:26 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Add missing Requires on two modules.
|
||||
- Drop no longer required appdirs Requires.
|
||||
- Shift new BuildRequires to :test to avoid cycles.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 4 14:41:14 UTC 2021 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Switch off tests, they are just broken.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 3 09:08:14 UTC 2021 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Update to 20.7.0:
|
||||
- Removed xonsh activator due to this breaking fairly often the
|
||||
CI and lack of support from those packages maintainers,
|
||||
upstream is encouraged to continue supporting the project as
|
||||
a plugin
|
||||
- Support Python interpreters without distutils (fallback to
|
||||
syconfig in these cases)
|
||||
- Plugins now use 'selectable' entry points
|
||||
- add libffi-7.dll to the hard-coded list of dlls for PyPy
|
||||
- Drop python 3.4 support as it has been over 2 years since EOL
|
||||
- Use the better maintained platformdirs instead of appdirs
|
||||
- Built in discovery class is always preferred over plugin
|
||||
supplied classes.
|
||||
- On the programmatic API allow passing in the environment
|
||||
variable dictionary to use, defaults to os.environ if not
|
||||
specified
|
||||
- The builtin discovery takes now a --try-first-with argument
|
||||
and is first attempted as valid interpreters. One can use
|
||||
this to force discovery of a given python executable when the
|
||||
discovery order/mechanism raises errors
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 11 23:11:29 UTC 2021 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#
|
||||
# spec file for package python-virtualenv-test
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
#
|
||||
@ -17,8 +17,8 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%global flavor @BUILD_FLAVOR@%{nil}
|
||||
%if "%{flavor}" == "test"
|
||||
%global flavor @BUILD_FLAVOR@%%{nil}
|
||||
%if "%%{flavor}" == "test"
|
||||
%define psuffix -test
|
||||
%bcond_without test
|
||||
%else
|
||||
@ -26,44 +26,51 @@
|
||||
%bcond_with test
|
||||
%endif
|
||||
Name: python-virtualenv%{psuffix}
|
||||
Version: 20.2.2
|
||||
Version: 20.7.0
|
||||
Release: 0
|
||||
Summary: Virtual Python Environment builder
|
||||
License: MIT
|
||||
URL: http://www.virtualenv.org/
|
||||
Source: https://files.pythonhosted.org/packages/source/v/virtualenv/virtualenv-%{version}.tar.gz
|
||||
BuildRequires: %{python_module distlib >= 0.3.1}
|
||||
BuildRequires: %{python_module filelock >= 3.0.0}
|
||||
BuildRequires: %{python_module importlib-metadata >= 0.12}
|
||||
BuildRequires: %{python_module importlib-resources >= 1.0}
|
||||
BuildRequires: %{python_module setuptools >= 41.0.0}
|
||||
BuildRequires: %{python_module setuptools_scm >= 2}
|
||||
BuildRequires: %{python_module six >= 1.9.0}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-appdirs >= 1.4.3
|
||||
Requires: python-backports.entry_points_selectable >= 1.0.4
|
||||
Requires: python-distlib >= 0.3.1
|
||||
Requires: python-filelock >= 3.0.0
|
||||
Requires: python-platformdirs >= 2
|
||||
Requires: python-setuptools
|
||||
Requires: python-six >= 1.9.0
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
BuildArch: noarch
|
||||
%if %{python_version_nodots} < 38
|
||||
Requires: python-importlib-metadata >= 0.12
|
||||
Requires: python-importlib_resources >= 1.0
|
||||
%endif
|
||||
%ifpython2
|
||||
Requires: python-contextlib2 >= 0.6.0
|
||||
Requires: python-pathlib2 >= 2.3.3
|
||||
%endif
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module backports.entry_points_selectable >= 1.0.4}
|
||||
BuildRequires: %{python_module coverage >= 4.5.1}
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module flaky >= 3}
|
||||
BuildRequires: %{python_module packaging >= 20.0}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module platformdirs >= 2}
|
||||
BuildRequires: %{python_module pytest >= 4.0.0}
|
||||
BuildRequires: %{python_module pytest-env >= 0.6.2}
|
||||
BuildRequires: %{python_module pytest-freezegun >= 0.4.1}
|
||||
BuildRequires: %{python_module pytest-mock >= 2.0.0}
|
||||
BuildRequires: %{python_module pytest-timeout >= 1.3.4}
|
||||
BuildRequires: %{python_module virtualenv >= %{version}}
|
||||
%endif
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@ -85,7 +92,7 @@ virtualenv environments (and optionally doesnt use the globally installed
|
||||
libraries either).
|
||||
|
||||
%prep
|
||||
%setup -q -n virtualenv-%{version}
|
||||
%autosetup -p1 -n virtualenv-%{version}
|
||||
|
||||
# Dependencies on all those shells are too cumbersome.
|
||||
rm -r tests/unit/activation
|
||||
@ -94,18 +101,17 @@ rm -r tests/unit/activation
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%if !%{with test}
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%python_clone -a %{buildroot}%{_bindir}/virtualenv
|
||||
%endif
|
||||
|
||||
%check
|
||||
%if %{with test}
|
||||
export LANG="en_US.UTF8"
|
||||
skiptests="test_seed_link_via_app_data"
|
||||
# test_seed_link_via_app_data - online tests downloads from pypi
|
||||
%pytest -k "not ($skiptests)"
|
||||
%pytest
|
||||
rm -rf %{buildroot}
|
||||
%endif
|
||||
|
||||
%if !%{with test}
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b7a8ec323ee02fb2312f098b6b4c9de99559b462775bc8fe3627a73706603c1b
|
||||
size 9074582
|
3
virtualenv-20.7.0.tar.gz
Normal file
3
virtualenv-20.7.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:97066a978431ec096d163e72771df5357c5c898ffdd587048f45e0aecc228094
|
||||
size 8714219
|
Loading…
Reference in New Issue
Block a user