- 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-socket?expand=0&rev=7
This commit is contained in:
2023-05-09 21:20:42 +00:00
committed by Git OBS Bridge
parent 15abba1dc4
commit a16307db07
4 changed files with 45 additions and 10 deletions

View File

@@ -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}/*