summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2020-05-08 13:57:19 +0000
committeradam <adam@pkgsrc.org>2020-05-08 13:57:19 +0000
commitc064546f552662e178bc49d40afded72f453e11e (patch)
treebda9f0d1d58b814e27d43db4f62db3a1beeb2554 /sysutils
parent76dbde1df5a1f2b7245902a5f91afafe3460c0e7 (diff)
downloadpkgsrc-c064546f552662e178bc49d40afded72f453e11e.tar.gz
py-magic: updated to 0.4.18
Changes in 0.4.18 - Make bindings for magic_[set|get]param optional, and throw NotImplementedError if they are used but not supported. Only call setparam() in the constructor if it's supported. This prevents breakage on CentOS7 which uses an old version of libmagic. - Add tests for CentOS 7 & 8 Changes in 0.4.16 and 0.4.17 - add MAGIC_MIME_TYPE constant, use that in preference to MAGIC_MIME internally. This sets up for a breaking change in a future major version bump where MAGIC_MIME will change to mathch magic.h. - add magic.version() function to return library version - add setparam/getparam to control internal behavior - increase internal limits with setparam to prevent spurious error on some jpeg files - various setup.py improvements to declare modern python support - support MSYS2 magic dlls - fix warning about using 'is' on an int in python 3.8 - include tests in source distribution - many test improvements: -- tox runner support -- remove deprecated test_suite field from setup.py -- docker tests that cover all LTS ubuntu versions -- add test for snapp file identification - doc improvements -- document dependency install process for debian -- various typos -- document test running process
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/py-magic/Makefile8
-rw-r--r--sysutils/py-magic/PLIST8
-rw-r--r--sysutils/py-magic/distinfo10
3 files changed, 13 insertions, 13 deletions
diff --git a/sysutils/py-magic/Makefile b/sysutils/py-magic/Makefile
index a7206803204..31d894ad909 100644
--- a/sysutils/py-magic/Makefile
+++ b/sysutils/py-magic/Makefile
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.7 2018/03/29 21:18:01 khorben Exp $
+# $NetBSD: Makefile,v 1.8 2020/05/08 13:57:19 adam Exp $
-DISTNAME= python-magic-0.4.15
+DISTNAME= python-magic-0.4.18
PKGNAME= ${DISTNAME:S/python/${PYPKGPREFIX}/1}
-PKGREVISION= 1
CATEGORIES= sysutils python
MASTER_SITES= ${MASTER_SITE_PYPI:=p/python-magic/}
@@ -11,8 +10,9 @@ HOMEPAGE= https://github.com/ahupp/python-magic
COMMENT= File type identification using libmagic
LICENSE= mit
+DEPENDS+= file-[0-9]*:../../sysutils/file
+
USE_LANGUAGES= # none
.include "../../lang/python/egg.mk"
-.include "../../sysutils/file/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/sysutils/py-magic/PLIST b/sysutils/py-magic/PLIST
index bd4c58464f9..4c990f779ca 100644
--- a/sysutils/py-magic/PLIST
+++ b/sysutils/py-magic/PLIST
@@ -1,8 +1,8 @@
-@comment $NetBSD: PLIST,v 1.1 2014/06/02 00:12:59 rodent Exp $
-${PYSITELIB}/magic.py
-${PYSITELIB}/magic.pyc
-${PYSITELIB}/magic.pyo
+@comment $NetBSD: PLIST,v 1.2 2020/05/08 13:57:19 adam Exp $
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/magic.py
+${PYSITELIB}/magic.pyc
+${PYSITELIB}/magic.pyo
diff --git a/sysutils/py-magic/distinfo b/sysutils/py-magic/distinfo
index 5a93047757f..941d188a936 100644
--- a/sysutils/py-magic/distinfo
+++ b/sysutils/py-magic/distinfo
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.4 2018/01/14 08:27:52 adam Exp $
+$NetBSD: distinfo,v 1.5 2020/05/08 13:57:19 adam Exp $
-SHA1 (python-magic-0.4.15.tar.gz) = fc69c0d4eef064d585095ee975d3ba089124c1f4
-RMD160 (python-magic-0.4.15.tar.gz) = ad4925d65a20c56ff8696070ac7afdd824989c29
-SHA512 (python-magic-0.4.15.tar.gz) = df028669209e02cde06f4db0481d84c316cefc191273ab3c749e88a23c92cb79a703077f601a0cc194fccbbcf62b38de8bab79290827a8505bc06e2f4aa0c2bb
-Size (python-magic-0.4.15.tar.gz) = 73194 bytes
+SHA1 (python-magic-0.4.18.tar.gz) = b48c84ef096baaf10b4f7cb3792ef8328c946c81
+RMD160 (python-magic-0.4.18.tar.gz) = 54bd572566e60eec7e8b2652ecc6d287ff300d56
+SHA512 (python-magic-0.4.18.tar.gz) = 18c4d75bc762d44f42c44bb52b999930ea570d2dd11d7cb840807e372806dc14164e1b3ea0acb23ccd692177a1a683d4537b01675bc57f06334bcc0f40520e6c
+Size (python-magic-0.4.18.tar.gz) = 11442 bytes