commit ddb197cd961ce0382e44b180ca3854326372357ca278f57b35d0d2fa5b7f5886 Author: Tomáš Chvátal Date: Tue Mar 5 14:32:23 2019 +0000 - Initial commit, used by cherrypy OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-services?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/1.3.1.tar.gz b/1.3.1.tar.gz new file mode 100644 index 0000000..4587286 --- /dev/null +++ b/1.3.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cb4374137742b05bf17feb618f13da79041f8853489b17286a9c0fc071dbb3ee +size 20417 diff --git a/python-pytest-services.changes b/python-pytest-services.changes new file mode 100644 index 0000000..805333f --- /dev/null +++ b/python-pytest-services.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue Mar 5 14:24:09 UTC 2019 - Tomáš Chvátal + +- Initial commit, used by cherrypy diff --git a/python-pytest-services.spec b/python-pytest-services.spec new file mode 100644 index 0000000..159cd4b --- /dev/null +++ b/python-pytest-services.spec @@ -0,0 +1,72 @@ +# +# spec file for package python-pytest-services +# +# 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-services +Version: 1.3.1 +Release: 0 +Summary: Services plugin for pytest testing framework +License: MIT +Group: Development/Languages/Python +URL: https://github.com/pytest-dev/pytest-services +Source: https://github.com/pytest-dev/pytest-services/archive/%{version}.tar.gz +BuildRequires: %{python_module mock} +BuildRequires: %{python_module psutil} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module requests} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pylibmc} +BuildRequires: %{python_module mysqlclient} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: python-subprocess32 +Requires: python-psutil +Requires: python-pytest +Requires: python-requests +Requires: python-setuptools +Recommends: python-pylibmc +BuildArch: noarch +%ifpython2 +Requires: python-subprocess32 +%endif +%python_subpackages + +%description +The plugin provides a set of fixtures and utility functions to start service +processes for your tests with pytest. + +%prep +%setup -q -n pytest-services-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# test_memcached test_mysql test_xvfb - need running X/mysql/memcache servers +%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -v -k 'not (test_memcached or test_mysql or test_xvfb)' + +%files %{python_files} +%doc CHANGES.rst README.rst +%license LICENSE.txt +%{python_sitelib}/* + +%changelog