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 all deprecated functions #101

Closed
wants to merge 11 commits into from
Closed

🐛 fix all deprecated functions #101

wants to merge 11 commits into from

Conversation

yezz123
Copy link
Collaborator

@yezz123 yezz123 commented Oct 21, 2023

Selected Reviewer: @Kludex

@codecov
Copy link

codecov bot commented Oct 21, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a973b79) 100.00% compared to head (9bfddf5) 100.00%.

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           
Files Coverage Δ
pydantic_extra_types/color.py 100.00% <100.00%> (ø)
pydantic_extra_types/country.py 100.00% <100.00%> (ø)
pydantic_extra_types/mac_address.py 100.00% <100.00%> (ø)
pydantic_extra_types/payment.py 100.00% <100.00%> (ø)
pydantic_extra_types/phone_numbers.py 100.00% <100.00%> (ø)
pydantic_extra_types/routing_number.py 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@yezz123 yezz123 marked this pull request as ready for review October 22, 2023 22:11
@yezz123
Copy link
Collaborator Author

yezz123 commented Oct 22, 2023

please review

@yezz123 yezz123 linked an issue Oct 22, 2023 that may be closed by this pull request
1 task
@@ -11,11 +12,11 @@
from pydantic_core import PydanticCustomError, core_schema

try:
import pycountry # type: ignore[import]
except ModuleNotFoundError: # pragma: no cover
import isocountry
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's this about?

Copy link
Collaborator Author

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',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this necessary?

Copy link
Collaborator Author

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']
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pydantic 2.4.2 dependencies throw deprecation warnings
3 participants