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

Update to pydantic v2 and fix deprecated API usage. #28

Merged
merged 2 commits into from
Nov 30, 2023

Conversation

daniel-k
Copy link
Member

@daniel-k daniel-k commented Nov 29, 2023

This fixes lots of deprecration warnings in CI builds and ultimately for users as well. From now on, we will require pydantic>=2 as we now use their new API.

NB: I've piggy-backed removing the deprecated usage of datetime.utcnow() as well. This only affects our tests though.

Base automatically changed from fix/use-new-api-urls to fix/production-run-qty-unit-may-be-null November 30, 2023 07:45
@daniel-k daniel-k force-pushed the fix/production-run-qty-unit-may-be-null branch from 6b4bffc to 5a3dafb Compare November 30, 2023 07:47
Base automatically changed from fix/production-run-qty-unit-may-be-null to master November 30, 2023 08:26
Copy link

Coverage results

This is the coverage report for commit 8b8daf8

Name                                                                                Stmts   Miss  Cover   Missing
-----------------------------------------------------------------------------------------------------------------
.tox/py/lib/python3.12/site-packages/enlyze/__init__.py                                 4      0   100%
.tox/py/lib/python3.12/site-packages/enlyze/api_clients/base.py                        65      0   100%
.tox/py/lib/python3.12/site-packages/enlyze/api_clients/production_runs/client.py      20      0   100%
.tox/py/lib/python3.12/site-packages/enlyze/api_clients/production_runs/models.py      51      0   100%
.tox/py/lib/python3.12/site-packages/enlyze/api_clients/timeseries/client.py           19      0   100%
.tox/py/lib/python3.12/site-packages/enlyze/api_clients/timeseries/models.py           34      0   100%
.tox/py/lib/python3.12/site-packages/enlyze/auth.py                                    13      0   100%
.tox/py/lib/python3.12/site-packages/enlyze/client.py                                  86      0   100%
.tox/py/lib/python3.12/site-packages/enlyze/constants.py                                6      0   100%
.tox/py/lib/python3.12/site-packages/enlyze/errors.py                                   3      0   100%
.tox/py/lib/python3.12/site-packages/enlyze/models.py                                 108      0   100%
.tox/py/lib/python3.12/site-packages/enlyze/validators.py                              38      0   100%
-----------------------------------------------------------------------------------------------------------------
TOTAL                                                                                 447      0   100%

4 empty files skipped.

@daniel-k daniel-k requested review from a team, cipherself and denizs and removed request for a team November 30, 2023 10:21
@daniel-k daniel-k merged commit abb3023 into master Nov 30, 2023
9 checks passed
@daniel-k daniel-k deleted the update/pydantic-v2 branch November 30, 2023 10:29
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.

2 participants