Bug 50328 - [dh_python] migrate ucs-school-lib from python-support to dh_python
[dh_python] migrate ucs-school-lib from python-support to dh_python
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: General
UCS@school 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: Daniel Tröder
Jürn Brodersen
:
Depends on:
Blocks: 50344
  Show dependency treegraph
 
Reported: 2019-10-07 16:39 CEST by Daniel Tröder
Modified: 2023-03-25 06:39 CET (History)
1 user (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Tröder univentionstaff 2019-10-07 16:39:44 CEST
Migrate the ucs-school-lib package from python-support to dh_python.
Comment 1 Daniel Tröder univentionstaff 2019-10-08 12:12:56 CEST
1. move Python modules into paths that mirror the package structure
→ Cherry-picked from dtroeder/ucsschool.no.udm:
→ [feature/dh_python] cf4f98dd5 make ucsschool.lib pip installable

2. adapt debian/rules to build l10n, move file common to Python 2+3 packages to a common package:
→ [feature/dh_python b79907d2b] Bug #50328: migrate from python-support to dh_python

3. update Python code to byte-compile for Python3:
→ [feature/dh_python 2b21fbdc4] Bug #50328: py2/3 print function and exception handling (libfuturize.fixes.fix_print_with_import, lib2to3.fixes.fix_except)

The Python3 code has only be adapted to have a valid syntax, so it byte-compiles. It is in no way tested.
Comment 2 Jürn Brodersen univentionstaff 2019-10-10 19:16:04 CEST
OK base tests work:
https://jenkins.knut.univention.de:8181/view/Alle/job/UCS%20Branch%20Test/203/

Some small changes:
[feature/dh_python 7c3f6b482] Bug #50328: Add python namespace package
[feature/dh_python a081fe731] Bug #50328: add python-setuptools build dependency
[feature/dh_python 374ae0092] Bug #50328: Add break because /etc/ucsschool/logging.yaml moved package
[feature/dh_python e895f1fdd] Bug #50328: fix version