-
Notifications
You must be signed in to change notification settings - Fork 55
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 all deprecated functions #101
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #101 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 9 9
Lines 637 637
Branches 158 158
=========================================
Hits 637 637
☔ View full report in Codecov by Sentry. |
* ➕ Include python 3.12 to CI * ⬆️ add python 3.12 to classifiers
please review |
@@ -11,11 +12,11 @@ | |||
from pydantic_core import PydanticCustomError, core_schema | |||
|
|||
try: | |||
import pycountry # type: ignore[import] | |||
except ModuleNotFoundError: # pragma: no cover | |||
import isocountry |
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.
What's this about?
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.
I've transitioned from using "pycountry" to the new "isocountry" library, which essentially amounts to a hard fork. You can find my customized version at https://github.com/yezz123/isocountry. It appears that "pycountry" may no longer be actively maintained, hence this shift. 😄
@@ -39,14 +40,14 @@ classifiers = [ | |||
] | |||
requires-python = '>=3.7' | |||
dependencies = [ | |||
'pydantic>=2.0.3', | |||
'pydantic>=2.4.2', |
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.
Is this necessary?
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.
I guess to match and support the latest changes in pydantic so far 🤔
@@ -35,7 +35,7 @@ jobs: | |||
fail-fast: false | |||
matrix: | |||
os: [ubuntu, macos, windows] | |||
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] | |||
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] |
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.
Can we do this in a separate PR?
Selected Reviewer: @Kludex