Projet

Général

Profil

Bug #53809

tox :retirer la militation de version sur attrs

Ajouté par Emmanuel Cazenave il y a presque 3 ans. Mis à jour il y a presque 3 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
06 mai 2021
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

Il y a un commit qui limite attrs :

commit f076688a0de5a4615864220bc7a8162b8c659c61
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Tue Oct 1 23:39:44 2019 +0200

    tox: limit attrs, for pytest

      File ".../_pytest/tmpdir.py", line 35, in TempPathFactory
        lambda p: Path(os.path.abspath(six.text_type(p)))
    TypeError: attrib() got an unexpected keyword argument 'convert'

De l'eau a du couler sous les ponts pour pytest et attrs, avec cette limitation sur attrs chez moi cette trace :

py3-dj22-pg run-test: commands[0] | py.test tests/
Traceback (most recent call last):
  File "/tmp/tox-cazino/fargo/py3-dj22-pg/bin/py.test", line 5, in <module>
    from pytest import console_main
  File "/tmp/tox-cazino/fargo/py3-dj22-pg/lib/python3.7/site-packages/pytest/__init__.py", line 5, in <module>
    from _pytest.assertion import register_assert_rewrite
  File "/tmp/tox-cazino/fargo/py3-dj22-pg/lib/python3.7/site-packages/_pytest/assertion/__init__.py", line 9, in <module>
    from _pytest.assertion import rewrite
  File "/tmp/tox-cazino/fargo/py3-dj22-pg/lib/python3.7/site-packages/_pytest/assertion/rewrite.py", line 34, in <module>
    from _pytest.assertion import util
  File "/tmp/tox-cazino/fargo/py3-dj22-pg/lib/python3.7/site-packages/_pytest/assertion/util.py", line 13, in <module>
    import _pytest._code
  File "/tmp/tox-cazino/fargo/py3-dj22-pg/lib/python3.7/site-packages/_pytest/_code/__init__.py", line 2, in <module>
    from .code import Code
  File "/tmp/tox-cazino/fargo/py3-dj22-pg/lib/python3.7/site-packages/_pytest/_code/code.py", line 942, in <module>
    @attr.s(eq=False)
TypeError: attrs() got an unexpected keyword argument 'eq'

(cependant ça ne se produit pas chez le camarade Valentin, va comprendre)


Fichiers

Révisions associées

Révision 9979ba9c (diff)
Ajouté par Emmanuel Cazenave il y a presque 3 ans

tox: do not limit attrs version (#53809)

Historique

#1

Mis à jour par Emmanuel Cazenave il y a presque 3 ans

Et ça continue à fonctionner chez l'ami Valentin ainsi.

#2

Mis à jour par Valentin Deniaud il y a presque 3 ans

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

L'ami Jenkins est tout vert.

#3

Mis à jour par Emmanuel Cazenave il y a presque 3 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit 9979ba9ce189304b2aba2c6341ab4c8d70e6fecb
Author: Emmanuel Cazenave <ecazenave@entrouvert.com>
Date:   Thu May 6 12:08:10 2021 +0200

    tox: do not limit attrs version (#53809)
#4

Mis à jour par Frédéric Péters il y a presque 3 ans

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

Formats disponibles : Atom PDF