SHA256
1
0
forked from pool/python-tox

- Add optional_devpi_process.patch to make the package not depend

on devpi_process (which is rather expensive to build).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tox?expand=0&rev=98
This commit is contained in:
Matej Cepl 2023-05-10 20:13:37 +00:00 committed by Git OBS Bridge
parent 988f896c70
commit feaea52c71
2 changed files with 15 additions and 1 deletions

View File

@ -6,6 +6,8 @@ Fri May 5 14:30:53 UTC 2023 - Matej Cepl <mcepl@suse.com>
to the packaged changelog.
- Add mark-network-tests.patch to skip test which require network
access
- Add optional_devpi_process.patch to make the package not depend
on devpi_process (which is rather expensive to build).
-------------------------------------------------------------------
Fri Apr 21 12:37:47 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@ -17,6 +17,11 @@
%{?sle15_python_module_pythons}
%if 0%{?sle15_python_module_pythons}
%bcond_without devpi_process
%else
%bcond_with devpi_process
%endif
Name: python-tox
Version: 4.5.1
Release: 0
@ -56,6 +61,9 @@ BuildRequires: %{python_module toml >= 0.9.4}
BuildRequires: %{python_module tomli >= 2.0.1}
BuildRequires: %{python_module virtualenv >= 20.21.0}
BuildRequires: %{python_module wheel >= 0.29.0}
%if %{with devpi_process}
BuildRequires: %{python_module devpi-process}
%endif
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: unzip
@ -108,7 +116,11 @@ use for:
CI and shell-based testing.
%prep
%autosetup -p1 -n tox-%{version}
%setup -q -n tox-%{version}
%if %{with devpi_process}
%patch0 -p1
%endif
%autopatch -p1 -m 1
%build
export LANG=en_US.UTF8