crate / cratedb-sqlparse

Parsing utilities to validate and split SQL statements for CrateDB.
Apache License 2.0
4 stars 1 forks source link

Python: Set python version to just >=3.8 #49

Closed surister closed 1 week ago

surister commented 1 week ago

Summary of the changes / Why this is an improvement

cratedb-sqlparse requires Python <3.13,>=3.8

If you create a new environment with poetry for example, the default version will be ^{yoursystempythonversion}, for my system which uses 3.12 is ^3.12, this translates to >=3.13,<4.0.

Making it incompatible if I don't change my local version.

This is the error: image

I checked how other popular packages define versions and most just do: >=3.8 or >=3.9 they don't bother with upper bounds, settings this fixes my issue.

example: https://github.com/psf/requests/blob/0e322af87745eff34caffe4df68456ebc20d9068/setup.py#L97C5-L97C28

Checklist