From 04a1fc03b631695e2421c94359f161d16c5f5d3e387970c3905985d2a0ceadc9 Mon Sep 17 00:00:00 2001 From: Todd R Date: Tue, 23 Jul 2019 17:38:42 +0000 Subject: [PATCH] Accepting request 717967 from home:TheBlackCat:branches:devel:languages:python Pytest Plugin to disable socket calls during tests OBS-URL: https://build.opensuse.org/request/show/717967 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-socket?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++++ .gitignore | 1 + pytest-socket-0.3.3.tar.gz | 3 ++ python-pytest-socket.changes | 4 +++ python-pytest-socket.spec | 60 ++++++++++++++++++++++++++++++++++++ 5 files changed, 91 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pytest-socket-0.3.3.tar.gz create mode 100644 python-pytest-socket.changes create mode 100644 python-pytest-socket.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/pytest-socket-0.3.3.tar.gz b/pytest-socket-0.3.3.tar.gz new file mode 100644 index 0000000..4804566 --- /dev/null +++ b/pytest-socket-0.3.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0f845d952894cdc0cc0a34a998ab843ddf2a12eb282b450f558d2ec019fdbe36 +size 8670 diff --git a/python-pytest-socket.changes b/python-pytest-socket.changes new file mode 100644 index 0000000..344753c --- /dev/null +++ b/python-pytest-socket.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue Jul 23 15:40:41 UTC 2019 - Todd R + +- Initial version diff --git a/python-pytest-socket.spec b/python-pytest-socket.spec new file mode 100644 index 0000000..cf36f47 --- /dev/null +++ b/python-pytest-socket.spec @@ -0,0 +1,60 @@ +# +# spec file for package python-pytest-socket +# +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, 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 http://bugs.opensuse.org/ + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-pytest-socket +Version: 0.3.3 +Release: 0 +License: MIT +Summary: Pytest Plugin to disable socket +Url: https://github.com/miketheman/pytest-socket +Group: Development/Languages/Python +Source: https://github.com/miketheman/pytest-socket/archive/%{version}.tar.gz#/pytest-socket-%{version}.tar.gz +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +# SECTION test requirements +BuildRequires: %{python_module pytest >= 3.6.3} +# /SECTION +Requires: python-pytest >= 3.6.3 +BuildArch: noarch + +%python_subpackages + +%description +A Pytest Plugin to disable socket calls during tests. + +%prep +%setup -q -n pytest-socket-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +# Tests require a network connection +# %%check +# %%pytest + +%files %{python_files} +%doc README.rst +%license LICENSE +%{python_sitelib}/* + +%changelog