Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,4 @@ The following organizations or individuals have contributed to ScanCode:
- Yash Sharma @yasharmaster
- Yunus Rahbar @yns88
- Stefano Zacchiroli @zacchiro
-Pradeep Beleri @Pradeepbeleri
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Changelog

Next release
--------------
- Fix python_version operator list in PyPI dependency marker parsing to include ``>``, ``!=``, and ``~=``.

- Fix the optional ``licenses`` extra dependency typo to install
``licensedcode-data``.
Expand Down
2 changes: 1 addition & 1 deletion src/packagedcode/pypi.py
Original file line number Diff line number Diff line change
Expand Up @@ -2278,7 +2278,7 @@ def get_python_version_os(marker):
requirement Marker or None.
"""
platform_data = {}
python_version_operators = ['<', '>=', '==', '<=', '<']
python_version_operators = ['<', '>', '>=', '==', '<=', '!=', '~=']

if not marker or not isinstance(marker, markers.Marker):
return platform_data
Expand Down