Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/py-magic py-magic: updated to 0.4.18



details:   https://anonhg.NetBSD.org/pkgsrc/rev/62915800a401
branches:  trunk
changeset: 431049:62915800a401
user:      adam <adam%pkgsrc.org@localhost>
date:      Fri May 08 13:57:19 2020 +0000

description:
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:

 sysutils/py-magic/Makefile |   8 ++++----
 sysutils/py-magic/PLIST    |   8 ++++----
 sysutils/py-magic/distinfo |  10 +++++-----
 3 files changed, 13 insertions(+), 13 deletions(-)

diffs (56 lines):

diff -r 449ee8472022 -r 62915800a401 sysutils/py-magic/Makefile
--- a/sysutils/py-magic/Makefile        Fri May 08 13:54:06 2020 +0000
+++ b/sysutils/py-magic/Makefile        Fri May 08 13:57:19 2020 +0000
@@ -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 @@
 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 -r 449ee8472022 -r 62915800a401 sysutils/py-magic/PLIST
--- a/sysutils/py-magic/PLIST   Fri May 08 13:54:06 2020 +0000
+++ b/sysutils/py-magic/PLIST   Fri May 08 13:57:19 2020 +0000
@@ -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 -r 449ee8472022 -r 62915800a401 sysutils/py-magic/distinfo
--- a/sysutils/py-magic/distinfo        Fri May 08 13:54:06 2020 +0000
+++ b/sysutils/py-magic/distinfo        Fri May 08 13:57:19 2020 +0000
@@ -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



Home | Main Index | Thread Index | Old Index