Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #874019
| From | Christoph Biedl <debian.axhn@manchmal.in-ulm.de> |
|---|---|
| Newsgroups | linux.debian.bugs.dist, linux.debian.maint.python |
| Subject | Bug#877849: [tryton-debian] Namespace conflict for python-magic |
| Date | 2018-01-08 12:00 +0100 |
| Message-ID | <v5Daa-4Gb-3@gated-at.bofh.it> (permalink) |
| References | (7 earlier) <uFcff-3CO-3@gated-at.bofh.it> <uxusF-65m-1@gated-at.bofh.it> <uT5dT-VH-5@gated-at.bofh.it> <uxusF-65m-1@gated-at.bofh.it> <uT5dT-VH-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Cross-posted to 2 groups.
[Multipart message — attachments visible in raw view] - view raw
Adam Hupp wrote...
> I've pushed an update here:
>
> https://github.com/ahupp/python-magic/tree/libmagic-compat
>
> It includes a copy of libmagic's bindings, wrapped in deprecation
> warnings. So apps should work regardless of which they depend on.
> Could you take a look and see if this works for your case?
There are two glitches, you got mails in private about these.
Doing a first round of tests showed regressions so far.
Hence, here is a preliminary packaging of python-magic for Debian:
https://www.in-ulm.de/~cbiedl/debian/python-magic/python-magic_0.4.15-1~exp1.dsc
Debianites, please give it a try.
About the deprecation warning: I figured out right now (at least for
Debian) it would mostly scare users. Once Christos acknowledges your
work (hopefully) and deprecates the [file] python-magic implementation,
it's about time to alert authors of programs that use python-magic but
no earlier.
Therefore I created a switch that mutes that warning unless a
PYTHONMAGIC_WARN_DEPRECATED environment variable is set, patch below.
Using this switch, users can already test whether a particular
application needs an adjustment for the [pypi] API.
At least in Debian, I expect this transition to take two years anyway.
Cheers,
Christoph
Back to linux.debian.bugs.dist | Previous | Next — Next in thread | Find similar | Unroll thread
Bug#877849: [tryton-debian] Namespace conflict for python-magic Christoph Biedl <debian.axhn@manchmal.in-ulm.de> - 2018-01-08 12:00 +0100
Bug#877849: [tryton-debian] Namespace conflict for python-magic Christoph Biedl <debian.axhn@manchmal.in-ulm.de> - 2018-01-08 13:30 +0100
Bug#877849: [tryton-debian] Namespace conflict for python-magic Adam Hupp <adam@hupp.org> - 2018-01-15 07:50 +0100
Bug#877849: [tryton-debian] Namespace conflict for python-magic Christoph Biedl <debian.axhn@manchmal.in-ulm.de> - 2018-01-16 20:20 +0100
Bug#877849: [tryton-debian] Namespace conflict for python-magic Christoph Biedl <debian.axhn@manchmal.in-ulm.de> - 2018-01-16 20:50 +0100
Bug#877849: [tryton-debian] Namespace conflict for python-magic Christoph Biedl <debian.axhn@manchmal.in-ulm.de> - 2018-01-14 21:40 +0100
Bug#877849: [tryton-debian] Namespace conflict for python-magic Mathias Behrle <mbehrle@debian.org> - 2018-01-14 23:10 +0100
Bug#877849: [tryton-debian] Namespace conflict for python-magic Christoph Biedl <debian.axhn@manchmal.in-ulm.de> - 2018-01-15 09:40 +0100
Bug#877849: [tryton-debian] Bug#877849: Namespace conflict for python-magic Mathias Behrle <mbehrle@debian.org> - 2018-01-19 19:10 +0100
csiph-web