dflook / python-minifier

Transform Python source code into its most compact representation
MIT License
553 stars 40 forks source link

Please add support for Python 3.12.x #98

Closed Josverl closed 6 months ago

Josverl commented 6 months ago

Not sure if there is limitation that prevents from running on 3.12.

https://github.com/dflook/python-minifier/blob/eb46ee627bcbecbe9ccaf03992ea21d94447db5f/setup.py#L30

If not, please update/publish, unless #94 is near complete.

dflook commented 6 months ago

Python 3.12 is not supported at this time.

Josverl commented 6 months ago

Is there a timeline or should I look for a different solution. I rather like your solution , so my preference is to wait if there is a reasonable timeline.

dflook commented 6 months ago

It will be added at some point, but it will take significant effort and I don't know when I'll find the time.

If the source is compatible with Python 3.11, you can minify it with python-minifier running on Python 3.11 and the result will run fine on Python 3.12.

But if the source makes use of the f-string enhancements or type parameter syntax introduced in 3.12 it won't work until properly supported.

michelcrypt4d4mus commented 2 months ago

+1

Josverl commented 3 weeks ago

Thanks Daniel.

Much appreciated.

ntoll commented 3 weeks ago

@dflook I just wanted to add my appreciation of your work to bring 3.12 support - looks like it's quite fiddly with the updates that landed in 3.12. :rocket: FWIW, we hope to use this project for Python minification over in PyScript. cc/ @webreflection :hugs: