[Rpm-maint] [rpm-software-management/rpm] pythondistdeps: Switch to importlib.metadata (#1317)

Miro Hrončok notifications at github.com
Wed Sep 23 09:47:44 UTC 2020


@hroncok commented on this pull request.



>                      else:
-                        dep_normalized_name = dep.key
+                        dep_normalized_name = dep.key.replace('_', '-')

Be careful with manual replaces for normalized names. There are two regexes that this code supported before. The PEP 503 regex and the regex imported from setuptools ([described in here](https://github.com/pypa/setuptools/issues/1597)). 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1317#discussion_r493384880
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200923/45f49fe1/attachment.html>


More information about the Rpm-maint mailing list