17
0

Compare commits

18 Commits

Author SHA256 Message Date
233c83b2e1 Accepting request 1299082 from devel:languages:python
- migrate to libalternatives
- Update to 2.6.13
  * Added C++ 'ipp' and 'tpp' file extensions

OBS-URL: https://build.opensuse.org/request/show/1299082
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-identify?expand=0&rev=22
2025-08-13 14:29:33 +00:00
949cf4b75b - migrate to libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-identify?expand=0&rev=46
2025-08-12 13:49:13 +00:00
860abe633a Accepting request 1299061 from home:glaubitz:branches:devel:languages:python
- Update to 2.6.13
  * Added C++ 'ipp' and 'tpp' file extensions

OBS-URL: https://build.opensuse.org/request/show/1299061
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-identify?expand=0&rev=45
2025-08-12 13:43:38 +00:00
17eb57b4b7 Accepting request 1282362 from devel:languages:python
Forwarded request #1282169 from glaubitz

- Update to 2.6.12
    * Identify common MSBuild files
    * Drop ambiguous .proj extension
  - from version 2.6.11
    * Add support for `.sqlfluff`
    * Identify XSLT files

OBS-URL: https://build.opensuse.org/request/show/1282362
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-identify?expand=0&rev=21
2025-06-03 17:10:47 +00:00
c704a05bb5 Accepting request 1282169 from home:glaubitz:branches:devel:languages:python
- Update to 2.6.12
  * Identify common MSBuild files
  * Drop ambiguous .proj extension
- from version 2.6.11
  * Add support for `.sqlfluff`
  * Identify XSLT files

OBS-URL: https://build.opensuse.org/request/show/1282169
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-identify?expand=0&rev=43
2025-06-03 14:04:33 +00:00
8679e5f35f Accepting request 1273196 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1273196
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-identify?expand=0&rev=20
2025-04-29 14:40:16 +00:00
37ab39dc85 Accepting request 1273189 from home:mcalabkova:branches:devel:languages:python
- Update to 2.6.10
  * Add support for Magik
- Convert to pyproject macros

OBS-URL: https://build.opensuse.org/request/show/1273189
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-identify?expand=0&rev=41
2025-04-28 15:44:55 +00:00
9ccc56d775 Accepting request 1266174 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1266174
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-identify?expand=0&rev=19
2025-04-02 15:14:16 +00:00
3ca0649814 Accepting request 1266134 from home:glaubitz:branches:devel:languages:python
- Update to 2.6.9
  * Revert "add uv to interpreters list"

OBS-URL: https://build.opensuse.org/request/show/1266134
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-identify?expand=0&rev=39
2025-04-01 13:18:09 +00:00
dfdc1eb4a6 Accepting request 1248170 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1248170
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-identify?expand=0&rev=18
2025-02-25 15:47:10 +00:00
12a1686a2e Accepting request 1248149 from home:glaubitz:branches:devel:languages:python
- Update to 2.6.8
  * [pre-commit.ci] pre-commit autoupdate
  * feat: Register sas as an extension
  * extensions: Introduce wsdl

OBS-URL: https://build.opensuse.org/request/show/1248149
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-identify?expand=0&rev=37
2025-02-24 14:30:29 +00:00
1537dcfc37 Accepting request 1245094 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1245094
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-identify?expand=0&rev=17
2025-02-11 20:30:43 +00:00
ea75d8efd8 Accepting request 1245046 from home:glaubitz:branches:devel:languages:python
- Update to 2.6.7
  * [pre-commit.ci] pre-commit autoupdate
  * Upgrade asottile/workflows
  * Add `.templ` extension
  * Add uv to interpreters list

OBS-URL: https://build.opensuse.org/request/show/1245046
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-identify?expand=0&rev=35
2025-02-11 12:45:08 +00:00
978d489799 Accepting request 1243101 from home:glaubitz:branches:devel:languages:python
- Update to 2.6.6
  * [pre-commit.ci] pre-commit autoupdate
  * Add '.asm' file extension as 'asm' filetype
- from version 2.6.5
  * feat: identify .psm1 and .psd1 files as powershell
- from version 2.6.4
  * feat: identify gleam files
  * feat: identify bz3 files as bzip3 archives
  * [pre-commit.ci] pre-commit autoupdate
  * Add Tiltfile support

OBS-URL: https://build.opensuse.org/request/show/1243101
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-identify?expand=0&rev=34
2025-02-04 14:19:56 +00:00
8589f91e2d Accepting request 1229249 from devel:languages:python
Forwarded request #1229226 from glaubitz

- Update to 2.6.3
    * Add C# Script and F# Source and Script filetypes
    * Add bitbake extensions and files
    * feat: identify direnv files as Bash

OBS-URL: https://build.opensuse.org/request/show/1229249
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-identify?expand=0&rev=16
2024-12-09 20:12:34 +00:00
60631c6cc5 Accepting request 1229226 from home:glaubitz:branches:devel:languages:python
- Update to 2.6.3
  * Add C# Script and F# Source and Script filetypes
  * Add bitbake extensions and files
  * feat: identify direnv files as Bash

OBS-URL: https://build.opensuse.org/request/show/1229226
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-identify?expand=0&rev=32
2024-12-09 08:57:58 +00:00
f735853760 Accepting request 1223988 from devel:languages:python
- update to 2.6.2:
  * Fix IndexError when shebang is just '#!/usr/bin/env'
  * Add ejson extension

OBS-URL: https://build.opensuse.org/request/show/1223988
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-identify?expand=0&rev=15
2024-11-14 15:08:54 +00:00
5927976401 - update to 2.6.2:
* Fix IndexError when shebang is just '#!/usr/bin/env'
  * Add ejson extension

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-identify?expand=0&rev=30
2024-11-13 15:09:29 +00:00
4 changed files with 104 additions and 8 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:429f6289a5d53d0e9728e348dc3b92087590e6480ca6b0197adda471a7117a51
size 101732

3
identify-2.6.13.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:93a51afb4721ebbcc46045af64e26b063fd691cfb966b26c21999e028eeeb12e
size 101964

View File

@@ -1,3 +1,83 @@
-------------------------------------------------------------------
Tue Aug 12 13:48:11 UTC 2025 - Nico Krapp <nico.krapp@suse.com>
- migrate to libalternatives
-------------------------------------------------------------------
Tue Aug 12 12:39:47 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 2.6.13
* Added C++ 'ipp' and 'tpp' file extensions
-------------------------------------------------------------------
Tue Jun 3 07:34:40 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 2.6.12
* Identify common MSBuild files
* Drop ambiguous .proj extension
- from version 2.6.11
* Add support for `.sqlfluff`
* Identify XSLT files
-------------------------------------------------------------------
Mon Apr 28 15:06:47 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Update to 2.6.10
* Add support for Magik
- Convert to pyproject macros
-------------------------------------------------------------------
Tue Apr 1 12:18:10 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 2.6.9
* Revert "add uv to interpreters list"
-------------------------------------------------------------------
Mon Feb 24 13:34:03 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 2.6.8
* [pre-commit.ci] pre-commit autoupdate
* feat: Register sas as an extension
* extensions: Introduce wsdl
-------------------------------------------------------------------
Tue Feb 11 09:43:51 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 2.6.7
* [pre-commit.ci] pre-commit autoupdate
* Upgrade asottile/workflows
* Add `.templ` extension
* Add uv to interpreters list
-------------------------------------------------------------------
Tue Feb 4 12:20:34 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 2.6.6
* [pre-commit.ci] pre-commit autoupdate
* Add '.asm' file extension as 'asm' filetype
- from version 2.6.5
* feat: identify .psm1 and .psd1 files as powershell
- from version 2.6.4
* feat: identify gleam files
* feat: identify bz3 files as bzip3 archives
* [pre-commit.ci] pre-commit autoupdate
* Add Tiltfile support
-------------------------------------------------------------------
Mon Dec 9 08:24:58 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 2.6.3
* Add C# Script and F# Source and Script filetypes
* Add bitbake extensions and files
* feat: identify direnv files as Bash
-------------------------------------------------------------------
Wed Nov 13 15:08:24 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 2.6.2:
* Fix IndexError when shebang is just '#!/usr/bin/env'
* Add ejson extension
-------------------------------------------------------------------
Tue May 7 20:20:50 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-identify
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,9 +16,15 @@
#
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%{?sle15_python_module_pythons}
Name: python-identify
Version: 2.5.36
Version: 2.6.13
Release: 0
Summary: File identification library for Python
License: MIT
@@ -28,12 +34,18 @@ Source: https://github.com/pre-commit/identify/archive/v%{version}.tar.g
# PATCH-FIX-OPENSUSE 0001-use-editdistance-not-ukkonen.patch -- ukkonen not packaged for opensuse now
Patch1: 0001-use-editdistance-not-ukkonen.patch
BuildRequires: %{python_module editdistance}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%if %{with libalternatives}
Requires: alts
BuildRequires: alts
%else
Requires(post): update-alternatives
Requires(postun): update-alternatives
%endif
Recommends: python-editdistance
BuildArch: noarch
%python_subpackages
@@ -46,16 +58,20 @@ File identification library for Python, including license file SPDX identifier.
%autopatch -p1
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/identify-cli
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%pre
# removing old update-alternatives entries
%python_libalternatives_reset_alternative identify-cli
%post
%python_install_alternative identify-cli
@@ -67,6 +83,6 @@ File identification library for Python, including license file SPDX identifier.
%license LICENSE
%python_alternative %{_bindir}/identify-cli
%{python_sitelib}/identify
%{python_sitelib}/identify-%{version}-*-info
%{python_sitelib}/identify-%{version}*info
%changelog