Skip to content
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

updated version of sqlalchemy in poetry #107

Merged
merged 1 commit into from
Mar 17, 2024
Merged

updated version of sqlalchemy in poetry #107

merged 1 commit into from
Mar 17, 2024

Conversation

roshnaeem
Copy link
Contributor

@roshnaeem roshnaeem commented Mar 16, 2024

Pull Request

Description

Updated version of sqlalchemy.

Python Versions

It worked for me with the Python 3.11 version.

I tried first with Python 3.10 which threw me the incompatible error in poetry

The currently activated Python version 3.10.8 is not supported by the project (^3.11).
Trying to find and use a compatible version. 

I faced issues with Python 3.12 too. Python 3.11 is compatible with both poetry and sqlalchemy.

Fixes #88

@roshnaeem roshnaeem changed the title updated version of sqlalchemy updated version of sqlalchemy in poetry Mar 16, 2024
@peterdudfield peterdudfield changed the base branch from main to development March 17, 2024 20:29
@peterdudfield
Copy link
Contributor

Thanks @roshnaeem

@peterdudfield peterdudfield merged commit 6966801 into openclimatefix:development Mar 17, 2024
@peterdudfield
Copy link
Contributor

It looks like the tests failed - https://github.com/openclimatefix/pv-site-datamodel/actions/runs/8318096910/job/22759627236

Can you do a fix, test locally? and then a new PR?

@roshnaeem
Copy link
Contributor Author

roshnaeem commented Mar 17, 2024

@peterdudfield, I tried running the test, but I was getting this error, even though i installed testcontainers.

Screenshot 2024-03-17 at 10 29 48 PM

@peterdudfield
Copy link
Contributor

peterdudfield commented Mar 18, 2024

you have to install testcontainers, if this is not in the Readme.md that would be great to add

Its in the poetry dev dependencys - https://github.com/openclimatefix/pv-site-datamodel/blob/main/pyproject.toml#L17

@roshnaeem
Copy link
Contributor Author

@peterdudfield, yes it was a problem on my end with the python version. Fixed it and opened a PR which passes all pytests.
Please check #108

@roshnaeem roshnaeem mentioned this pull request Mar 27, 2024
6 tasks
peterdudfield added a commit that referenced this pull request Mar 27, 2024
* updated version of sqlalchemy (#107)

* Resolved pytest errors by correctly annotating ORM relationships with Mapped type (#108)

* updated version of sqlalchemy

* fixed the failing of pytest because of sqlalchemy

---------

Co-authored-by: Peter Dudfield <34686298+peterdudfield@users.noreply.github.com>

* lint

* fix

---------

Co-authored-by: Rosheen Naeem <rosheennaeem4@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update SQLAlchemy > 2.0
2 participants