Project

General

Profile

Tâche #24687

Scénario #24259: Finaliser et valider les dernières modifications de l'EAD 3 (2.6 et 2.7)

mettre à disposition les bibliothèques python 3 nécessaires au fonctionnement de l'EAD3

Added by Bruno Boiget over 4 years ago. Updated over 4 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
08/27/2018
Due date:
% Done:

100%

Estimated time:
0.00 h
Spent time:
Remaining (hours):
0.0

Description

Contexte

Des modifications ont été réalisées dans le code afin de supporter python2 et python3.
En effet le backend des actions est désormais exécuté en python 3.

Proposition

Liste des paquets impactés :
* creole : doit être disponible en version 2 et 3
* pyeole : doit être disponible en version 2 et 3
* tiramisu : doit être disponible en version 2 et 3
* tiramisu-web : doit être disponible en version 3

Paquets sont à recompilés :
  • eole-ead3
  • ewt-actions

dépendances mises sur eole-ead3 (creole) et ewt-portal (python3-tiramisu-web)

reste un problème de compilation pour ewt-portal (npm non disponible sur le serveur de build)

Associated revisions

Revision e58a2221 (diff)
Added by Bruno Boiget over 4 years ago

Corrections pour compatibilité python3

ref #24687

Revision b044551b (diff)
Added by Bruno Boiget over 4 years ago

Fix code for python3 compatibility

ref #24687

Revision 089086c1 (diff)
Added by Bruno Boiget over 4 years ago

Change packaging for cross building python2 and python 3 (eole 2.7)

ref #24687

Revision f45a10f4 (diff)
Added by Bruno Boiget over 4 years ago

fix setup.py for python3 build

  • sqlalchemy and sqlite storage removed until python3 conversion
  • packages list doesn't work under python3 (list extends not working)

ref #24687

Revision 4c48a6f3 (diff)
Added by Bruno Boiget over 4 years ago

Packaging de la librairie en python2 et python3 pour eole 2.7.0

ref #24687

Revision a604a38d (diff)
Added by Bruno Boiget over 4 years ago

Makefile pour gestion des paquets python2 et python3 en version 2.7.0

ref #24687

Revision ed7f1269 (diff)
Added by Bruno Boiget over 4 years ago

Passage à python3 sur eole 2.7.0

ref #24687

Revision fce3ce29 (diff)
Added by Bruno Boiget over 4 years ago

Install to Python3

ref #24687

Revision 947eaac4 (diff)
Added by Bruno Boiget over 4 years ago

remove erroneous changelog

ref #24687

Revision 4bb70152 (diff)
Added by Bruno Boiget over 4 years ago

Disable diagnose fonctions for python3 (dpkt library not available)

ref #24687

Revision e924f755 (diff)
Added by Joël Cuissinat over 4 years ago

Fix conflicts on moved files

ref #24687

Revision 14607baf (diff)
Added by Bruno Boiget over 4 years ago

Remove dependency for python3-dpkt (does not exist)

ref #24687

Revision 450a7563 (diff)
Added by Bruno Boiget over 4 years ago

remove setup.py install from eole.mk (managed by pybuild)

ref #24687

Revision e48f0e0a (diff)
Added by Bruno Boiget over 4 years ago

remove setup.py install from eole.mk (managed by pybuild)

ref #24687

Revision 268b8224 (diff)
Added by Bruno Boiget over 4 years ago

Add dependency for python3-creole

ref #24687

Revision ac0a2a2d (diff)
Added by Bruno Boiget over 4 years ago

Fix packages descriptions

ref #24687

Revision 374adbef (diff)
Added by Bruno Boiget over 4 years ago

Fix double description

ref #24687

Revision 4a988f7a (diff)
Added by Bruno Boiget over 4 years ago

add dependency on python3-tiramisu-web

ref #24687

Revision b6cdfe09 (diff)
Added by Bruno Boiget over 4 years ago

add npm to build dependencies

ref #24687

Revision ceca231c (diff)
Added by Bruno Boiget over 4 years ago

add ca-certificates in build dependencies

ref #24687

Revision 20511551 (diff)
Added by Bruno Boiget over 4 years ago

add missing bower_components to run_action

ref #24687

Revision c0803508 (diff)
Added by Bruno Boiget over 4 years ago

fix for python3 compatibility

ref #24687

History

#1 Updated by Bruno Boiget over 4 years ago

  • Status changed from Nouveau to En cours

#2 Updated by Bruno Boiget over 4 years ago

  • Assigned To set to Bruno Boiget

#3 Updated by Bruno Boiget over 4 years ago

corrections faites sur creole / pyeole (à packager depuis la branche master)

correction setup.py en attente sur tiramisu

#4 Updated by Bruno Boiget over 4 years ago

nécessite de compiler deux versions des paquets (python-xxx et python3-xxx)

https://wiki.debian.org/Python/MultiArch

projet cité en exemple :

git clone -b ubuntu/trusty https://git.launchpad.net/ubuntu/+source/zope.interface

#5 Updated by Bruno Boiget over 4 years ago

Pour livrer simultanément les version python2 et python3 d'une librairie :

  • dans debian/control

ajouter le paquet python3 en copiant le bloc du paquet python2 (ex : python-creole / python3-creole)

vérifier que les dépendances sont bien en python3 également

build-depends minimaux:

debhelper (>= 11~)
dh-python
python-all
python-setuptools
python3-all
python3-setuptools

Ajouter les versions de python minimales après les build depends:

X-Python-Version: >= 2.6
X-Python3-Version: >= 3.2
  • dans debian/rules

remplacer

       dh $@ --with python2

par

       dh $@ --with python2,python3 --buildsystem=pybuild

ajouter ces options

export PYBUILD_NAME = tiramisu # nom de la librairie python
export PYBUILD_DISABLE_python2=test # désactive le lancement automatique des tests à la compilation
export PYBUILD_DISABLE_python3=test

Pour tiramisu, j'ai du enlever les fichiers python-tiramisu.install et python3-tiramisu.install (pybuild semble gèrer automatiquement les fichiers à packager)

liens utiles :

https://wiki.debian.org/Python/LibraryStyleGuide

https://annex.debconf.org/debconf-share/debconf14/slides/introduction_to_pybuild_and_Python_packaging.pdf

#6 Updated by Gwenael Remond over 4 years ago

  • Estimated time set to 0.00 h
  • Remaining (hours) set to 0.0

#7 Updated by Bruno Boiget over 4 years ago

  • Description updated (diff)

#8 Updated by Bruno Boiget over 4 years ago

  • Description updated (diff)
  • % Done changed from 0 to 100

#9 Updated by Bruno Boiget over 4 years ago

  • Status changed from En cours to Résolu

#10 Updated by Joël Cuissinat over 4 years ago

Plus d'erreur d'installation ;)

#11 Updated by Joël Cuissinat over 4 years ago

  • Status changed from Résolu to Fermé

Also available in: Atom PDF