commit 59a5ad8a120da3ef3ae20f4911dfa3dc65f661fe Author: Adrian Schröter Date: Tue Jun 6 15:20:09 2023 +0200 Sync from SUSE:ALP:Source:Standard:1.0 python-testscenarios revision 901f624eee0617feac9c5188d125212c diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /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-testscenarios.changes b/python-testscenarios.changes new file mode 100644 index 0000000..7d837d4 --- /dev/null +++ b/python-testscenarios.changes @@ -0,0 +1,72 @@ +------------------------------------------------------------------- +Fri Apr 21 12:37:20 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Thu Apr 13 22:45:21 UTC 2023 - Matej Cepl + +- Make calling of %{sle15modernpython} optional. + +------------------------------------------------------------------- +Mon Oct 14 14:45:34 UTC 2019 - Matej Cepl + +- Replace %fdupes -s with plain %fdupes; hardlinks are better. + +------------------------------------------------------------------- +Tue Dec 18 23:20:07 UTC 2018 - Jan Engelhardt + +- Use noun phrase in summary. + +------------------------------------------------------------------- +Tue Dec 4 12:55:13 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Sun Apr 9 15:32:54 UTC 2017 - aloisio@gmx.com + +- Disabled tests to avoid dependency loop with testtools + +------------------------------------------------------------------- +Sun Apr 2 08:11:06 UTC 2017 - aloisio@gmx.com + +- Converted to single-spec +- Updated source URL + +------------------------------------------------------------------- +Fri May 15 12:47:31 UTC 2015 - benoit.monin@gmx.fr + +- update to version 0.5.0: + * Tests fixed for Python 3.3, 3.4, 3.5. (Robert Collins) +- add new build dependency python-pbr +- add new runtime dependencies python-pbr and python-testtools + +------------------------------------------------------------------- +Mon May 6 07:14:03 UTC 2013 - speilicke@suse.com + +- Properly run testsuite, but not (currently) on SLE_11_SP2 + +------------------------------------------------------------------- +Thu May 2 13:43:11 UTC 2013 - speilicke@suse.com + +- Update to version 0.4: + + Python 3.2 support added. (Robert Collins) + +------------------------------------------------------------------- +Fri Apr 6 21:18:20 UTC 2012 - jfunk@funktronics.ca + +- Update to 0.3: + * New function per_module_scenarios for tests that should be applied across + multiple modules providing the same interface, some of which may not be + available at run time. (Martin Pool) + * TestWithScenarios is now backed by a mixin - WithScenarios - which can be + mixed into different unittest implementations more cleanly (e.g. + unittest2). (James Polley, Robert Collins) +- Recreate spec with current conventions + +------------------------------------------------------------------- +Sat Apr 16 18:56:49 UTC 2011 - jfunk@funktronics.ca + +- Initial release + diff --git a/python-testscenarios.spec b/python-testscenarios.spec new file mode 100644 index 0000000..b25d56b --- /dev/null +++ b/python-testscenarios.spec @@ -0,0 +1,69 @@ +# +# spec file for package python-testscenarios +# +# 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/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%{?sle15_python_module_pythons} +Name: python-testscenarios +Version: 0.5.0 +Release: 0 +Summary: A pyunit extension for dependency injection +License: Apache-2.0 OR BSD-3-Clause +URL: https://launchpad.net/testscenarios +Source: https://files.pythonhosted.org/packages/source/t/testscenarios/testscenarios-%{version}.tar.gz +BuildRequires: %{python_module pbr >= 0.11} +# Tests cause a dependency loop +#BuildRequires: %%{python_module extras} +#BuildRequires: %%{python_module nose} +#BuildRequires: %%{python_module testtools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-pbr >= 0.11 +Requires: python-testtools +BuildArch: noarch +%python_subpackages + +%description +testscenarios provides clean dependency injection for Python unittest style +tests. This can be used for interface testing (testing many implementations via +a single test suite) or for classic dependency injection (provide tests with +dependencies externally to the test code itself, allowing easy testing in +different situations). + +%prep +%setup -q -n testscenarios-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +# Tests introduce dependency loop with python-testtools +#%%check +#%%{python_expand PYTHONPATH=%%{buildroot}%{$python_sitelib} +# $python -m testtools.run testscenarios.test_suite +#} + +%files %{python_files} +%license COPYING +%doc Apache-2.0 BSD GOALS HACKING NEWS README +%{python_sitelib}/testscenarios +%{python_sitelib}/testscenarios-%{version}-py%{python_version}.egg-info + +%changelog diff --git a/testscenarios-0.5.0.tar.gz b/testscenarios-0.5.0.tar.gz new file mode 100644 index 0000000..6288629 --- /dev/null +++ b/testscenarios-0.5.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c257cb6b90ea7e6f8fef3158121d430543412c9a87df30b5dde6ec8b9b57a2b6 +size 20951