forked from pool/python-datadiff
Accepting request 1114962 from home:pgajdos:python
- Update to version 2.2.0: * Bump version * Removed separate version file now that Setuptools can read without importing. * Ran ruff --fix to clean up some lint. * Remove LICENSE from MANIFEST.in (Setuptools includes it by default now). * Add a pyproject.toml for better packaging support. * Mark failing tests as xfail until someone can investigate. * Moved package metadata to declarative setup.cfg * Remove tests_require * Remove superfluous license field * Remove commented code for deprecated usage. * Port test runner to nose. - added patches https://sourceforge.net/p/datadiff/code/merge-requests/3/ + python-datadiff-no-six.patch OBS-URL: https://build.opensuse.org/request/show/1114962 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-datadiff?expand=0&rev=6
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
|
||||
|
||||
Name: python-datadiff
|
||||
Version: 2.1.0
|
||||
Version: 2.2.0
|
||||
Release: 0
|
||||
Summary: DataDiff is a library to provide human-readable diffs of python data structures
|
||||
License: Apache-2.0
|
||||
@@ -26,8 +26,8 @@ URL: https://sourceforge.net/projects/datadiff/
|
||||
#Source: https://files.pythonhosted.org/packages/source/d/datadiff/datadiff-%%{version}.tar.gz
|
||||
#Git-Clone: https://git.code.sf.net/p/datadiff/code
|
||||
Source: datadiff-%{version}.tar.xz
|
||||
Source1: https://www.apache.org/licenses/LICENSE-2.0.txt
|
||||
Patch0: switch-to-pytest.patch
|
||||
# https://sourceforge.net/p/datadiff/code/merge-requests/3/
|
||||
Patch0: python-datadiff-no-six.patch
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
@@ -48,7 +48,6 @@ a nice data diff is shown, letting you easily pinpoint the root difference.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n datadiff-%{version}
|
||||
cp %{SOURCE1} .
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -58,11 +57,10 @@ cp %{SOURCE1} .
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
# Broken tests with py311
|
||||
%pytest -k "not (test_diff_set or test_diff_frozenset)"
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE-2.0.txt
|
||||
%license LICENSE
|
||||
%{python_sitelib}/datadiff
|
||||
%{python_sitelib}/datadiff-%{version}*-info
|
||||
|
||||
|
||||
Reference in New Issue
Block a user