Fix missing python-magic dependency #435

Merged
merged 1 commit into from Jun 15, 2016

Conversation

Projects
None yet
4 participants

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Collaborator

sergiusens commented Apr 11, 2016

Is it called python-magic on pypi?

Contributor

fallen commented Apr 11, 2016

Maybe I should rewrite the commit and sort the dependencies by alphabetical order?

Contributor

fallen commented Apr 11, 2016

Ah, I just noticed there is also https://pypi.python.org/pypi/filemagic ... both seem to implement a magic package interfacing with libmagic ...

Collaborator

sergiusens commented Apr 11, 2016

El 11/04/16 a las 12:21, Yann Sionneau escribió:

Ah, I just noticed there is also https://pypi.python.org/pypi/filemagic
... both seem to implement a magic package interfacing with libmagic ...
Exactly, make sure you get the correct one ;-)

Member

kyrofa commented Apr 11, 2016

@fallen thanks for the contribution! Please also take a look at the contribution guide. Please make sure you've signed the CLA, and also make sure you reference the bug within the commit itself.

Contributor

fallen commented Apr 11, 2016

oh, and a 3rd one : https://pypi.python.org/pypi/file-magic

Anyway, in your commit ( 4a5de24 ) you tell to install via pip "file-magic" but in the debian/control you add the python-magic dependency. So there is already a consistency issue.

Maybe we should switch everything to python-magic because it's the most recent one and the most downloaded one on pypi?
Any other idea?

Contributor

fallen commented Apr 11, 2016

@kyrofa Thanks for the reminder! When I'll rewrite the commit I'll add the missing LP line.
But yes, I've signed the CLA and I've been added to the corresponding launchpad group :)

Member

kyrofa commented Apr 11, 2016

@fallen please make sure you commit using an email address associated with your LP account then, so we can verify (your current one is not 😃).

Contributor

fallen commented Apr 11, 2016

@kyrofa Thanks, it should be OK now I've just added some missing email addresses on my launchpad account :)

Member

kyrofa commented Apr 11, 2016

@fallen perfect, thanks! CLA verified.

Collaborator

sergiusens commented May 27, 2016

Sorry for taking so long, this got lost from my radar.

By looking at

$ apt show python3-magic 
Package: python3-magic
Version: 1:5.25-2ubuntu1
Priority: extra
Section: python
Source: file
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Christoph Biedl <debian.axhn@manchmal.in-ulm.de>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 54.3 kB
Depends: python3:any (>= 3.3.2-2~), libmagic1 (>= 1:5.25-2ubuntu1), libmagic1 (<< 1:5.25-2ubuntu1.1~)
Homepage: http://www.darwinsys.com/file/
Task: ubuntu-sdk
Supported: 5y
Download-Size: 5,438 B
APT-Manual-Installed: no
APT-Sources: http://ubuntu.unc.edu.ar/ubuntu xenial/main amd64 Packages
Description: File type determination library using "magic" numbers (Python 3 bindings)
 This library can be used to classify files according to magic
 number tests. It implements the core functionality of the file
 command.
 .
 This package contains the Python 3 bindings.

It seems that the correct dependency to use is https://pypi.python.org/pypi/file-magic

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Collaborator

sergiusens commented May 27, 2016

ok to test

Contributor

fallen commented Jun 8, 2016

Can someone merge this?
Or maybe merge this one instead ubuntu-core#550 ?

@sergiusens sergiusens merged commit 923975c into snapcore:master Jun 15, 2016

3 of 4 checks passed

autopkgtest
Details
Examples tests Success
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
coverage/coveralls Coverage increased (+0.01%) to 95.966%
Details

kalikiana pushed a commit to kalikiana/snapcraft that referenced this pull request Apr 6, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment