From 93c4d6f47191d8aa267d7dcccc7d9fa9f997521b Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 10 Apr 2023 21:41:56 +0000 Subject: automatic import of python-datadiff --- .gitignore | 1 + python-datadiff.spec | 93 ++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 95 insertions(+) create mode 100644 python-datadiff.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..ada8f2a 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/datadiff-2.1.0.tar.gz diff --git a/python-datadiff.spec b/python-datadiff.spec new file mode 100644 index 0000000..017dcea --- /dev/null +++ b/python-datadiff.spec @@ -0,0 +1,93 @@ +%global _empty_manifest_terminate_build 0 +Name: python-datadiff +Version: 2.1.0 +Release: 1 +Summary: DataDiff is a library to provide human-readable diffs of python data structures. +License: Apache License +URL: http://sourceforge.net/projects/datadiff/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/86/79/379edbfabf34adf8634334eab7e79df2ec74c779fcefd07baf444e4649c5/datadiff-2.1.0.tar.gz +BuildArch: noarch + + +%description +DataDiff is a library to provide human-readable diffs of python data structures. +It can handle sequence types (lists, tuples, etc), sets, and dictionaries. +Dictionaries and sequences will be diffed recursively, when applicable. +It has special-case handling for multi-line strings, showing them as a typical unified diff. +Drop-in replacements for some nose assertions are available. If the assertion fails, +a nice data diff is shown, letting you easily pinpoint the root difference. +``datadiff`` works on Python 2.6 through Python 3. +DataDiff project homepage: http://sourceforge.net/projects/datadiff/ + +%package -n python3-datadiff +Summary: DataDiff is a library to provide human-readable diffs of python data structures. +Provides: python-datadiff +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-datadiff +DataDiff is a library to provide human-readable diffs of python data structures. +It can handle sequence types (lists, tuples, etc), sets, and dictionaries. +Dictionaries and sequences will be diffed recursively, when applicable. +It has special-case handling for multi-line strings, showing them as a typical unified diff. +Drop-in replacements for some nose assertions are available. If the assertion fails, +a nice data diff is shown, letting you easily pinpoint the root difference. +``datadiff`` works on Python 2.6 through Python 3. +DataDiff project homepage: http://sourceforge.net/projects/datadiff/ + +%package help +Summary: Development documents and examples for datadiff +Provides: python3-datadiff-doc +%description help +DataDiff is a library to provide human-readable diffs of python data structures. +It can handle sequence types (lists, tuples, etc), sets, and dictionaries. +Dictionaries and sequences will be diffed recursively, when applicable. +It has special-case handling for multi-line strings, showing them as a typical unified diff. +Drop-in replacements for some nose assertions are available. If the assertion fails, +a nice data diff is shown, letting you easily pinpoint the root difference. +``datadiff`` works on Python 2.6 through Python 3. +DataDiff project homepage: http://sourceforge.net/projects/datadiff/ + +%prep +%autosetup -n datadiff-2.1.0 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-datadiff -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot - 2.1.0-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..536624e --- /dev/null +++ b/sources @@ -0,0 +1 @@ +8e1628654a5d7cb8d0dcfb557d9f51cf datadiff-2.1.0.tar.gz -- cgit v1.2.3