pydantic / pydantic-extra-types

Extra Pydantic types.
MIT License
181 stars 48 forks source link

Deprecation Warning in pycountry due to pkg_resources usage #119

Closed llazzaro closed 8 months ago

llazzaro commented 8 months ago

Issue Description

The current version of our project is constrained to use versions of pycountry below <23. We have encountered a deprecation warning related to the use of pkg_resources in pycountry.

Warning Details

The following deprecation warning is triggered:

pycountry/__init__.py:10: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
    import pkg_resources

Relevant Information

This issue has been addressed in pycountry by the following pull requests:

[PR #155](https://github.com/pycountry/pycountry/pull/155)
[PR #164](https://github.com/pycountry/pycountry/pull/164)

Suggested Action

Updating the project to use a more recent version of pycountry, which incorporates these fixes, should resolve this deprecation warning.

I can help with this issue by creating a PR.

yezz123 commented 8 months ago

Hello, @llazzaro Thanks for catching this you can open a PR I will be happy to review it and merge it 🙏🏻