commit 5438b5a3ee7a49ee6b24e9d09311364457c9bede80f0e2e36bf5b865bbe4217c Author: Tomáš Chvátal Date: Mon Jun 8 06:58:24 2020 +0000 Accepting request 812142 from home:jayvdb:py-submit >15000/day https://pypistats.org/packages/dictdiffer OBS-URL: https://build.opensuse.org/request/show/812142 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dictdiffer?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/dictdiffer-0.8.1.tar.gz b/dictdiffer-0.8.1.tar.gz new file mode 100644 index 0000000..1ea7d93 --- /dev/null +++ b/dictdiffer-0.8.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1adec0d67cdf6166bda96ae2934ddb5e54433998ceab63c984574d187cc563d2 +size 28555 diff --git a/lower-reqs.diff b/lower-reqs.diff new file mode 100644 index 0000000..e950eda --- /dev/null +++ b/lower-reqs.diff @@ -0,0 +1,22 @@ +Index: dictdiffer-0.8.1/setup.py +=================================================================== +--- dictdiffer-0.8.1.orig/setup.py ++++ dictdiffer-0.8.1/setup.py +@@ -28,7 +28,7 @@ tests_require = [ + 'pytest-cov>=1.8.0', + 'pytest-pep8>=1.0.6', + 'pytest>=2.8.0', +- 'tox>=3.7.0', ++ 'tox>=2.9.0', + ] + + extras_require = { +@@ -50,7 +50,7 @@ for key, reqs in extras_require.items(): + + setup_requires = [ + 'pytest-runner>=2.7', +- 'setuptools_scm>=3.1.0', ++ 'setuptools_scm>=1.15.0', + ] + + packages = find_packages() diff --git a/python-dictdiffer.changes b/python-dictdiffer.changes new file mode 100644 index 0000000..3c731ed --- /dev/null +++ b/python-dictdiffer.changes @@ -0,0 +1,11 @@ +------------------------------------------------------------------- +Sun Jun 7 05:35:54 UTC 2020 - John Vandenberg + +- Tidy spec, running test suite via pytest directly + +------------------------------------------------------------------- +Sat Feb 8 16:04:39 UTC 2020 - Kurt Garloff + +- Build python-dictdiffer-0.8.1 via py2pack. +- lower-reqs.diff: Allow building with tox >= 2.9 and + setuptools_scm >= 1.15. diff --git a/python-dictdiffer.spec b/python-dictdiffer.spec new file mode 100644 index 0000000..33184c9 --- /dev/null +++ b/python-dictdiffer.spec @@ -0,0 +1,66 @@ +# +# spec file for package python-dictdiffer +# +# Copyright (c) 2020 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-%{**}} +Name: python-dictdiffer +Version: 0.8.1 +Release: 0 +Summary: Dictdiffer is a library that helps you to diff and patch dictionaries +License: MIT +Group: Development/Languages/Python +URL: https://github.com/inveniosoftware/dictdiffer +Source: https://files.pythonhosted.org/packages/source/d/dictdiffer/dictdiffer-%{version}.tar.gz +Patch0: lower-reqs.diff +BuildRequires: %{python_module pytest-runner >= 2.7} +BuildRequires: %{python_module setuptools_scm >= 1.15.0} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Suggests: python-numpy >= 1.11.0 +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module mock >= 1.3.0} +BuildRequires: %{python_module pytest >= 2.8.0} +# /SECTION +%python_subpackages + +%description +Dictdiffer is a library that helps you to diff and patch dictionaries. + +%prep +%setup -q -n dictdiffer-%{version} +%patch0 -p1 +# Remove dependence on unnecessary pytest plugins +rm pytest.ini + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc AUTHORS CHANGES README.rst +%license LICENSE +%{python_sitelib}/* + +%changelog