[Debian-pan-maintainers] Packaging pytango 9.2.0

Bodó-Merle Sándor Sandor.Bodo-Merle at eli-alps.hu
Mon Aug 29 21:17:55 BST 2016


Ok - i uploaded a version with the fixed build dependency (python3-six).

Also there is a preliminary version of itango:

https://mentors.debian.net/package/itango


I'm considering adding the following to the pytango package to ease transitioning:

diff --git a/debian/control b/debian/control
index cbf8fe9..57fd12e 100644
--- a/debian/control
+++ b/debian/control
@@ -41,7 +41,9 @@ Section: python
 Depends: ${shlibs:Depends},
          ${misc:Depends},
          ${python:Depends}
-Provides: ${python:Provides}
+Provides: ${python:Provides},
+          python-pytango
+Recommends: python-itango
 Description: API for the TANGO control system (Python 2)
  TANGO is an object oriented distributed control system using CORBA,
  mainly developed by the Controls Section of the ALBA Synchrotron.
@@ -67,7 +69,9 @@ Section: python
 Depends: ${shlibs:Depends},
          ${misc:Depends},
          ${python3:Depends}
-Provides: ${python3:Provides}
+Provides: ${python3:Provides},
+          python3-pytango
+Recommends: python3-itango
 Description: API for the TANGO control system (Python 3)
  TANGO is an object oriented distributed control system using CORBA,
  mainly developed by the Controls Section of the ALBA Synchrotron.

It appears that the new 'python-tango' packages needs to provide python-pytango - otherwise itango is broken. In its setup.py it is still referring to pytango - which is propageted to a debian package dependency.
And also i think a recommends itango shall be good for new installs/ugrades. Any tought?

S.

________________________________________
From: PICCA Frederic-Emmanuel <frederic-emmanuel.picca at synchrotron-soleil.fr>
Sent: Monday, August 29, 2016 9:30 PM
To: Bodó-Merle Sándor; debian-pan-maintainers at lists.alioth.debian.org
Subject: RE:Packaging pytango 9.2.0

Hello, I just built your package with sbuild and I got this error

I: pybuild base:184: cd /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build; python3.5 -m unittest discover -v
tango (unittest.loader._FailedTest) ... ERROR
======================================================================
ERROR: tango (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: tango
Traceback (most recent call last):
  File "/usr/lib/python3.5/unittest/loader.py", line 462, in _find_test_path
    package = self._get_module_from_name(name)
  File "/usr/lib/python3.5/unittest/loader.py", line 369, in _get_module_from_name
    __import__(name)
  File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/tango/__init__.py", line 181, in <module>
    from .attribute_proxy import AttributeProxy, get_attribute_proxy
  File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/tango/attribute_proxy.py", line 30, in <module>
    from .green import result, submit, get_green_mode, get_wait_default_value
  File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/tango/green.py", line 34, in <module>
    from .tango_gevent import get_global_executor as get_gevent_executor
  File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/tango/tango_gevent.py", line 16, in <module>
    import six
ImportError: No module named 'six'


----------------------------------------------------------------------
Ran 1 test in 0.001s

FAILED (errors=1)
E: pybuild pybuild:276: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build; python3.5 -m unittest discover -v
dh_auto_test: pybuild --test -i python{version} -p 3.5 returned exit code 13
debian/rules:7: recipe for target 'build' failed
make: *** [build] Error 25
dpkg-buildpackage: error: debian/rules build gave error exit status 2
--------------------------------------------------------------------------------
Build finished at 2016-08-29T18:56:44Z


You should add python3-six to the build-dep ;)


Cheers

Frederic
________________________________

A jelen email útján megküldött vélemény vagy információ kizárólag a küldő személyéhez kapcsolódik és nem feltétlenül jeleníti meg az ELI-HU Nonprofit Kft. álláspontját is. Társaságunk nem vállal felelősséget az email tartalmáért, ide értve különösen, de nem kizárólagosan kötelezettségvállalást jogi kötő erővel bíró szerződések létrehozásáért, módosításáért vagy megszűntetéséért, valamint az átadott információ alapján indult eljárásokért mindaddig, amíg az adott információt utólag és írásban a megfelelően meghatalmazott vagy az ELI-HU Nonprofit Kft. képviseleti jogával felruházott személy meg nem erősíti. Az email bizalmas vagy jogilag védett információt tartalmazhat, amelyet kizárólag a címzett személy vagy szervezet, illetve az általuk felhatalmazottak használhatnak fel. Amennyiben Ön nem az üzenet címzettje, kérjük, értesítse erről az üzenet küldőjét és törölje az üzenetet rendszeréből. A jelen email tartalmának nem a címzett általi bármilyen formában történő illetéktelen közzététele, terjesztése, másolása, illetve felhasználása vagy alkalmazása szigorúan tilos és jogszabályba ütközhet.


Please note that any information or opinions presented in this email are solely those of the sender and do not necessarily represent those of ELI-HU Nonprofit Ltd. Our Company accepts no liability or responsibility for the content of this email, especially, but not limited to commitment for establishing, modifying or terminating legally binding contracts, or for the consequences of any actions taken on the basis of the information provided, unless that information is subsequently confirmed in writing by a person duly authorized or endowed with the right of representation of ELI-HU Nonprofit Ltd. This email may contain confidential or legally protected information, and is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. If you are not the intended recipient of this email, please inform the sender immediately and delete it from your system. Any unauthorized disclosure, dissemination, copying or use of or reliance upon the content of this email by anyone other than the intended recipient is strictly prohibited and may be unlawful.


More information about the Debian-pan-maintainers mailing list