Re: python-debian | remove some Python2 dead code (!131)

2024-07-08 Thread Alexandre Detiste
Ha !

https://github.com/ilevkivskyi/com2ann



Le dim. 17 mars 2024 à 23:01, Thomas Goirand  a écrit :
>
> On 3/17/24 14:56, Alexandre Detiste wrote:
> > Hi,
> >
> > Does anyone know some automated tool to convert Python2-style annotations
> > into Python3-style ?
> >
> > python-debian $ grep '# type' -r | wc -l
> > 1499
> >
> > Greetings
>
> You may try to run "sixer" which was written by a Python core developer,
> and used to convert all of OpenStack to python2 + 3 using six. Once it
> has found all the things that may use six, you can manually convert to
> *not* use six anymore. I did this multiple times, and it worked well for
> me at least.
>
> I hope this helps,
> Cheers,
>
> Thomas Goirand (zigo)
>



Re: python-debian | remove some Python2 dead code (!131)

2024-03-17 Thread Thomas Goirand

On 3/17/24 14:56, Alexandre Detiste wrote:

Hi,

Does anyone know some automated tool to convert Python2-style annotations
into Python3-style ?

python-debian $ grep '# type' -r | wc -l
1499

Greetings


You may try to run "sixer" which was written by a Python core developer, 
and used to convert all of OpenStack to python2 + 3 using six. Once it 
has found all the things that may use six, you can manually convert to 
*not* use six anymore. I did this multiple times, and it worked well for 
me at least.


I hope this helps,
Cheers,

Thomas Goirand (zigo)



Re: python-debian | remove some Python2 dead code (!131)

2024-03-17 Thread Alexandre Detiste
Hi,

Does anyone know some automated tool to convert Python2-style annotations
into Python3-style ?

python-debian $ grep '# type' -r | wc -l
1499

Greetings

Le dim. 17 mars 2024 à 13:46, Jelmer Vernooij (@jelmer)
 a écrit :
>
> Jelmer Vernooij commented on a discussion:
>
> Yes, we should be able to migrate to modern type annotations - happy to 
> review PRs that make that change :)

https://salsa.debian.org/python-debian-team/python-debian/-/merge_requests/131