Skip to content

Commit

Permalink
Changes in _packagedcode in pypi.py
Browse files Browse the repository at this point in the history
Signed-off-by: swastik <[email protected]>
  • Loading branch information
swastkk committed Jan 10, 2023
1 parent 5c4038e commit b9eb56b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/_packagedcode/pypi.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@
import zipfile

import dparse2
import packvers
import packvers as packaging
import pip_requirements_parser
import pkginfo2
from commoncode import fileutils
from packvers.specifiers import SpecifierSet
from packageurl import PackageURL
Expand Down Expand Up @@ -786,7 +785,7 @@ def parse_reqs(cls, reqs, scope):
"""
dependent_packages = []
for req in reqs:
req_parsed = packvers.requirements.Requirement(str(req))
req_parsed = packaging.requirements.Requirement(str(req))
name = canonicalize_name(req_parsed.name)
purl = PackageURL(type="pypi", name=name)
specifiers = req_parsed.specifier._specs
Expand Down

0 comments on commit b9eb56b

Please sign in to comment.