forked from pool/python-identify
Accepting request 901746 from devel:languages:python
- update to 2.2.10 * add few file formats * detect WORKSPACE files as bazel - stick with older editdistance as it has more functionality - 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 - %check: use %pytest macro OBS-URL: https://build.opensuse.org/request/show/901746 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-identify?expand=0&rev=8
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d5d5b8ec3763492106c8f985322aa2a98bbb1f240df759afa38fd85c8e205408
|
||||
size 99227
|
||||
3
identify-2.2.10.tar.gz
Normal file
3
identify-2.2.10.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:91e1490b8fe459c3595bdfb299b7ef28bfdf3db54fa75f28ac64e96f5cf67435
|
||||
size 101073
|
||||
@@ -1,3 +1,23 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 24 12:31:47 UTC 2021 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- 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 <pgajdos@suse.com>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user