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

Fix declarative_base sqlalchemy warning. #26

Open
simlmx opened this issue Jan 30, 2023 · 0 comments
Open

Fix declarative_base sqlalchemy warning. #26

simlmx opened this issue Jan 30, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@simlmx
Copy link
Collaborator

simlmx commented Jan 30, 2023

Describe the bug
When running the tests, this warning appears:

================================================== warnings summary===================================================
../../.cache/pypoetry/virtualenvs/pv-site-production-gDBmdbVF-py3.10/lib/python3.10/site-packages/pvsite_datamodel/sqlmodels.py:19
  /home/simon/.cache/pypoetry/virtualenvs/pv-site-production-gDBmdbVF-py3.10/lib/python3.10/site-packages/pvsite_datamodel/sqlmodels.py:19: MovedIn20Warning: Deprecated API features detected! These feature(s) are not compatible with SQLAlchemy 2.0. To prevent incompatible upgrades prior to updating applications, ensure requirements files are pinned to "sqlalchemy<2.0". Set environment variable SQLALCHEMY_WARN_20=1 to show all deprecation warnings.  Set environment variable SQLALCHEMY_SILENCE_UBER_WARNING=1 to silence this message. (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9)
    Base = declarative_base()

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

To Reproduce

make test

Expected behavior
No warning

Additional context
Sqlalchemy just released 2.0.0, I'm wondering if we should migrate to it 🤔

@simlmx simlmx added the bug Something isn't working label Jan 30, 2023
@simlmx simlmx self-assigned this Feb 23, 2023
@simlmx simlmx added this to SBRI Feb 23, 2023
@peterdudfield peterdudfield removed this from SBRI Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Status: No status
Development

No branches or pull requests

1 participant