commit 17ae623894b06828c02716902f43469710265c8b0be9e5c2779a92e2e1722a00 Author: Adrian Schröter Date: Fri May 3 22:29:56 2024 +0200 Sync from SUSE:SLFO:Main python-pytest-services revision 86495f0c4f0d906ddb3c2461d06a0e0f 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/2.2.1.tar.gz b/2.2.1.tar.gz new file mode 100644 index 0000000..63fe02b --- /dev/null +++ b/2.2.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9f12a244baa5da24a8d40af7c59a02b7e1f63aa9efc4e682efb43d0e291fc4d1 +size 21303 diff --git a/python-pytest-services.changes b/python-pytest-services.changes new file mode 100644 index 0000000..9961c1f --- /dev/null +++ b/python-pytest-services.changes @@ -0,0 +1,51 @@ +------------------------------------------------------------------- +Sat Jun 10 09:24:57 UTC 2023 - ecsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Wed Mar 23 06:23:05 UTC 2022 - Steve Kowalik + +- Remove mock BuildRequires, not needed. + +------------------------------------------------------------------- +Thu Nov 5 15:53:37 UTC 2020 - Marketa Machova + +- Update to 2.2.1 + * #38: Retry to lock resource if zc.lockfile.LockError is raised. + Fix needed for pytest-xdist. (StabbarN) + * #42: Retry on zc.lockfile.LockError in file_lock, use existing + timeout kwarg (mshriver) + +------------------------------------------------------------------- +Mon Jun 29 12:05:26 UTC 2020 - Marketa Calabkova + +- Update to version 2.1.0 + * #34: Deprecated slave_id fixture in favor of worker_id, + for compatibility with pytest-xdist 2. + +------------------------------------------------------------------- +Fri Mar 13 12:39:49 UTC 2020 - Tomáš Chvátal + +- Fix build without python2 + +------------------------------------------------------------------- +Mon Feb 24 11:37:28 UTC 2020 - Tomáš Chvátal + +- Do not pull in mysql for tests we actually skip anyway + +------------------------------------------------------------------- +Fri Nov 15 10:37:18 UTC 2019 - Tomáš Chvátal + +- Update to 2.0.1: + * #23: Rely on zc.lockfile for lockfile behavior. + * #28: Fixtures now supports later versions of mysql and no longer support versions of mysql prior to mysql --initialize support. + * #29: Fix issues with later versions of mysql where mysql_defaults_file fixture would prevent startup of mysql. + * Fixed issue in test suite where mysql fixture was not tested. + * Removed pytest_services.locks.lock_file. + * #20: Added workaround for issue with SysLogHandler. + +------------------------------------------------------------------- +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..b11134a --- /dev/null +++ b/python-pytest-services.spec @@ -0,0 +1,76 @@ +# +# spec file for package python-pytest-services +# +# 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 +# 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/ +# + + +%{?sle15_python_module_pythons} +Name: python-pytest-services +Version: 2.2.1 +Release: 0 +Summary: Services plugin for pytest testing framework +License: MIT +URL: https://github.com/pytest-dev/pytest-services +Source: https://github.com/pytest-dev/pytest-services/archive/%{version}.tar.gz +BuildRequires: %{python_module psutil} +BuildRequires: %{python_module pylibmc} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module requests} +BuildRequires: %{python_module setuptools_scm} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module zc.lockfile >= 2.0} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +%if %{with python2} +BuildRequires: python-subprocess32 +%endif +Requires: python-psutil +Requires: python-pytest +Requires: python-requests +Requires: python-setuptools +Requires: python-zc.lockfile >= 2.0 +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} +# we don't test mysql anway +sed -i -e '/import MySQLdb/d' tests/test_plugin.py + +%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 +%pytest -k 'not (test_memcached or test_mysql or test_xvfb)' + +%files %{python_files} +%doc CHANGES.rst README.rst +%license LICENSE.txt +%{python_sitelib}/* + +%changelog