Skip to content

Commit 3621604

Browse files
committed
Fix Issue 240
Author: Thomas Scheer scheer@semvox.de Co-authored-by: Tushar Goel tushar.goel.dav@gmail.com Signed-off-by: Thomas Scheer scheer@semvox.de Signed-off-by: Tushar Goel tushar.goel.dav@gmail.com Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
1 parent b9df6f9 commit 3621604

36 files changed

Lines changed: 810 additions & 771 deletions

src/python_inspector/package_data.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ async def get_pypi_data_from_purl(
122122

123123

124124
def choose_single_wheel(wheel_urls: List[str]) -> Optional[str]:
125+
# fix Issue 240 - TypeError: '<' not supported between instances of 'str' and 'NoneType'
126+
wheel_urls = [url for url in wheel_urls if url is not None]
125127
"""
126128
Sort wheel urls descendingly and return the first one
127129
"""

tests/data/azure-devops.req-310-expected.json

Lines changed: 115 additions & 119 deletions
Large diffs are not rendered by default.

tests/data/azure-devops.req-312-expected.json

Lines changed: 115 additions & 119 deletions
Large diffs are not rendered by default.

tests/data/azure-devops.req-313-expected.json

Lines changed: 115 additions & 119 deletions
Large diffs are not rendered by default.

tests/data/azure-devops.req-314-expected.json

Lines changed: 115 additions & 119 deletions
Large diffs are not rendered by default.

tests/data/azure-devops.req-38-expected.json

Lines changed: 52 additions & 51 deletions
Large diffs are not rendered by default.

tests/data/default-url-expected.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"headers": {
33
"tool_name": "python-inspector",
44
"tool_homepageurl": "https://github.com/aboutcode-org/python-inspector",
5-
"tool_version": "0.13.0",
65
"options": [
76
"--index-url https://pypi.org/simple",
87
"--json <file>",

tests/data/environment-marker-test-requirements.txt-expected.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"headers": {
33
"tool_name": "python-inspector",
44
"tool_homepageurl": "https://github.com/aboutcode-org/python-inspector",
5-
"tool_version": "0.13.0",
65
"options": [
76
"--index-url https://pypi.org/simple",
87
"--json-pdt <file>",

tests/data/example-requirements-ignore-errors-expected.json

Lines changed: 50 additions & 58 deletions
Large diffs are not rendered by default.

tests/data/frozen-requirements.txt-expected.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"headers": {
33
"tool_name": "python-inspector",
44
"tool_homepageurl": "https://github.com/aboutcode-org/python-inspector",
5-
"tool_version": "0.13.0",
65
"options": [
76
"--index-url https://pypi.org/simple",
87
"--json-pdt <file>",

0 commit comments

Comments
 (0)