Skip to content
Merged
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
2 changes: 1 addition & 1 deletion docker/versions.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ ARG PHP_VERSION=8.3
ARG PIP_VERSION=25.0.1
ARG PNPM_VERSION=9.15.4
ARG PYENV_GIT_TAG=v2.4.13
ARG PYTHON_INSPECTOR_VERSION=0.10.0
ARG PYTHON_INSPECTOR_VERSION=0.14.0
ARG PYTHON_PIPENV_VERSION=2023.12.1
ARG PYTHON_POETRY_VERSION=2.0.1
ARG PYTHON_POETRY_PLUGIN_EXPORT_VERSION=1.9.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,9 @@ packages:
description: "Safely add untrusted strings to HTML/XML markup."
homepage_url: ""
binary_artifact:
url: "https://files.pythonhosted.org/packages/22/35/137da042dfb4720b638d2937c38a9c2df83fe32d20e8c8f3185dbfef05f7/MarkupSafe-3.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"
url: "https://files.pythonhosted.org/packages/bd/6e/61ebf08d8940553afff20d1fb1ba7294b6f8d279df9fd0c0db911b4bbcfd/MarkupSafe-3.0.2-cp310-cp310-musllinux_1_2_x86_64.whl"
hash:
value: "bbcb445fa71794da8f178f0f6d66789a28d7319071af7a496d4d507ed566270d"
value: "b424c77b206d63d500bcb69fa55ed8d0e6a3774056bdc4839fc9298a7edca171"
algorithm: "SHA-256"
source_artifact:
url: "https://files.pythonhosted.org/packages/b2/97/5d42485e71dfc078108a86d6de8fa46db44a1a9295e89c5d6d4a06e23a62/markupsafe-3.0.2.tar.gz"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class PythonInspectorFunTest : StringSpec({

result.projects should haveSize(2)
result.resolvedDependenciesGraph should haveSize(1)
result.packages should haveSize(11)
result.packages should haveSize(12)
}

"python-inspector can be run without setup.py file analysis" {
Expand All @@ -68,6 +68,6 @@ class PythonInspectorFunTest : StringSpec({

result.projects should haveSize(1)
result.resolvedDependenciesGraph should haveSize(1)
result.packages should haveSize(3)
result.packages should haveSize(4)
}
})
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,14 @@

return try {
run(workingDir, *commandLineOptions.toTypedArray()).requireSuccess()
outputFile.inputStream().use { json.decodeFromStream(it) }
val binaryResult = outputFile.inputStream().use { json.decodeFromStream<Result>(it) }

Check warning on line 94 in plugins/package-managers/python/src/main/kotlin/utils/PythonInspector.kt

View check run for this annotation

Codecov / codecov/patch

plugins/package-managers/python/src/main/kotlin/utils/PythonInspector.kt#L94

Added line #L94 was not covered by tests

// TODO: Avoid this terrible hack to run once more with `--prefer-source` to work around
// https://github.com/aboutcode-org/python-inspector/issues/229.
run(workingDir, *(commandLineOptions + "--prefer-source").toTypedArray()).requireSuccess()
val sourceResult = outputFile.inputStream().use { json.decodeFromStream<Result>(it) }

Check warning on line 99 in plugins/package-managers/python/src/main/kotlin/utils/PythonInspector.kt

View check run for this annotation

Codecov / codecov/patch

plugins/package-managers/python/src/main/kotlin/utils/PythonInspector.kt#L98-L99

Added lines #L98 - L99 were not covered by tests

binaryResult.copy(packages = binaryResult.packages + sourceResult.packages)

Check warning on line 101 in plugins/package-managers/python/src/main/kotlin/utils/PythonInspector.kt

View check run for this annotation

Codecov / codecov/patch

plugins/package-managers/python/src/main/kotlin/utils/PythonInspector.kt#L101

Added line #L101 was not covered by tests
} finally {
outputFile.parentFile.safeDeleteRecursively()
}
Expand Down
Loading