Hello community,
here is the log from the commit of package python-identify for openSUSE:Factory
checked in at 2020-04-09 23:18:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-identify (Old)
and /work/SRC/openSUSE:Factory/.python-identify.new.3248 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-identify"
Thu Apr 9 23:18:13 2020 rev:6 rq:792734 version:1.4.14
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-identify/python-identify.changes
2019-09-13 14:59:54.417281275 +0200
+++
/work/SRC/openSUSE:Factory/.python-identify.new.3248/python-identify.changes
2020-04-09 23:18:43.250357782 +0200
@@ -1,0 +2,12 @@
+Thu Apr 9 13:05:29 UTC 2020 - Marketa Calabkova <[email protected]>
+
+- Update to 1.4.14
+ * Handle malformed shebangs
+ * Add Bazel, Scheme and Idris filetypes
+ * Plantuml; .puml suffix
+ * Recognize .pm as perl
+ * Add some common rcfiles to the list
+ * fix: add 'image' tag for SVG files
+ * feat: add adoc/asciidoc file extension
+
+-------------------------------------------------------------------
Old:
----
identify-1.4.7.tar.gz
New:
----
identify-1.4.14.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-identify.spec ++++++
--- /var/tmp/diff_new_pack.P6hYGM/_old 2020-04-09 23:18:44.414358455 +0200
+++ /var/tmp/diff_new_pack.P6hYGM/_new 2020-04-09 23:18:44.418358457 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-identify
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 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.7
+Version: 1.4.14
Release: 0
Summary: File identification library for Python
License: MIT
++++++ identify-1.4.7.tar.gz -> identify-1.4.14.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/identify-1.4.7/README.md
new/identify-1.4.14/README.md
--- old/identify-1.4.7/README.md 2019-08-27 15:51:13.000000000 +0200
+++ new/identify-1.4.14/README.md 2020-04-03 23:34:39.000000000 +0200
@@ -10,6 +10,9 @@
Given a file (or some information about a file), return a set of standardized
tags identifying what the file is.
+## Installation
+
+`pip install identify`
## Usage
### With a file on disk
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/identify-1.4.7/identify/extensions.py
new/identify-1.4.14/identify/extensions.py
--- old/identify-1.4.7/identify/extensions.py 2019-08-27 15:51:13.000000000
+0200
+++ new/identify-1.4.14/identify/extensions.py 2020-04-03 23:34:39.000000000
+0200
@@ -4,6 +4,8 @@
EXTENSIONS = {
+ 'adoc': {'text', 'asciidoc'},
+ 'asciidoc': {'text', 'asciidoc'},
'apinotes': {'text', 'apinotes'},
'asar': {'binary', 'asar'},
'bash': {'text', 'shell', 'bash'},
@@ -57,6 +59,7 @@
'ico': {'binary', 'icon'},
'ics': {'text', 'icalendar'},
'idl': {'text', 'idl'},
+ 'idr': {'text', 'idris'},
'inc': {'text', 'inc'},
'ini': {'text', 'ini'},
'j2': {'text', 'jinja'},
@@ -76,6 +79,7 @@
'kml': {'text', 'kml', 'xml'},
'kt': {'text', 'kotlin'},
'less': {'text', 'less'},
+ 'lidr': {'text', 'idris'},
'lua': {'text', 'lua'},
'm': {'text', 'c', 'objective-c'},
'manifest': {'text', 'manifest'},
@@ -102,11 +106,13 @@
'phtml': {'text', 'php'},
'pl': {'text', 'perl'},
'plantuml': {'text', 'plantuml'},
+ 'pm': {'text', 'perl'},
'png': {'binary', 'image', 'png'},
'po': {'text', 'pofile'},
'pp': {'text', 'puppet'},
'properties': {'text', 'java-properties'},
'proto': {'text', 'proto'},
+ 'puml': {'text', 'plantuml'},
'purs': {'text', 'purescript'},
'py': {'text', 'python'},
'pyi': {'text', 'pyi'},
@@ -122,14 +128,16 @@
'sc': {'text', 'scala'},
'scala': {'text', 'scala'},
'scss': {'text', 'scss'},
+ 'scm': {'text', 'scheme'},
'sh': {'text', 'shell'},
'sls': {'text', 'salt'},
'so': {'binary'},
'sol': {'text', 'solidity'},
'spec': {'text', 'spec'},
+ 'ss': {'text', 'scheme'},
'styl': {'text', 'stylus'},
'sql': {'text', 'sql'},
- 'svg': {'text', 'svg'},
+ 'svg': {'text', 'image', 'svg'},
'swf': {'binary', 'swf'},
'swift': {'text', 'swift'},
'swiftdeps': {'text', 'swiftdeps'},
@@ -176,20 +184,30 @@
}
NAMES = {
- '.babelrc': {'text', 'json', 'babelrc'},
- '.bowerrc': {'text', 'json', 'bowerrc'},
- '.coveragerc': {'text', 'ini', 'coveragerc'},
+ '.babelrc': EXTENSIONS['json'] | {'babelrc'},
+ '.bashrc': EXTENSIONS['bash'],
+ '.bash_aliases': EXTENSIONS['bash'],
+ '.bash_profile': EXTENSIONS['bash'],
+ '.bowerrc': EXTENSIONS['json'] | {'bowerrc'},
+ '.coveragerc': EXTENSIONS['ini'] | {'coveragerc'},
'.dockerignore': {'text', 'dockerignore'},
'.editorconfig': {'text', 'editorconfig'},
+ '.gitconfig': EXTENSIONS['ini'] | {'gitconfig'},
+ '.hgrc': EXTENSIONS['ini'] | {'hgrc'},
'.gitattributes': {'text', 'gitattributes'},
'.gitignore': {'text', 'gitignore'},
'.gitmodules': {'text', 'gitmodules'},
- '.jshintrc': {'text', 'json', 'jshintrc'},
+ '.jshintrc': EXTENSIONS['json'] | {'jshintrc'},
'.mailmap': {'text', 'mailmap'},
- '.mention-bot': {'text', 'json', 'mention-bot'},
+ '.mention-bot': EXTENSIONS['json'] | {'mention-bot'},
'.npmignore': {'text', 'npmignore'},
- '.yamllint': {'text', 'yaml', 'yamllint'},
+ '.pdbrc': EXTENSIONS['py'] | {'pdbrc'},
+ '.pypirc': EXTENSIONS['ini'] | {'pypirc'},
+ '.yamllint': EXTENSIONS['yaml'] | {'yamllint'},
+ '.zshrc': EXTENSIONS['zsh'],
'AUTHORS': EXTENSIONS['txt'],
+ 'BUILD.bazel': {'text', 'bazel'},
+ 'BUILD': {'text', 'bazel'},
'CMakeLists.txt': EXTENSIONS['cmake'],
'COPYING': EXTENSIONS['txt'],
'Dockerfile': {'text', 'dockerfile'},
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/identify-1.4.7/identify/identify.py
new/identify-1.4.14/identify/identify.py
--- old/identify-1.4.7/identify/identify.py 2019-08-27 15:51:13.000000000
+0200
+++ new/identify-1.4.14/identify/identify.py 2020-04-03 23:34:39.000000000
+0200
@@ -157,7 +157,7 @@
return ()
cmd = tuple(_shebang_split(first_line.strip()))
- if cmd[0] == '/usr/bin/env':
+ if cmd and cmd[0] == '/usr/bin/env':
cmd = cmd[1:]
return cmd
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/identify-1.4.7/setup.cfg
new/identify-1.4.14/setup.cfg
--- old/identify-1.4.7/setup.cfg 2019-08-27 15:51:13.000000000 +0200
+++ new/identify-1.4.14/setup.cfg 2020-04-03 23:34:39.000000000 +0200
@@ -1,6 +1,6 @@
[metadata]
name = identify
-version = 1.4.7
+version = 1.4.14
description = File identification library for Python
long_description = file: README.md
long_description_content_type = text/markdown
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/identify-1.4.7/tests/identify_test.py
new/identify-1.4.14/tests/identify_test.py
--- old/identify-1.4.7/tests/identify_test.py 2019-08-27 15:51:13.000000000
+0200
+++ new/identify-1.4.14/tests/identify_test.py 2020-04-03 23:34:39.000000000
+0200
@@ -54,6 +54,15 @@
}
+def test_tags_from_path_file_with_incomplete_shebang(tmpdir):
+ x = tmpdir.join('test')
+ x.write_text('#! \n', encoding='UTF-8')
+ make_executable(x.strpath)
+ assert identify.tags_from_path(x.strpath) == {
+ 'file', 'text', 'executable',
+ }
+
+
def test_tags_from_path_file_with_shebang_non_executable(tmpdir):
x = tmpdir.join('test')
x.write_text('#!/usr/bin/env python\nimport sys\n', encoding='UTF-8')