pfnet / pytorch-pfn-extras

Supplementary components to accelerate research and development in PyTorch
https://medium.com/pytorch/migration-from-chainer-to-pytorch-8ed92c12c8
MIT License
271 stars 52 forks source link

Avoid using `pkg_resources` #824

Closed asi1024 closed 3 months ago

asi1024 commented 3 months ago

pkg_resources is deprecated. https://setuptools.pypa.io/en/latest/pkg_resources.html

linshokaku commented 3 months ago

How about rewriting get_distribution().version to use import_lib.metadata.version() instead, which is available from Python 3.8+?

https://docs.python.org/ja/3/library/importlib.metadata.html

linshokaku commented 3 months ago

/test