Accepting request 992059 from home:bnavigator:branches:devel:languages:python:pytest

- Update build requirements: Without setuptools_scm[toml], this
  installs a version 0.0.0 into the python metadata.
- Drop obsolete remove_bindir.patch

OBS-URL: https://build.opensuse.org/request/show/992059
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-localserver?expand=0&rev=9
This commit is contained in:
Matej Cepl 2022-08-01 16:10:18 +00:00 committed by Git OBS Bridge
parent 8b23ce5321
commit eada7d8c3f
3 changed files with 19 additions and 12 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Aug 1 15:00:37 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Update build requirements: Without setuptools_scm[toml], this
installs a version 0.0.0 into the python metadata.
- Drop obsolete remove_bindir.patch
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Jul 31 12:21:40 UTC 2022 - Torsten Gruner <simmphonie@opensuse.org> Sun Jul 31 12:21:40 UTC 2022 - Torsten Gruner <simmphonie@opensuse.org>

View File

@ -17,7 +17,7 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1 %define skip_python2 1
Name: python-pytest-localserver Name: python-pytest-localserver
Version: 0.6.0 Version: 0.6.0
@ -26,12 +26,18 @@ Summary: Plugin for py.test to test server connections locally
License: MIT License: MIT
URL: https://github.com/pytest-dev/pytest-localserver URL: https://github.com/pytest-dev/pytest-localserver
Source: https://files.pythonhosted.org/packages/source/p/pytest-localserver/pytest-localserver-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/p/pytest-localserver/pytest-localserver-%{version}.tar.gz
Patch0: remove_bindir.patch
BuildRequires: %{python_module Werkzeug >= 0.10} BuildRequires: %{python_module Werkzeug >= 0.10}
BuildRequires: %{python_module aiosmtpd} BuildRequires: %{python_module aiosmtpd}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest >= 2.0.0} BuildRequires: %{python_module pytest >= 2.0.0}
BuildRequires: %{python_module requests} BuildRequires: %{python_module requests}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools >= 42}
BuildRequires: %{python_module setuptools_scm >= 3.4.1}
BuildRequires: %{python_module wheel}
%if 0%{?suse_version} <= 1500
# old setuptools_scm[toml] needs explicit extra
BuildRequires: %{python_module toml}
%endif
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-Werkzeug >= 0.10 Requires: python-Werkzeug >= 0.10
@ -55,10 +61,10 @@ no further!
sed -i "1d" pytest_localserver/{plugin,smtp}.py sed -i "1d" pytest_localserver/{plugin,smtp}.py
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
@ -68,6 +74,6 @@ sed -i "1d" pytest_localserver/{plugin,smtp}.py
%doc README.rst %doc README.rst
%license LICENSE %license LICENSE
%{python_sitelib}/pytest_localserver %{python_sitelib}/pytest_localserver
%{python_sitelib}/pytest_localserver-*-py*.egg-info %{python_sitelib}/pytest_localserver-%{version}*-info
%changelog %changelog

View File

@ -1,6 +0,0 @@
--- /dev/null
+++ b/tests/__init__.py
@@ -0,0 +1,3 @@
+import sys
+if '/usr/bin' in sys.path:
+ del sys.path[sys.path.index('/usr/bin')]