New package for factory: python-taskgroup
Hi, I've created a new package in devel:languages:python that I would like to introduce to Factory. https://build.opensuse.org/package/show/devel:languages:python/python-taskgr... Taskgroup (https://pypi.org/project/taskgroup/) is a python module that backports the asyncio.TaskGroup API from Python 3.11 to earlier versions of Python 3. It's a relatively small module, but it's useful for asyncio-based Python applications that wish to support Python 3.8-3.10 while still being able to use the newer asyncio features. An example is hypercorn (https://pypi.org/project/hypercorn/) which can't be packaged until taskgroup is packaged. Since taskgroup is a backport of a standard library API, I expect it to be easy to maintain. It looks feature complete and I don't think there will be any future breaking changes to worry about. I'm planning on reaching out to the upstream maintainer on pushing a new release to Pypi. There's been a bit of work done in the source repository since the last release, and I would like to make those changes available in this package. This is my first package, and I welcome all feedback! I want to make this package as good as it can be, and I'd like to incorporate any suggestions or feedback anyone might have :) Vivid
Am 25.01.24 um 02:43 schrieb absolutely.vivid@fastmail.org:
Hi,
I've created a new package in devel:languages:python that I would like to introduce to Factory.
https://build.opensuse.org/package/show/devel:languages:python/python-taskgr...
Taskgroup (https://pypi.org/project/taskgroup/) is a python module that backports the asyncio.TaskGroup API from Python 3.11 to earlier versions of Python 3. It's a relatively small module, but it's useful for asyncio-based Python applications that wish to support Python 3.8-3.10 while still being able to use the newer asyncio features. An example is hypercorn (https://pypi.org/project/hypercorn/) which can't be packaged until taskgroup is packaged.
Since taskgroup is a backport of a standard library API, I expect it to be easy to maintain. It looks feature complete and I don't think there will be any future breaking changes to worry about. I'm planning on reaching out to the upstream maintainer on pushing a new release to Pypi. There's been a bit of work done in the source repository since the last release, and I would like to make those changes available in this package.
This is my first package, and I welcome all feedback! I want to make this package as good as it can be, and I'd like to incorporate any suggestions or feedback anyone might have :)
Vivid
You packaged the last PyPI release 0.0.0a4 from July 2022. The package version, "4th alpha of 0.0.0" and release date do not spark confidence in the package. I am not sure if consuming packages like taskgroup do themselves a favor with. I hope you or hypercorn can convince taskgroup upstream to at least do a more mature release. Python packages should be checked with their test suite whenever possible. The source code does not have one, but maybe you could at least run the demo.py and check it? Apart from that, the specfile looks good. - Ben
Am 25.01.24 um 11:19 schrieb Ben Greiner:
Am 25.01.24 um 02:43 schrieb absolutely.vivid@fastmail.org:
Hi,
I've created a new package in devel:languages:python that I would like to introduce to Factory.
https://build.opensuse.org/package/show/devel:languages:python/python-taskgr...
Taskgroup (https://pypi.org/project/taskgroup/) is a python module that backports the asyncio.TaskGroup API from Python 3.11 to earlier versions of Python 3. It's a relatively small module, but it's useful for asyncio-based Python applications that wish to support Python 3.8-3.10 while still being able to use the newer asyncio features. An example is hypercorn (https://pypi.org/project/hypercorn/) which can't be packaged until taskgroup is packaged.
Since taskgroup is a backport of a standard library API, I expect it to be easy to maintain. It looks feature complete and I don't think there will be any future breaking changes to worry about. I'm planning on reaching out to the upstream maintainer on pushing a new release to Pypi. There's been a bit of work done in the source repository since the last release, and I would like to make those changes available in this package.
This is my first package, and I welcome all feedback! I want to make this package as good as it can be, and I'd like to incorporate any suggestions or feedback anyone might have :)
Vivid
You packaged the last PyPI release 0.0.0a4 from July 2022. The package version, "4th alpha of 0.0.0" and release date do not spark confidence in the package. I am not sure if consuming packages like taskgroup do s/like taskgroup/like hypercorn/ themselves a favor with. I hope you or hypercorn can convince taskgroup upstream to at least do a more mature release.
Python packages should be checked with their test suite whenever possible. The source code does not have one, but maybe you could at least run the demo.py and check it?
Apart from that, the specfile looks good.
- Ben
Why don't you package hypercorn with skip_python310 instead? Python 3.11 is already the primary flavor. If you wait a little bit, we will drop python39 soon, otherwise also add skip_python39. We don't really need mutltiflavor for hypercorn, do we? - Ben
On Thu Jan 25, 2024 at 2:43 AM CET, wrote:
Taskgroup (https://pypi.org/project/taskgroup/) is a python module that backports the asyncio.TaskGroup API from Python 3.11 to earlier versions of Python 3. It's a relatively small module, but it's useful for asyncio-based Python applications that wish to support Python 3.8-3.10 while still being able to use the newer asyncio features.
I would question usefulness of this package. We are now on the verge of dropping Python 3.9 from Factory, the default is 3.11 which this package seems to emulate. Is the support of 3.10 so crucial?
An example is hypercorn (https://pypi.org/project/hypercorn/) which can't be packaged until taskgroup is packaged.
I promise, nothing bad happens to you when you start the specfile with %define skip_python310 1 Best, Matěj -- http://matej.ceplovi.cz/blog/, @mcepl@floss.social GPG Finger: 3C76 A027 CA45 AD70 98B5 BC1D 7920 5802 880B C9D8 “Goodbye,” said the fox. “And now here is my secret, a very simple secret: It is only with the heart that one can see rightly; what is essential is invisible to the eye.” -- Antoine de Saint-Exupery
I didn't realize it was acceptable to (or simple) to skip Python versions like that in Factory. Since Matěj and Ben have both expressed disinterest in this package for the same reasons, I think I actually won't be submitting python-taskgroup to Factory. Instead I'll package hypercorn without 3.9/3.10 support. Thank you both for the advice! Vivid
participants (5)
-
absolutely.vivid@fastmail.org
-
Ben Greiner
-
Matěj Cepl
-
plonkarchivist@gmail.com
-
vivid