Commit graph

17 commits

Author SHA1 Message Date
wiz
bb579283d0 *: bump PKGREVISION for egg.mk users
They now have a tool dependency on py-setuptools instead of a DEPENDS
2022-01-04 20:53:26 +00:00
nia
d75334de07 sysutils: Replace RMD160 checksums with BLAKE2s checksums
All checksums have been double-checked against existing RMD160 and
SHA512 hashes
2021-10-26 11:19:17 +00:00
nia
67e36f8dd3 sysutils: Remove SHA1 hashes for distfiles 2021-10-07 14:57:31 +00:00
js
7feee1bb1f Make sysutils/py-magic work in a chroot again
I have no idea why this patch was dropped, but dropping it broke things...
2021-09-14 20:23:04 +00:00
adam
ba21efe9a7 py-magic: updated to 0.4.24
Changes to 0.4.24:
- Fix regression in library loading on some Alpine docker images.
2021-06-07 08:22:17 +00:00
khorben
2c2a7fe16c py-magic: update to version 0.4.23
From the CHANGELOG:

- Include a `py.typed` sentinal to enable type checking
- Improve fix for attribute error during destruction
- Cleanup library loading logic
- Add new homebrew library dir for OSX

Tested on NetBSD/amd64.
2021-06-02 22:13:50 +00:00
adam
e54e0ab6ae py-magic: updated to 0.4.22
Changes to 0.4.21, 0.4.22

 - Unify dll loader between the standard and compat library, fixing load
 failures on some previously supported platforms.

Changes to 0.4.20

- merge in a compatability layer for the upstream libmagic python binding.
  Since both this package and that one are called 'magic', this compat layer
  removes a very common source of runtime errors.  Use of that libmagic API will
  produce a deprecation warning.

- support python 3.9 in tests and pypi metadata

- add support for magic_descriptor functions, which take a file descriptor
  rather than a filename.

- sometimes the returned description includes snippets of the file, e.g a title
  for MS Word docs.  Since this is in an unknown encoding, we would throw a
  unicode decode error trying to decode.  Now, it decodes with
  'backslashreplace' to handle this more gracefully.  The undecodable characters
  are replaced with hex escapes.

- add support for MAGIC_EXTENSION, to return possible file extensions.

- add mypy typing stubs file, for type checking
2021-02-18 12:29:54 +00:00
js
64eeab708a Make sysutils/py-magic work in a chroot on NetBSD 2020-10-04 18:15:43 +00:00
adam
1ddfe1c85c 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
2020-05-08 13:57:19 +00:00
khorben
62dd6c6dfd Register missing dependency on sysutils/file
This will fix functionality of this package if libmagic is not available.

Bump PKGREVISION for those platforms where it is the case (NFC otherwise).

Tested on NetBSD/amd64.

Thanks richard@ for the heads up.
2018-03-29 21:18:01 +00:00
adam
820ee55a91 py-magic: updated to 0.4.15
0.4.15:
Bug fixes.
2018-01-14 08:27:51 +00:00
adam
f70b756131 sysutils/py-magic: update to 0.4.13
Changes 0.4.13:
add testdata to sdist
2017-09-12 14:40:51 +00:00
wiz
5d86518619 Switch github HOMEPAGEs to https. 2017-07-30 22:32:10 +00:00
wiz
57199de455 Switch to MASTER_SITES_PYPI. 2016-06-08 17:43:20 +00:00
agc
17886c78da Add SHA512 digests for distfiles for sysutils category
Problems found with existing digests:
	Package memconf distfile memconf-2.16/memconf.gz
	b6f4b736cac388dddc5070670351cf7262aba048 [recorded]
	95748686a5ad8144232f4d4abc9bf052721a196f [calculated]

Problems found locating distfiles:
	Package dc-tools: missing distfile dc-tools/abs0-dc-burn-netbsd-1.5-0-gae55ec9
	Package ipw-firmware: missing distfile ipw2100-fw-1.2.tgz
	Package iwi-firmware: missing distfile ipw2200-fw-2.3.tgz
	Package nvnet: missing distfile nvnet-netbsd-src-20050620.tgz
	Package syslog-ng: missing distfile syslog-ng-3.7.2.tar.gz

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.
2015-11-04 01:32:05 +00:00
wiz
3ec156f142 Improve EGG_NAME default to work for packages with '-' in their name.
Remove now unnecessary overrides in various packages.
2014-12-31 13:57:25 +00:00
rodent
951a287709 Import py27-magic-0.4.6 as sysutils/py-magic.
This module uses ctypes to access the libmagic file type identification
library. It makes use of the local magic database and supports both textual and
MIME-type output.
2014-06-02 00:12:59 +00:00