forked from pool/python-diff-match-patch
- Update to 20230430:
* Replaced deprecated `imp` usage with `importlib` (#7) * Migrated to PEP 621 metadata, flit * Reformated with updated black/µsort/µfmt * Tested on Python 3.7 - 3.11 * Dropped support for Python 2.7, 3.5, and 3.6 - Switch to pyproject, autosetup and pyunittest macros. - Stop using greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-diff-match-patch?expand=0&rev=7
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:da6f5a01aa586df23dfc89f3827e1cafbb5420be9d87769eeb079ddfd9477a18
|
|
||||||
size 60711
|
|
||||||
3
diff-match-patch-20230430.tar.gz
Normal file
3
diff-match-patch-20230430.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:953019cdb9c9d2c9e47b5b12bcff3cf4746fc4598eb406076fa1fc27e6a1f15c
|
||||||
|
size 43324
|
||||||
@@ -1,3 +1,15 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Dec 20 02:07:58 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Update to 20230430:
|
||||||
|
* Replaced deprecated `imp` usage with `importlib` (#7)
|
||||||
|
* Migrated to PEP 621 metadata, flit
|
||||||
|
* Reformated with updated black/µsort/µfmt
|
||||||
|
* Tested on Python 3.7 - 3.11
|
||||||
|
* Dropped support for Python 2.7, 3.5, and 3.6
|
||||||
|
- Switch to pyproject, autosetup and pyunittest macros.
|
||||||
|
- Stop using greedy globs in %files.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Aug 19 17:37:55 UTC 2020 - Matthias Fehring <buschmann23@opensuse.org>
|
Wed Aug 19 17:37:55 UTC 2020 - Matthias Fehring <buschmann23@opensuse.org>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-diff-match-patch
|
# spec file for package python-diff-match-patch
|
||||||
#
|
#
|
||||||
# Copyright (c) 2020 SUSE LLC
|
# Copyright (c) 2023 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,18 +16,17 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
||||||
Name: python-diff-match-patch
|
Name: python-diff-match-patch
|
||||||
Version: 20200713
|
Version: 20230430
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Repackaging of Google's Diff Match and Patch libraries
|
Summary: Repackaging of Google's Diff Match and Patch libraries
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Group: Development/Languages/Python
|
|
||||||
URL: https://github.com/diff-match-patch-python/diff-match-patch
|
URL: https://github.com/diff-match-patch-python/diff-match-patch
|
||||||
Source: https://files.pythonhosted.org/packages/source/d/diff-match-patch/diff-match-patch-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/d/diff-match-patch/diff-match-patch-%{version}.tar.gz
|
||||||
# PATCH-FIX-OPENSUSE make-tests-runable.patch -- running tests is too complicated to put that into the specfile
|
# PATCH-FIX-OPENSUSE make-tests-runable.patch -- running tests is too complicated to put that into the specfile
|
||||||
Patch0: make-tests-runable.patch
|
Patch0: make-tests-runable.patch
|
||||||
BuildRequires: %{python_module setuptools >= 38.6.0}
|
BuildRequires: %{python_module flit-core}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Provides: python-diff_match_patch
|
Provides: python-diff_match_patch
|
||||||
@@ -39,23 +38,23 @@ BuildArch: noarch
|
|||||||
Offers algorithms to perform the operations required for synchronizing plain text
|
Offers algorithms to perform the operations required for synchronizing plain text
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n diff-match-patch-%{version}
|
%autosetup -p1 -n diff-match-patch-%{version}
|
||||||
find . -name "*.py" -type f -exec sed -i '1s/^#!.*//' {} \+
|
find . -name "*.py" -type f -exec sed -i '1s/^#!.*//' {} \+
|
||||||
%patch0 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%python_exec -m unittest diff_match_patch.tests.run_all
|
%pyunittest diff_match_patch.tests.run_all
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/diff_match_patch
|
||||||
|
%{python_sitelib}/diff_match_patch-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user