Skip to content

RANGER-5653: Updates to apache-ranger Python client with Python 3 sup…#1047

Closed
Sanket-Shelar wants to merge 2 commits into
apache:ranger-2.9from
Sanket-Shelar:RANGER-5653-2.9
Closed

RANGER-5653: Updates to apache-ranger Python client with Python 3 sup…#1047
Sanket-Shelar wants to merge 2 commits into
apache:ranger-2.9from
Sanket-Shelar:RANGER-5653-2.9

Conversation

@Sanket-Shelar

Copy link
Copy Markdown
Contributor

…port only (#1034)

What changes were proposed in this pull request?

Prepare apache-ranger 0.0.13 on PyPI with Python 3.13+ only support.

Bump version to 0.0.13; set python_requires='>=3.13' and update classifiers.
Refresh dependencies: requests>=2.34.2, strenum>=0.4.15 (avoids transitive chardet; RANGER-3335).
Use SPDX Apache-2.0 license metadata in setup.py.
Rewrite PyPI README: requirements, install, supported clients, quickstarts (Admin, UserMgmt, KMS, GDS, PDP), plus an Examples and Code References section that points to runnable sample scripts, client source files, and unit tests (replacing earlier inline usage blocks), auth notes, troubleshooting, 0.0.13 highlights.
Expand unit tests: split into TestRangerClient, TestGDSClient, and TestPDPClient; add GDS/PDP model coercion and API wiring coverage.
Remove duplicate legacy packaging scripts (intg/src/main/python/setup.py is the single entry point):
intg/scripts/setup.py
ranger-examples/sample-client/scripts/setup.py, run-pyclient.sh
Add .cursor/rules/ranger-python.mdc for Python client and test conventions.
Breaking change: installs require Python 3.13+ (0.0.12 supported older versions).

How was this patch tested?

PYTHONPATH=src/main/python python -B src/test/python/test_ranger_client.py (16 tests)
RangerClient and RangerGdsClient from sample_client.py, sample_gds_client.py exercised against a live Ranger Admin server
mvn -pl intg test
python -m build + twine check dist/* from intg/src/main/python
Wheel install in clean venv; verify requests>=2.34.2, no chardet

@mneethiraj mneethiraj requested a review from kumaab July 6, 2026 23:22
@ramackri ramackri self-requested a review July 9, 2026 17:43
@ramackri ramackri marked this pull request as ready for review July 9, 2026 17:43
@kumaab

kumaab commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Please note GDS APIs are only present in master branch.

GDS Python client is not on ranger-2.9; remove GDS tests, README
sections, and cursor-rule references so unit tests run on 2.9.
@ramackri

ramackri commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

CI does not run on fork PRs targeting ranger-2.9. The branch has been pushed to apache/ranger:RANGER-5653-2.9 (with GDS trimmed for 2.9) and superseded by #1059, which has CI checks. Please close this PR in favor of #1059.

@Sanket-Shelar

Copy link
Copy Markdown
Contributor Author

Change Merged with PR - #1059

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants