Repository navigation
build: fix dependency advisories and enable pytest strict mode #1858
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| python_dateutil >= 2.5.3 | ||
| setuptools >= 21.0.0 | ||
| urllib3 ~= 2.6.1 | ||
| urllib3 ~= 2.8 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| python_dateutil >= 2.5.3 | ||
| setuptools >= 21.0.0 | ||
| urllib3 ~= 2.6.1 | ||
| urllib3 ~= 2.8 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,7 +25,7 @@ | |
| # http://pypi.python.org/pypi/setuptools | ||
|
|
||
| REQUIRES = [ | ||
| "urllib3 >= 2.6.1", | ||
| "urllib3 >= 2.8.0", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win 🔎 Supported by static analysis🏁 Script executed: rg -n -C 3 'ProxyManager|proxy_ssl_context|proxy_assert_hostname|ssl_ca_cert|cert_file|key_file' gooddata-api-client .openapi-generatorRepository: gooddata/gooddata-python-sdk Length of output: 9807 🏁 Script executed: set -o pipefail
printf '%s\n' '--- PR diff for relevant files ---'
git diff --unified=40 ab84a23b59b929fe17e1ba089b2ada80663572d1 ac7d0687c059d0e444b664fd45f77be3c274a6f8 -- gooddata-api-client/setup.py gooddata-api-client/gooddata_api_client/rest.py .openapi-generator/custom_templates/rest.mustache .openapi-generator/custom_templates/configuration.mustache
printf '%s\n' '--- proxy configuration references ---'
rg -n -C 4 --glob '*.py' --glob '*.md' --glob '*.yaml' --glob '*.yml' --glob '*.toml' --glob '*.json' -- 'proxy|ssl_ca_cert|cert_file|key_file|proxy_headers|no_proxy' gooddata-api-client gooddata-sdk gooddata-pipelines .openapi-generator docs 2>/dev/null || test "$?" -eq 1Repository: gooddata/gooddata-python-sdk Length of output: 19647 🌐 Web query:
💡 Result: Preserve TLS settings for HTTPS proxies. When If HTTPS proxies are supported, add proxy-specific SSL-context configuration in 🤖 Prompt for AI AgentsSource: Coding guidelines |
||
| "python-dateutil", | ||
| ] | ||
|
|
||
|
|
@@ -37,7 +37,7 @@ | |
| author_email="support@gooddata.com", | ||
| url="", | ||
| keywords=["OpenAPI", "OpenAPI-Generator", "OpenAPI definition"], | ||
| python_requires=">=3.6", | ||
| python_requires=">=3.10", | ||
| install_requires=REQUIRES, | ||
| packages=find_packages(exclude=["test", "tests"]), | ||
| include_package_data=True, | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Align the urllib3 floor with the declared Python floor.
urllib3 2.8 requires Python 3.10 or later, so Python 3.9 cannot satisfy these new requirements. The generated and checked-in setup metadata still advertises
python_requires >=3.6, making Python 3.9 installs fail dependency resolution. If this change drops Python 3.9, update the declared floor; otherwise, define a compatible dependency path. (urllib3.readthedocs.io).openapi-generator/custom_templates/requirements.mustache#L3-L3: Keep the generated requirement consistent with the chosen Python support floor..openapi-generator/custom_templates/setup.mustache#L22-L22: AlignREQUIRESand the template’spython_requireswith the chosen support policy.gooddata-api-client/requirements.txt#L3-L3: Keep the checked-in requirements consistent with the chosen Python support floor.gooddata-api-client/setup.py#L28-L28: Aligninstall_requiresandpython_requireswith the chosen support policy.📍 Affects 4 files
.openapi-generator/custom_templates/requirements.mustache#L3-L3(this comment).openapi-generator/custom_templates/setup.mustache#L22-L22gooddata-api-client/requirements.txt#L3-L3gooddata-api-client/setup.py#L28-L28🤖 Prompt for AI Agents