Sync from SUSE:SLFO:Main python-pytest-localserver revision 644f48d8060806a866d6d726c91b3160

This commit is contained in:
Adrian Schröter 2024-05-03 22:26:25 +02:00
commit f3d21dba74
4 changed files with 238 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

BIN
pytest-localserver-0.8.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,128 @@
-------------------------------------------------------------------
Mon Jul 24 19:05:38 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 0.8.0:
* Improve deployment workflow to use trusted publishing and
upload to Test PyPI first
* Remove a bunch of obsolete code
* Clean up the smtp module's driver code
-------------------------------------------------------------------
Thu May 4 22:19:59 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 0.7.1:
* Update SMTP server code to work with aiosmtpd >=1.4.3
* Add support for Python 3.11 (or at least, list it explicitly
in the classifiers)
-------------------------------------------------------------------
Fri Apr 21 12:31:48 UTC 2023 - Dirk Müller <dmueller@suse.com>
- add sle15_python_module_pythons (jsc#PED-68)
-------------------------------------------------------------------
Thu Apr 13 22:44:06 UTC 2023 - Matej Cepl <mcepl@suse.com>
- Make calling of %{sle15modernpython} optional.
-------------------------------------------------------------------
Mon Jan 9 12:18:38 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 0.7.0:
* Make smtp support an optional extra
* Update some obsolete syntax to drop support for Python 2
* Add linting for code and workflow actions using pre-commit hooks
* Expand the range of pytest versions known to be compatible, with tests
* Add badges to README
-------------------------------------------------------------------
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>
- Use %pytest call for testing
-------------------------------------------------------------------
Fri Feb 22 21:12:05 CET 2019 - Matej Cepl <mcepl@suse.com>
- Add remove_bindir.patch making test suite pass by removing
'/usr/bin' from sys.path.
-------------------------------------------------------------------
Wed Feb 20 12:11:06 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Drop the patch python-pytest-localserver-do-not-use-shipped-pem.patch
* We actually want the local pem as it is used just for the test
spawning where we validate against it
-------------------------------------------------------------------
Thu Feb 14 14:20:49 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 0.5.0:
* New feature: SMTP email message objects now include a ``details``
property capturing the envelope details.
-------------------------------------------------------------------
Thu Feb 22 22:29:48 UTC 2018 - mimi.vx@gmail.com
- update to 0.4.1
- fix requires
- remove tests - not work without internal certificate and buggy on
python3
* New feature: All received requests are now stored for ilater inspection
-------------------------------------------------------------------
Thu Aug 17 20:01:38 UTC 2017 - toddrme2178@gmail.com
- Implement single-spec version
- Update to version 0.3.7
* Add support for Python 3.6
-------------------------------------------------------------------
Sun Sep 18 09:30:17 UTC 2016 - mardnh@gmx.de
- Fix URL
- Fix Source-URL
- Update to version 0.3.6
+ Add trove classifiers to make sure that package shows up on PyPI's Python 3 list.
+ Remove test method which rely on thread to be finished first.
+ OpenSSL is no longer necessary with werkzeug 0.10.
+ Tests now work under Python 3.3 \o/
+ Fix for Python 3.5 (fixes #13).
+ Add new Python version to classifiers.
+ Update repository url
+ Use @pytest.fixture to declare fixtures
+ Remove old-style test fixtures from tests and README, too.
-------------------------------------------------------------------
Mon Feb 9 17:17:11 UTC 2015 - p.drouand@gmail.com
- Do not provide bundled certificate;
add python-pytest-localserver-do-not-use-shipped-pem.patch
-------------------------------------------------------------------
Tue Nov 4 16:37:43 UTC 2014 - hpj@urpla.net
- version 0.3.3: initial build

View File

@ -0,0 +1,84 @@
#
# spec file for package python-pytest-localserver
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2015 LISA GmbH, Bingen, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
%bcond_with extras
%{?sle15_python_module_pythons}
Name: python-pytest-localserver
Version: 0.8.0
Release: 0
Summary: Plugin for py.test to test server connections locally
License: MIT
URL: https://github.com/pytest-dev/pytest-localserver
Source: https://files.pythonhosted.org/packages/source/p/pytest-localserver/pytest-localserver-%{version}.tar.gz
BuildRequires: %{python_module Werkzeug >= 0.10}
%if %{with extras}
BuildRequires: %{python_module aiosmtpd}
%endif
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest >= 2.0.0}
BuildRequires: %{python_module pytest-xdist}
BuildRequires: %{python_module requests}
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: python-rpm-macros
Requires: python-Werkzeug >= 0.10
Requires: python-pytest >= 2.0.0
BuildArch: noarch
%python_subpackages
%description
The pytest-localserver package is a plugin for the `pytest`_ testing framework
which enables you to test server connections locally.
Sometimes `monkeypatching`_ ``urllib2.urlopen()`` just does not cut it, for
instance if you work with ``urllib2.Request``, define your own openers/handlers
or work with ``httplib``. In these cases it may come in handy to have an HTTP
server running locally which behaves just like the real thing. Well, look
no further!
%prep
%setup -q -n pytest-localserver-%{version}
%autopatch -p1
sed -i "1d" pytest_localserver/{plugin,smtp}.py
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest %{?jobs: -n %jobs}
%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitelib}/pytest_localserver
%{python_sitelib}/pytest_localserver-%{version}*-info
%changelog