commit 3e898cf095484ab739ab3bb86a30d942c58840cd381acd5ba71492f126b02e17 Author: Tomáš Chvátal Date: Fri Sep 20 09:59:50 2019 +0000 Accepting request 731890 from home:jayvdb:py-new updated to be pytest < 5 OBS-URL: https://build.opensuse.org/request/show/731890 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-server-fixtures?expand=0&rev=1 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-server-fixtures-1.7.0.tar.gz b/pytest-server-fixtures-1.7.0.tar.gz new file mode 100644 index 0000000..4123d1d --- /dev/null +++ b/pytest-server-fixtures-1.7.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0fa5b1be6a84180e50ff91a58580e81ad3eb45828878a07942fbe384fcd86d1f +size 9801739 diff --git a/python-pytest-server-fixtures.changes b/python-pytest-server-fixtures.changes new file mode 100644 index 0000000..f68d26c --- /dev/null +++ b/python-pytest-server-fixtures.changes @@ -0,0 +1,9 @@ +------------------------------------------------------------------- +Tue Sep 10 08:09:04 UTC 2019 - John Vandenberg + +- Update to v1.7.0 + +------------------------------------------------------------------- +Thu Mar 21 01:42:29 AM UTC 2019 - John Vandenberg + +- Initial spec for v1.6.2 diff --git a/python-pytest-server-fixtures.spec b/python-pytest-server-fixtures.spec new file mode 100644 index 0000000..eb20d67 --- /dev/null +++ b/python-pytest-server-fixtures.spec @@ -0,0 +1,123 @@ +# +# spec file for package python-pytest-server-fixtures +# +# 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 https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-pytest-server-fixtures +Version: 1.7.0 +Release: 0 +Summary: Extensible server fixures for py.test +License: MIT +Group: Development/Languages/Python +URL: https://github.com/manahl/pytest-plugins +Source: https://files.pythonhosted.org/packages/source/p/pytest-server-fixtures/pytest-server-fixtures-%{version}.tar.gz +BuildRequires: %{python_module setuptools-git} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: redis +# net-tools-deprecated's netstat and lsof needed internally +Requires: lsof +Requires: net-tools-deprecated +Requires: python-future +Requires: python-psutil +Requires: python-pytest < 5 +Requires: python-pytest-fixture-config +Requires: python-pytest-shutil +Requires: python-requests +Requires: python-retry +Requires: python-six +Suggests: apache2 +Suggests: postgresql-server-devel +Suggests: python-boto3 +Suggests: python-docker +Suggests: python-kubernetes +Suggests: python-psycopg2 +Suggests: python-pymongo >= 3.6.0 +Suggests: python-python-jenkins +Suggests: python-redis +Suggests: python-rethinkdb +Suggests: redis +Suggests: xauth +Suggests: xdpyinfo +Suggests: xorg-x11-server +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module boto3} +BuildRequires: %{python_module docker} +BuildRequires: %{python_module future} +BuildRequires: %{python_module kubernetes} +BuildRequires: %{python_module mock} +BuildRequires: %{python_module psutil} +BuildRequires: %{python_module psycopg2} +BuildRequires: %{python_module pymongo >= 3.6.0} +BuildRequires: %{python_module pytest < 5} +BuildRequires: %{python_module pytest-fixture-config} +BuildRequires: %{python_module pytest-shutil} +BuildRequires: %{python_module python-jenkins} +BuildRequires: %{python_module redis} +BuildRequires: %{python_module requests} +BuildRequires: %{python_module rethinkdb} +BuildRequires: %{python_module retry} +BuildRequires: %{python_module six} +BuildRequires: apache2 +BuildRequires: lsof +BuildRequires: net-tools-deprecated +BuildRequires: postgresql-server-devel +BuildRequires: redis +BuildRequires: xauth +BuildRequires: xdpyinfo +BuildRequires: xorg-x11-server +# /SECTION +%python_subpackages + +%description +Extensible server fixures for py.test. + +%prep +%setup -q -n pytest-server-fixtures-%{version} + +# Tests requiring a server +rm tests/integration/test_mongo_server.py +rm tests/integration/test_jenkins_server.py +rm tests/integration/test_rethink_server.py +rm tests/integration/test_s3_server.py +rm tests/unit/serverclass/test_kubernetes_unit.py + +# openSUSE apache2 has the mpm compiled in +sed -i '/mod_mpm_prefork.so/d' pytest_server_fixtures/httpd.py + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +export PATH=$HOME/bin:$PATH:%{_sbindir} +export SERVER_FIXTURES_HTTPD_MODULES=%{_libdir}/apache2/ +export SERVER_FIXTURES_HTTPD=httpd +export SERVER_FIXTURES_REDIS=%{_sbindir}/redis-server +%python_exec setup.py test + +%files %{python_files} +%doc CHANGES.md README.md +%license LICENSE +%{python_sitelib}/* + +%changelog