[Debian-med-packaging] Bug#819016: jellyfish: Rename python bindings module name

Diego M. Rodriguez diego.plan9 at gmail.com
Tue Mar 22 22:19:15 UTC 2016


Source: jellyfish
Severity: wishlist

Dear Maintainer,

after a discussion with Andreas Tille [1], I'm wondering if it would be
possible to rename the python module of the python bindings from
"jellyfish" to "dna_jellyfish", in order to avoid conflicts with an
existing PyPI [2] package, which is also in the process of being
packaged into Debian [3].

A short background on the nature of this change (more details can be
found following he linked discussions, and I'd be happy to provide more
specific pointers if needed), according to my understanding:
* both packages define a "jellyfish" module.
* a consensus in regards to the package names and the module names has
been seeked with moderate results (the most likely being that the
current DNA-jellyfish bindings should retain the "python-jellyfish"
Debian package name, but the actual Python module should be renamed).
* the upstream DNA-jellyfish author has already expressed his
willingness to rename the Python module [4] as it is still not too
widespread, although unfortunately it seems that there has not been too
much movement in this regard in the upstream repository yet.

I'm attaching two patches that would therefore solve this issue on the
Debian end, hoping we can eventually tackle the issue at the upstream
level. As for the new name, the patch uses "dna_jellyfish" since it was
the first alternative suggested by upstream - I'd be happy to switch to
another name if preferred.

Both patches are the output of plain "git diff" against the patched
Debian sources:
rename-python-module-to-dna_jellyfish.patch:
* setup.py: invokes swig using the "-module" argument [5]
* setup.py: renames the Extension and the package name, and updates the
  older check to reference the new filename.
* test_*.py: replaces the references to the "jellyfish" module with
  "dna_jellyfish".

update-debian-rules-dh_clean.patch:
* debian/rules: updates override_dh_clean to remove the swig generated
  .py file.

I still need to do another round to ensure no further changes are
needed: in particular, I still have to confirm that the python tests
are actually executed (debuild output):

---
make  check-TESTS
...
SKIP: tests/swig_python.sh
...
running install_egg_info
Writing /tmp/buildd/jellyfish-2.2.5/debian/python3-jellyfish/usr/lib/python3.5/dist-packages/dna_jellyfish-0.0.1.egg-in
fo
I: pybuild base:184: cd /tmp/buildd/jellyfish-2.2.5/.pybuild/pythonX.Y_3.5/build; python3.5 -m unittest discover -v 

----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK
...
---

The same "SKIP: tests/swig_python.sh" and "Ran 0 tests ..." lines also
seem to be present on the current 2.2.5-1 debuild log, so it might not
be an issue after all and a result of me not having gone through all
the details about the testing yet.

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=806716#79
[2] https://pypi.python.org/pypi/jellyfish
[3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=806716
[4] https://lists.debian.org/debian-python/2015/12/msg00107.html
[5] http://www.swig.org/Doc3.0/SWIGDocumentation.html#SWIG_nn2

-- 
Diego M. Rodriguez
36B3 42A9 9F2F 2CFB F79B  FF9B B6C4 B901 06BC E232

-------------- next part --------------
A non-text attachment was scrubbed...
Name: rename-python-module-to-dna_jellyfish.patch
Type: text/x-diff
Size: 5630 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-med-packaging/attachments/20160322/d7f6e732/attachment-0002.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: update-debian-rules-dh_clean.patch
Type: text/x-diff
Size: 364 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-med-packaging/attachments/20160322/d7f6e732/attachment-0003.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/debian-med-packaging/attachments/20160322/d7f6e732/attachment-0001.sig>


More information about the Debian-med-packaging mailing list