From a16307db073ed778436f99f87c97d7da4be18d4d33b1bdeeafffedc4bc097670 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 9 May 2023 21:20:42 +0000 Subject: [PATCH] =?UTF-8?q?-=20update=20to=200.6.0:=20=20=20*=20Add=20Chan?= =?UTF-8?q?ge=20Log=20project=20URL=20=20=20*=20test:=20update=20httpbin?= =?UTF-8?q?=20commit=20hash=20=20=20*=20Upgrade=20CodeSee=20workflow=20to?= =?UTF-8?q?=20version=202=20=20=20*=20fix:=20don't=20break=20on=20doctests?= =?UTF-8?q?=20=20=20*=20docs:=20Fix=20syntax=20for=20setup.cfg=20=20=20*?= =?UTF-8?q?=20Fix=20pytest-socket=20raises=20IndexError=20with=20httpx=20?= =?UTF-8?q?=20=20*=20test:=20move=20the=20reenable=20fixture=20to=20confte?= =?UTF-8?q?st=20=20=20*=20Switch=20to=20poetry-core=20=20=20*=20Handle=20`?= =?UTF-8?q?family`=20passed=20as=20keyword=20argument=20=20=20*=20refactor?= =?UTF-8?q?:=20consolidate=20global=20options=20to=20config=20=20=20*=20te?= =?UTF-8?q?st:=20replace=20pytest-flake8=20with=20pre-commit=20=20=20*=20r?= =?UTF-8?q?efactor/fix:=20move=20logic=20into=20setup=20phase=20and=20corr?= =?UTF-8?q?ect=20order=20=20=20*=20test:=20add=20test=20module=20for=20com?= =?UTF-8?q?binations=20=20=20*=20fix:=20test=20allow=5Fhosts=20for=20unix?= =?UTF-8?q?=20sockets=20=20=20*=20test:=20move=20unix=20decorator=20to=20c?= =?UTF-8?q?onftest=20=20=20*=20test:=20randomize=20test=20order=20=20=20*?= =?UTF-8?q?=20test:=20replace=20coverage=20command=20=20=20*=20refactor:?= =?UTF-8?q?=20replace=20.format=20with=20f-strings=20=20=20*=20lint:=20app?= =?UTF-8?q?ly=20black=20=20=20*=20Enable=20Unix=20sockets=20selectively=20?= =?UTF-8?q?with=20--allow-unix-socket=20=20=20*=20Test=20refactor,=20add?= =?UTF-8?q?=20CodeQL=20scanning=20=20=20*=20Correctly=20subclass=20socket.?= =?UTF-8?q?socket=20=20=20*=20Add=20testing=20against=20Python=203.9,=20Dr?= =?UTF-8?q?opped=20testing=20against=20=20=20=20=20Python=203.5=20=20=20*?= =?UTF-8?q?=20Doc=20updates=20=20=20*=20Avoid=20changing=20the=20type=20of?= =?UTF-8?q?=20`socket.socket`=20to=20function.=20=20=20*=20Sourcery=20Star?= =?UTF-8?q?bot=20=E2=AD=90=20refactored=20miketheman/pytest-socket=20=20?= =?UTF-8?q?=20*=20Don't=20block=20unix=20sockets=20=20=20*=20docs:=20add?= =?UTF-8?q?=20details=20on=20fixture=20scope?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-socket?expand=0&rev=7 --- pytest-socket-0.3.5.tar.gz | 3 --- pytest_socket-0.6.0.tar.gz | 3 +++ python-pytest-socket.changes | 36 ++++++++++++++++++++++++++++++++++++ python-pytest-socket.spec | 13 ++++++------- 4 files changed, 45 insertions(+), 10 deletions(-) delete mode 100644 pytest-socket-0.3.5.tar.gz create mode 100644 pytest_socket-0.6.0.tar.gz diff --git a/pytest-socket-0.3.5.tar.gz b/pytest-socket-0.3.5.tar.gz deleted file mode 100644 index d07287b..0000000 --- a/pytest-socket-0.3.5.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b30470fe8a0ecdbfdbfc35c1e4ac9c823f0348181570792e71ac234e07c6340f -size 5224 diff --git a/pytest_socket-0.6.0.tar.gz b/pytest_socket-0.6.0.tar.gz new file mode 100644 index 0000000..da216af --- /dev/null +++ b/pytest_socket-0.6.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:363c1d67228315d4fc7912f1aabfd570de29d0e3db6217d61db5728adacd7138 +size 12484 diff --git a/python-pytest-socket.changes b/python-pytest-socket.changes index a826f19..59c3226 100644 --- a/python-pytest-socket.changes +++ b/python-pytest-socket.changes @@ -1,3 +1,39 @@ +------------------------------------------------------------------- +Tue May 9 21:18:12 UTC 2023 - Dirk Müller + +- update to 0.6.0: + * Add Change Log project URL + * test: update httpbin commit hash + * Upgrade CodeSee workflow to version 2 + * fix: don't break on doctests + * docs: Fix syntax for setup.cfg + * Fix pytest-socket raises IndexError with httpx + * test: move the reenable fixture to conftest + * Switch to poetry-core + * Handle `family` passed as keyword argument + * refactor: consolidate global options to config + * test: replace pytest-flake8 with pre-commit + * refactor/fix: move logic into setup phase and correct order + * test: add test module for combinations + * fix: test allow_hosts for unix sockets + * test: move unix decorator to conftest + * test: randomize test order + * test: replace coverage command + * refactor: replace .format with f-strings + * lint: apply black + * Enable Unix sockets selectively with --allow-unix-socket + * Test refactor, add CodeQL scanning + * Correctly subclass socket.socket + * Add testing against Python 3.9, Dropped testing against + Python 3.5 + * Doc updates + * Avoid changing the type of `socket.socket` to function. + * Sourcery Starbot ⭐ refactored miketheman/pytest-socket + * Don't block unix sockets + * docs: add details on fixture scope + * chore: replace rst with markdown + * test: add testing for some async frameworks + ------------------------------------------------------------------- Tue Jun 9 07:44:50 UTC 2020 - Tomáš Chvátal diff --git a/python-pytest-socket.spec b/python-pytest-socket.spec index eb35276..d05924d 100644 --- a/python-pytest-socket.spec +++ b/python-pytest-socket.spec @@ -1,7 +1,7 @@ # # spec file for package python-pytest-socket # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,15 +16,14 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 +%{?sle15_python_module_pythons} Name: python-pytest-socket -Version: 0.3.5 +Version: 0.6.0 Release: 0 Summary: Pytest Plugin to disable socket License: MIT URL: https://github.com/miketheman/pytest-socket -Source: https://files.pythonhosted.org/packages/source/p/pytest-socket/pytest-socket-%{version}.tar.gz +Source: https://files.pythonhosted.org/packages/source/p/pytest-socket/pytest_socket-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -39,7 +38,7 @@ BuildRequires: %{python_module pytest >= 3.6.3} A Pytest Plugin to disable socket calls during tests. %prep -%setup -q -n pytest-socket-%{version} +%setup -q -n pytest_socket-%{version} %build %python_build @@ -53,7 +52,7 @@ A Pytest Plugin to disable socket calls during tests. #%%pytest %files %{python_files} -%doc README.rst +%doc README.md %license LICENSE %{python_sitelib}/*