dbrattli / aioreactive

Async/await reactive tools for Python 3.10+
MIT License
361 stars 25 forks source link

Python 3.11 support? #39

Closed austinnichols101 closed 8 months ago

austinnichols101 commented 1 year ago

pip install using python 3.11 returns the following error:

ERROR: Ignored the following versions that require a different python version: 0.16.0 Requires-Python >=3.9,<3.11
ERROR: Could not find a version that satisfies the requirement aioreactive==0.17.0 (from versions: 0.2.0, 0.2.1, 0.3.0, 0.5.0, 0.6.0, 0.7.0, 0.8.0, 0.9.0, 0.10.0, 0.11.0, 0.12.0, 0.13.0, 0.14.0, 0.15.0)
ERROR: No matching distribution found for aioreactive==0.17.0
kfields commented 1 year ago

A new version that supports 3.11 would be nice otherwise I will have to find another solution which I really don't want to do.

austinnichols101 commented 1 year ago

Same - and python 3.12 is scheduled for 2023-10-02 release.

rafalkrupinski commented 1 year ago

🤦 Why would anyone declare <3.11?

dbrattli commented 1 year ago

Fix the problem, not the blame! Please open a PR.

rafalkrupinski commented 1 year ago

Both reactivex and expression that are currently used depend on python<3.11 - like I said, why would anyone?

The latest reactivex depends on python<4 and is mature enough to upgrade (2022). Problem is with Expression - version 4.0.0 removes match function and expects to use python 3.10 structural pattern matching instead, and 4.0.1 upgrades python dependency from <3.11 to <4.

I've never used aioreactive, expression or structural pattern matching. I'd need a deeper dive to be able to migrate it.

rafalkrupinski commented 1 year ago

I've forked Expression 3.3, lifted the python version and used it in my aioreactive fork. Works for me in python 3.12.

Can't make PR against a tag in github...

austinnichols101 commented 1 year ago

@rafalkrupinski - thank you for your efforts!

dbrattli commented 1 year ago

I've just fixed Expression library and will make a new release shortly. Then I hope to have some time to update this library as well. Sorry for the slow responses, but have been on vacation for 3 weeks, and now just had surgery on my eyes.

rafalkrupinski commented 12 months ago

All the best with your eyes.

I thought Expression was fine, (except perhaps for python <3.10 users) and only this project needed an upgrade from match operator to match expression.

I've only changed Expression so that the upgrade wasn't immediately necessary.

rafalkrupinski commented 12 months ago

Please open a PR.

Bro, I don't think I'm qualified :D

kstech-roadie commented 10 months ago

Excited to see this fantastic and unique library maintained and extended. I really enjoy using it in my projects.