Projet

Général

Profil

Bug #62631

Bullseye : python3-passerelle depend de python3-xmlschema (<= 1.1)

Ajouté par Guillaume Baffoin il y a environ 2 ans. Mis à jour il y a environ 2 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
10 mars 2022
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

Or sur bullseye python3-xmlschema est en version 1.4 et un apt full-upgrade veut désinstaller passerelle.
de plus passerelle ne fonctionne pas avec la version 1.4 (hors problème de dépendance).

Package: python3-xmlschema
Version: 1.4.2-1
APT-Sources: http://deb.debian.org/debian bullseye/main amd64 Packages

Fichiers

0009-tox-test-against-xmschema-1.0-62631.patch (1,2 ko) 0009-tox-test-against-xmschema-1.0-62631.patch Nicolas Roche, 11 mars 2022 13:00
0008-setup.py-upgrade-xmlschema-62631.patch (839 octets) 0008-setup.py-upgrade-xmlschema-62631.patch Nicolas Roche, 11 mars 2022 13:00
0007-utils-xml-handle-new-xsd_type-parameter-on-element_d.patch (1,95 ko) 0007-utils-xml-handle-new-xsd_type-parameter-on-element_d.patch Nicolas Roche, 11 mars 2022 13:00
0006-utils-xml-import-qnames-for-xmlschema-1.0-62631.patch (6,27 ko) 0006-utils-xml-import-qnames-for-xmlschema-1.0-62631.patch Nicolas Roche, 11 mars 2022 13:00
0005-utils-xml-eplicit-is_element_only-condition-62631.patch (1,38 ko) 0005-utils-xml-eplicit-is_element_only-condition-62631.patch Nicolas Roche, 11 mars 2022 13:00
0004-utils-xml-add-pattern-on-XsdAtomicBuiltin-type-62631.patch (3,39 ko) 0004-utils-xml-add-pattern-on-XsdAtomicBuiltin-type-62631.patch Nicolas Roche, 11 mars 2022 13:00
0002-mdel-set-element-text-after-create-it-62631.patch (1,46 ko) 0002-mdel-set-element-text-after-create-it-62631.patch Nicolas Roche, 11 mars 2022 13:00
0003-axel-accept-XMLSchemaValidationError-on-encode-or-de.patch (3,45 ko) 0003-axel-accept-XMLSchemaValidationError-on-encode-or-de.patch Nicolas Roche, 11 mars 2022 13:00
0001-tests-ignore-mdel-zip-files-order-62631.patch (1,05 ko) 0001-tests-ignore-mdel-zip-files-order-62631.patch Nicolas Roche, 11 mars 2022 13:00
0009-tox-test-against-xmschema-1.0-62631.patch (1,2 ko) 0009-tox-test-against-xmschema-1.0-62631.patch Nicolas Roche, 11 mars 2022 15:38
0007-utils-xml-handle-new-xsd_type-parameter-on-element_d.patch (2,36 ko) 0007-utils-xml-handle-new-xsd_type-parameter-on-element_d.patch Nicolas Roche, 11 mars 2022 15:38
0006-utils-xml-import-qnames-for-xmlschema-1.0-62631.patch (6,43 ko) 0006-utils-xml-import-qnames-for-xmlschema-1.0-62631.patch Nicolas Roche, 11 mars 2022 15:38
0008-setup.py-upgrade-xmlschema-62631.patch (2,45 ko) 0008-setup.py-upgrade-xmlschema-62631.patch Nicolas Roche, 11 mars 2022 17:18

Demandes liées

Lié à Passerelle - Development #43917: Incompatibilité avec xmlschema 1.2Fermé11 juin 2020

Actions
Lié à Passerelle - Development #61956: fonctionner avec xmlschema 1.4Fermé18 février 2022

Actions

Révisions associées

Révision dc3f8a60 (diff)
Ajouté par Nicolas Roche il y a environ 2 ans

tests: ignore mdel zip files order (#62631)

Révision b1b80e5f (diff)
Ajouté par Nicolas Roche il y a environ 2 ans

mdel: set element text after create it (#62631)

Révision 4a2745b0 (diff)
Ajouté par Nicolas Roche il y a environ 2 ans

axel: accept XMLSchemaValidationError on encode or decode (#62631)

Révision 53f00547 (diff)
Ajouté par Nicolas Roche il y a environ 2 ans

utils/xml: add pattern on XsdAtomicBuiltin type (#62631)

Révision 4a772d77 (diff)
Ajouté par Nicolas Roche il y a environ 2 ans

utils/xml: eplicit is_element_only condition (#62631)

Révision 20262fed (diff)
Ajouté par Nicolas Roche il y a environ 2 ans

utils/xml: import 'qnames' for xmlschema 1.0 (#62631)

Révision 6fef9c15 (diff)
Ajouté par Nicolas Roche il y a environ 2 ans

utils/xml: handle new xsd_type parameter on element_decode (#62631)

Révision 3502c60a (diff)
Ajouté par Nicolas Roche il y a environ 2 ans

setup.py: upgrade xmlschema (#62631)

Historique

#2

Mis à jour par Nicolas Roche il y a environ 2 ans

#3

Mis à jour par Nicolas Roche il y a environ 2 ans

  • Assigné à mis à Nicolas Roche
#4

Mis à jour par Nicolas Roche il y a environ 2 ans

On a versions de xmlschema dont les API diffèrent un peu :
  • buster: 1.0.16
  • bullseye: 1.4.2
Les patchs :
  1. tests: ignore mdel zip files order
    Les tests ne passaient plus chez moi
  2. mdel: set element text after create it
    Le texte semble à présent être écrasé par le nouveau constructeur.
  3. axel: accept XMLSchemaValidationError on encode or decode
    L'exception XMLSchemaValidationError est levée plus tôt : sur encode au lieu de decode.
    Elle est déjà attrapée par utils/axel.py
    et la fonction xmlschema/validators/xsdbase::encode ne me semble pas être utilisée ailleurs.
  4. utils/xml: add pattern on XsdAtomicBuiltin type
    Vu via test_util_xmls.py qui utilise passerelle/apps/sp_fr/depotDossierPACS.XSD
    par exemple sur aideMaterielMontant on obtient à présent un pattern.
  5. utils/xml: eplicit is_element_only condition
    Le tag TYPEType (toulouse_axel) passe par ce chemin et à présent, on l'exception NotImplementedError.
  6. utils/xml: import 'qnames' for xmlschema 1.0
  7. utils/xml: handle new xsd_type parameter on element_decode
    Un paramètre supplémentaire est apparu dans la fonction.
  8. setup.py: upgrade xmlschema
  9. tox: test against xmschema 1.0
    J'ajoute une branche pour les tests sur la version buster
#5

Mis à jour par Thomas Noël il y a environ 2 ans

Très chouette boulot.

Sur 0006 : ça serait mieux de faire « import xmlschema.names as xmlschema_names » plutôt que « as names »

Sur 0007 : par symétrie, je te propose de remplacer aussi le level=0 par *args dans element_encode

Sur 0009 : indiquer « xmlschema14: xmlschema<1.5 » pour attraper la 1.4.2 (qui est celle de Debian bullseye) et non pas la dernière version (1.10.0)

#7

Mis à jour par Thomas Noël il y a environ 2 ans

Il reste dans debian/control :

    python3-xmlschema (< 1.1)

à inclure dans 0008 que tu peux d'ailleurs merger avec 0009

#8

Mis à jour par Nicolas Roche il y a environ 2 ans

Fait (merci, je suis complètement passé à côté).

#9

Mis à jour par Thomas Noël il y a environ 2 ans

  • Statut changé de Solution proposée à Solution validée
#10

Mis à jour par Nicolas Roche il y a environ 2 ans

#11

Mis à jour par Nicolas Roche il y a environ 2 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit 3502c60a8b24f62b2bcf0b241b49f700105b8849
Author: Nicolas ROCHE <nroche@entrouvert.com>
Date:   Fri Mar 11 09:42:58 2022 +0100

    setup.py: upgrade xmlschema (#62631)

commit 6fef9c1592067eb09c27111a33c526469b9ae7e6
Author: Nicolas ROCHE <nroche@entrouvert.com>
Date:   Fri Mar 11 11:43:41 2022 +0100

    utils/xml: handle new xsd_type parameter on element_decode (#62631)

commit 20262feda4369440493fc0d252e93ab26185d0d2
Author: Nicolas ROCHE <nroche@entrouvert.com>
Date:   Fri Mar 11 10:54:19 2022 +0100

    utils/xml: import 'qnames' for xmlschema 1.0 (#62631)

commit 4a772d7796a7028bd8f543d4972e8f6c9751af19
Author: Nicolas ROCHE <nroche@entrouvert.com>
Date:   Fri Mar 11 09:37:55 2022 +0100

    utils/xml: eplicit is_element_only condition (#62631)

commit 53f00547f251fccfd874b2abdae8035931d19972
Author: Nicolas ROCHE <nroche@entrouvert.com>
Date:   Fri Mar 11 12:29:30 2022 +0100

    utils/xml: add pattern on XsdAtomicBuiltin type (#62631)

commit 4a2745b0df3ee3f13e52e31de944e70559970f68
Author: Nicolas ROCHE <nroche@entrouvert.com>
Date:   Fri Mar 11 10:22:30 2022 +0100

    axel: accept XMLSchemaValidationError on encode or decode (#62631)

commit b1b80e5fa3a8a3bb17fdf3f03e93f904404fe453
Author: Nicolas ROCHE <nroche@entrouvert.com>
Date:   Fri Mar 11 09:30:10 2022 +0100

    mdel: set element text after create it (#62631)

commit dc3f8a60b1d92e1490ba4b7121bcc0bf010eeffe
Author: Nicolas ROCHE <nroche@entrouvert.com>
Date:   Fri Mar 11 09:27:17 2022 +0100

    tests: ignore mdel zip files order (#62631)
#12

Mis à jour par Transition automatique il y a environ 2 ans

  • Statut changé de Résolu (à déployer) à Solution déployée
#13

Mis à jour par Transition automatique il y a presque 2 ans

Automatic expiration

Formats disponibles : Atom PDF