diff --git a/identify-1.4.14.tar.gz b/identify-1.4.14.tar.gz deleted file mode 100644 index 371c020..0000000 --- a/identify-1.4.14.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d5d5b8ec3763492106c8f985322aa2a98bbb1f240df759afa38fd85c8e205408 -size 99227 diff --git a/identify-2.2.10.tar.gz b/identify-2.2.10.tar.gz new file mode 100644 index 0000000..93da148 --- /dev/null +++ b/identify-2.2.10.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:91e1490b8fe459c3595bdfb299b7ef28bfdf3db54fa75f28ac64e96f5cf67435 +size 101073 diff --git a/python-identify.changes b/python-identify.changes index 60ca60c..611e866 100644 --- a/python-identify.changes +++ b/python-identify.changes @@ -1,3 +1,23 @@ +------------------------------------------------------------------- +Thu Jun 24 12:31:47 UTC 2021 - Markéta Machová + +- update to 2.2.10 + * add few file formats + * detect WORKSPACE files as bazel +- stick with older editdistance as it has more functionality + +------------------------------------------------------------------- +Wed May 26 10:19:37 UTC 2021 - pgajdos@suse.com + +- version update to 2.2.6 + * lot of changes, no upstream changelog found + https://github.com/pre-commit/identify/compare/v1.4.14...v2.2.6 + +------------------------------------------------------------------- +Wed May 26 06:36:52 UTC 2021 - pgajdos@suse.com + +- %check: use %pytest macro + ------------------------------------------------------------------- Mon May 25 10:59:23 UTC 2020 - Petr Gajdos diff --git a/python-identify.spec b/python-identify.spec index a77091a..958644c 100644 --- a/python-identify.spec +++ b/python-identify.spec @@ -1,7 +1,7 @@ # # spec file for package python-identify # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-identify -Version: 1.4.14 +Version: 2.2.10 Release: 0 Summary: File identification library for Python License: MIT @@ -26,13 +26,13 @@ Group: Development/Languages/Python URL: https://github.com/chriskuehl/identify Source: https://github.com/chriskuehl/identify/archive/v%{version}.tar.gz#/identify-%{version}.tar.gz BuildRequires: %{python_module editdistance} -BuildRequires: %{python_module pytest-runner} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-setuptools Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(postun):update-alternatives Suggests: python-editdistance BuildArch: noarch %python_subpackages @@ -42,6 +42,9 @@ File identification library for Python, including license file SPDX identifier. %prep %setup -q -n identify-%{version} +# stick with editdistance as it generally has more functionality +sed -i 's/editdistance_s.distance/editdistance.eval/' identify/identify.py +sed -i 's/editdistance_s/editdistance/' identify/identify.py %build %python_build @@ -52,7 +55,7 @@ File identification library for Python, including license file SPDX identifier. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec setup.py pytest +%pytest %post %python_install_alternative identify-cli