commit a1967f8ed7100cb59d4f74c88a5d2f361f562e71aedab4af7c9ac1adc81d7047 Author: Adrian Schröter Date: Fri May 3 23:14:50 2024 +0200 Sync from SUSE:SLFO:Main python-testresources revision a3729be2bd4bb22799d456a2d5786687 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/python-testresources.changes b/python-testresources.changes new file mode 100644 index 0000000..3ccdff9 --- /dev/null +++ b/python-testresources.changes @@ -0,0 +1,87 @@ +------------------------------------------------------------------- +Fri Apr 21 12:37:18 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Tue Apr 18 12:39:35 UTC 2023 - Matej Cepl + +- Switch to single spec version build for PSP + +------------------------------------------------------------------- +Wed Jan 13 13:12:54 UTC 2021 - pgajdos@suse.com + +- use %pytest macro + +------------------------------------------------------------------- +Mon Oct 14 14:45:15 UTC 2019 - Matej Cepl + +- Replace %fdupes -s with plain %fdupes; hardlinks are better. + +------------------------------------------------------------------- +Wed Aug 8 12:29:15 UTC 2018 - jengelh@inai.de + +- Trim repeated name from summary (rpmlint). + +------------------------------------------------------------------- +Tue Aug 7 10:33:15 UTC 2018 - tchvatal@suse.com + +- Add patch testresources-flaky-tests.patch to disable flaky test +- Drop PR-8.patch as it is obsolete by the above patch + +------------------------------------------------------------------- +Tue Aug 7 10:17:11 UTC 2018 - tchvatal@suse.com + +- Cleanup with spec-cleaner +- Simplify the tests execution +- Install license files + +------------------------------------------------------------------- +Thu Sep 21 09:04:38 UTC 2017 - tbechtold@suse.com + +- Add PR-8.patch . This skips a flaky test during python3 test runs + +------------------------------------------------------------------- +Sun Apr 9 13:28:52 UTC 2017 - aloisio@gmx.com + +- Converted to single-spec +- Fixed source URL + +------------------------------------------------------------------- +Mon Nov 14 14:13:03 UTC 2016 - dmueller@suse.com + +- update to 2.0.1: + * Fix #1590536 classifiers not reported in PyPI + * Drop support for Python 2.4, 2.5, 3.2 + * Bug #1524048: depend on pbr at runtime + * Handle unittest2 test suites as well + * Use pbr for versions as well + * More diagnostics on sort failures + * Cleanup old helper we don't need anymore + * Add a tox.ini for convenience + * Add a Travis config + * Ignore more files + * Build and ship wheels + * Migrate to pbr + +------------------------------------------------------------------- +Thu Jun 12 08:42:01 UTC 2014 - cdenicolo@suse.com + +- license update: (Apache-2.0 or BSD-3-Clause) and GPL-2.0+ + missing BSD-license + +------------------------------------------------------------------- +Thu Oct 24 11:15:49 UTC 2013 - speilicke@suse.com + +- Require python-setuptools instead of distribute (upstreams merged) + +------------------------------------------------------------------- +Wed Apr 3 09:15:08 UTC 2013 - speilicke@suse.com + +- Fix license according to what sr#159597 intended + +------------------------------------------------------------------- +Fri Mar 15 14:29:27 UTC 2013 - speilicke@suse.com + +- Initial version + diff --git a/python-testresources.spec b/python-testresources.spec new file mode 100644 index 0000000..0c7fad3 --- /dev/null +++ b/python-testresources.spec @@ -0,0 +1,63 @@ +# +# spec file for package python-testresources +# +# 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-testresources +Version: 2.0.1 +Release: 0 +Summary: A pyunit extension for managing expensive test resources +License: (Apache-2.0 OR BSD-3-Clause) AND GPL-2.0-or-later +URL: https://github.com/testing-cabal/testresources +Source: https://files.pythonhosted.org/packages/source/t/testresources/testresources-%{version}.tar.gz +Patch0: testresources-flaky-tests.patch +BuildRequires: %{python_module fixtures} +BuildRequires: %{python_module pbr} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module testtools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-pbr +BuildArch: noarch +%python_subpackages + +%description +testresources: extensions to python unittest to allow declarative use +of resources by test cases. + +%prep +%setup -q -n testresources-%{version} +%patch0 -p1 + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%license BSD Apache-2.0 COPYING +%doc README.rst +%{python_sitelib}/testresources +%{python_sitelib}/testresources-%{version}-py%{python_version}.egg-info + +%changelog diff --git a/testresources-2.0.1.tar.gz b/testresources-2.0.1.tar.gz new file mode 100644 index 0000000..dc0a89a --- /dev/null +++ b/testresources-2.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ee9d1982154a1e212d4e4bac6b610800bfb558e4fb853572a827bc14a96e4417 +size 41948 diff --git a/testresources-flaky-tests.patch b/testresources-flaky-tests.patch new file mode 100644 index 0000000..eccaf7f --- /dev/null +++ b/testresources-flaky-tests.patch @@ -0,0 +1,12 @@ +Index: testresources-2.0.1/testresources/tests/test_optimising_test_suite.py +=================================================================== +--- testresources-2.0.1.orig/testresources/tests/test_optimising_test_suite.py ++++ testresources-2.0.1/testresources/tests/test_optimising_test_suite.py +@@ -498,6 +498,7 @@ class TestGraphStuff(testtools.TestCase) + permutations.append([case4, case1, case3, case2]) + return permutations + ++ @unittest.skip("too flaky") + def testBasicSortTests(self): + # Test every permutation of inputs, with legacy tests. + # Cannot use equal costs because of the use of