-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use psycopg(3) for Python 3.13 compatibility #49
Conversation
looks like libpq is not being installed as a dependency of python3-psycopg3 package on certain distros. |
fwiw epel-8 build should fail. I don't know what's in plan for this project in that regard. |
@lukaszachy Would you have a moment to check this, if you'll have rights to this repo? |
But it succeeded... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this
hmm, not sure how. Didn't study all the conditionals in spec file. |
@lukaszachy soo, I got lost in the specfile, so I've trimmed it a bit. Hoping epel8 will be fine now. wdyt? 0938e7b |
Also, I've noticed the tests were green, but it didn't look like they really ran. Let's see what happens with these changes |
I don't get it. Where does it tell it to require psycopg and not psycopg2 on epel8?
|
I'm trying to understand what does |
@martinhoyer The value comes from
|
Which distro was that? |
@martinhoyer I pushed commit to your PR, please check:
|
I've re-tested it now. It's not being pulled on F40, EPEL9, while it's being installed on el10 (psycopq2) and F39 |
Sorry, I completely forgot about this PR. Thanks! I wanted to do basically what you did :)
Sure.. or <3.12 to have all Fedoras on psycopg3.
I hope so :)
I'm guessing this will break the other distros mentioned above (F40 and EPEL9). |
Python macro can use setup.py as the Requires source, lets have it on single place.
253ea25
to
84358d3
Compare
@lukaszachy @psss Looks green :) My only remaining point is "use psycopg2 on python<3.12" vs "use psycopg3 on python>3.13". The former make more sense to me - having it same on all current Fedoras, not just 41+... but no strong opinion. |
Personally I'd prefer to keep using psycopg2 where it is available and make psycopg3 to appear with python3.13+ becoming the base python. If only we would not need to fix libpq deps where python3-psycopg3 isn't packaged correctly :) |
libpq is not being installed as a dep even with psycopg2 on el9 from what can tell |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks!
Hm,.. I've just tested in VM and
|
hmm yeah, thanks for that correction. I must have confused myself with all the psycopgs everywhere. |
Haven't done any testing yet, but at least it builds on F41 Python 3.13.
Required by tmt[test-convert]