RANGER-5653: Updates to apache-ranger Python client with Python 3 sup…#1047
Closed
Sanket-Shelar wants to merge 2 commits into
Closed
RANGER-5653: Updates to apache-ranger Python client with Python 3 sup…#1047Sanket-Shelar wants to merge 2 commits into
Sanket-Shelar wants to merge 2 commits into
Conversation
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.
2 tasks
Contributor
Contributor
Author
|
Change Merged with PR - #1059 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…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