This is an automated email from the ASF dual-hosted git repository.
jshao pushed a commit to branch branch-0.6
in repository https://gitbox.apache.org/repos/asf/gravitino.git
The following commit(s) were added to refs/heads/branch-0.6 by this push:
new c164f64f4 [#4442] feat(client-python): Publish Python client to Apache
Gravitino official account (#4450)
c164f64f4 is described below
commit c164f64f4ba73ed413b1453693b423c88bb01fba
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Thu Aug 8 23:09:10 2024 +0800
[#4442] feat(client-python): Publish Python client to Apache Gravitino
official account (#4450)
### What changes were proposed in this pull request?
Publish Python client to Apache Gravitino official account at Pypi.org
+ https://pypi.org/project/apache-gravitino/
### Why are the changes needed?
Fix: #4442
### Does this PR introduce _any_ user-facing change?
N/A
### How was this patch tested?
I publish a test version at the:
https://pypi.org/project/apache-gravitino/
When this PR is merged, I will remove this template publish.
---------
Co-authored-by: Xun <[email protected]>
Co-authored-by: xunliu <[email protected]>
---
clients/client-python/.gitignore | 2 +-
clients/client-python/build.gradle.kts | 6 +++---
clients/client-python/setup.py | 10 +++++-----
docs/how-to-use-python-client.md | 4 ++--
4 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/clients/client-python/.gitignore b/clients/client-python/.gitignore
index 6fd78c881..20c0f8c5a 100644
--- a/clients/client-python/.gitignore
+++ b/clients/client-python/.gitignore
@@ -18,7 +18,7 @@
**/.pytest_cache/**
**/__pycache__/**
-gravitino.egg-info
+apache_gravitino.egg-info
vevn
venv
.vevn
diff --git a/clients/client-python/build.gradle.kts
b/clients/client-python/build.gradle.kts
index 6a92bd06d..6716f345b 100644
--- a/clients/client-python/build.gradle.kts
+++ b/clients/client-python/build.gradle.kts
@@ -135,13 +135,13 @@ fun generatePypiProjectHomePage() {
}
// Use regular expression to match the `` link in the
content
- // Convert `` to
`[](https://raw.githubusercontent.org/apache/gravitino/main/docs/a/b/c.png)`
- val assertUrl =
"https://raw.githubusercontent.org/apache/gravitino/main/docs"
+ // Convert `` to
`[](https://github.com/apache/gravitino/blob/main/docs/a/b/c.png?raw=true)`
+ val assertUrl = "https://github.com/apache/gravitino/blob/main/docs"
val patternImage = """!\[([^\]]+)]\(\./assets/([^)]+)\)""".toRegex()
val contentUpdateImage = patternImage.replace(contentUpdateDocs) {
matchResult ->
val altText = matchResult.groupValues[1]
val fileName = matchResult.groupValues[2]
- ""
+ ""
}
val readmeFile = file("README.md")
diff --git a/clients/client-python/setup.py b/clients/client-python/setup.py
index 6d055696c..984e56032 100644
--- a/clients/client-python/setup.py
+++ b/clients/client-python/setup.py
@@ -24,16 +24,16 @@ try:
with open("README.md") as f:
long_description = f.read()
except FileNotFoundError:
- long_description = "Gravitino Python client"
+ long_description = "Apache Gravitino Python client"
setup(
- name="gravitino",
- description="Python lib/client for Gravitino",
- version="0.6.0.dev",
+ name="apache-gravitino",
+ description="Python lib/client for Apache Gravitino",
+ version="0.6.0.dev0",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/apache/gravitino",
- author="gravitino",
+ author="apache-gravitino",
author_email="[email protected]",
python_requires=">=3.8",
packages=find_packages(exclude=["tests*", "scripts*"]),
diff --git a/docs/how-to-use-python-client.md b/docs/how-to-use-python-client.md
index 6531cd97b..76698ff4d 100644
--- a/docs/how-to-use-python-client.md
+++ b/docs/how-to-use-python-client.md
@@ -119,9 +119,9 @@ You can ues any IDE to develop Gravitino Python Client.
Directly open the client
## Resources
-+ Official website https://gravitino.apache.org/ (coming soon)
++ Official website https://gravitino.apache.org/
+ Project home on GitHub: https://github.com/apache/gravitino/
+ Playground with Docker: https://github.com/apache/gravitino-playground
+ User documentation: https://datastrato.ai/docs/
+ Videos on Youtube: https://www.youtube.com/@Datastrato
-+ Slack Community: [https://the-asf.slack.com
++ Slack Community:
[https://the-asf.slack.com#gravitino](https://the-asf.slack.com/archives/C078RESTT19)