Accepting request 992066 from devel:languages:python:pytest

OBS-URL: https://build.opensuse.org/request/show/992066
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-localserver?expand=0&rev=4
This commit is contained in:
Dominique Leuenberger 2022-08-04 11:23:22 +00:00 committed by Git OBS Bridge
commit 0044491c55
5 changed files with 46 additions and 20 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3a5427909d1dfda10772c1bae4b9803679c0a8f04adb66c338ac607773bfefc2
size 20409

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ddc479aba96a7da0e7a1cc7d3a303e50582d6d505803e8f67b827218f9fe0f65
size 182346

View File

@ -1,3 +1,26 @@
-------------------------------------------------------------------
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>
- Update to 0.6.0
* Drop support for Python 3.3 and 3.4
* Use setuptools_scm for managing versions of this package
* Support sending chunked responses from the HTTP server
* Switch SMTP server backend from smtpd to aiosmtpd
- version 0.5.1.post0
* Explicitly list supported Python versions with python_requires in setup.py.
- version 0.5.1
* Regenerate included certificate to use SHA-256 hash to avoid OpenSSL errors (fixes #2).
* Add support for Python 3.10.
* Drop support for Python 2.6.
* Migrate repository to Github and update project metadata.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Mar 17 11:16:06 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com> Tue Mar 17 11:16:06 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-pytest-localserver # spec file for package python-pytest-localserver
# #
# Copyright (c) 2020 SUSE LLC # Copyright (c) 2022 SUSE LLC
# Copyright (c) 2015 LISA GmbH, Bingen, Germany. # Copyright (c) 2015 LISA GmbH, Bingen, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
@ -17,19 +17,27 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
Name: python-pytest-localserver Name: python-pytest-localserver
Version: 0.5.0 Version: 0.6.0
Release: 0 Release: 0
Summary: Plugin for py.test to test server connections locally Summary: Plugin for py.test to test server connections locally
License: MIT License: MIT
URL: https://bitbucket.org/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 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
@ -50,21 +58,22 @@ no further!
%prep %prep
%setup -q -n pytest-localserver-%{version} %setup -q -n pytest-localserver-%{version}
%autopatch -p1 %autopatch -p1
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
%pytest -s %pytest
%files %{python_files} %files %{python_files}
%doc README %doc README.rst
%license LICENSE %license LICENSE
%{python_sitelib}/pytest_localserver %{python_sitelib}/pytest_localserver
%{python_sitelib}/pytest_localserver-%{version}-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')]