fix: Fix Python compatibility checking parameter order issue
- Fix get_package_info() call to use keyword argument for use_cache parameter - Resolves 'quote_from_bytes() expected bytes' error caused by passing boolean as version parameter - All 3 occurrences in compatibility_check.py updated
This commit is contained in:
parent
eaa5655d8d
commit
52bc6d93fb
@ -39,7 +39,7 @@ async def check_python_compatibility(
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
async with PyPIClient() as client:
|
async with PyPIClient() as client:
|
||||||
package_data = await client.get_package_info(package_name, use_cache)
|
package_data = await client.get_package_info(package_name, use_cache=use_cache)
|
||||||
|
|
||||||
info = package_data.get("info", {})
|
info = package_data.get("info", {})
|
||||||
requires_python = info.get("requires_python")
|
requires_python = info.get("requires_python")
|
||||||
@ -103,7 +103,7 @@ async def get_compatible_python_versions(
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
async with PyPIClient() as client:
|
async with PyPIClient() as client:
|
||||||
package_data = await client.get_package_info(package_name, use_cache)
|
package_data = await client.get_package_info(package_name, use_cache=use_cache)
|
||||||
|
|
||||||
info = package_data.get("info", {})
|
info = package_data.get("info", {})
|
||||||
requires_python = info.get("requires_python")
|
requires_python = info.get("requires_python")
|
||||||
@ -177,7 +177,7 @@ async def suggest_python_version_for_packages(
|
|||||||
async with PyPIClient() as client:
|
async with PyPIClient() as client:
|
||||||
for package_name in package_names:
|
for package_name in package_names:
|
||||||
try:
|
try:
|
||||||
package_data = await client.get_package_info(package_name, use_cache)
|
package_data = await client.get_package_info(package_name, use_cache=use_cache)
|
||||||
info = package_data.get("info", {})
|
info = package_data.get("info", {})
|
||||||
|
|
||||||
requires_python = info.get("requires_python")
|
requires_python = info.get("requires_python")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user