From e21c859d4ca943c6ea3d4a2b58bda5e1242110fb Mon Sep 17 00:00:00 2001 From: Nir Ozery Date: Wed, 6 Dec 2023 18:20:43 +0000 Subject: [PATCH] High Level Python SDK: Release Official Version --- .../publish-python-wrapper-client.yaml | 27 ++++++++++--------- clients/python-wrapper/CHANGELOG.md | 5 ++++ clients/python-wrapper/README.md | 2 +- clients/python-wrapper/docs/lakefs.rst | 8 ------ clients/python-wrapper/setup.py | 2 +- 5 files changed, 21 insertions(+), 23 deletions(-) create mode 100644 clients/python-wrapper/CHANGELOG.md diff --git a/.github/workflows/publish-python-wrapper-client.yaml b/.github/workflows/publish-python-wrapper-client.yaml index c7272655ea9..81a7bec5376 100644 --- a/.github/workflows/publish-python-wrapper-client.yaml +++ b/.github/workflows/publish-python-wrapper-client.yaml @@ -10,22 +10,11 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Python Build and Make Package - run: make package-python-wrapper - - - name: Publish Distribution 📦 to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} - packages-dir: clients/python-wrapper/dist/ - verbose: true - - name: Extract docs version working-directory: ./clients/python-wrapper/ shell: bash run: | - echo "tag=$(python setup.py --version)" >> $GITHUB_OUTPUT + echo "tag=$(python setup.py --version)" >> $GITHUB_OUTPUT id: docver - name: Set up Python 3.9 @@ -34,7 +23,7 @@ jobs: python-version: '3.9' cache: 'pip' cache-dependency-path: 'clients/python-wrapper/requirements.txt' - + - name: Generate and Build Documentation run: | pip install -r clients/python-wrapper/requirements.txt @@ -50,3 +39,15 @@ jobs: destination_folder: / user_email: 'support@treeverse.io' user_name: 'python-docs-action' + + - name: Python Build and Make Package + run: make package-python-wrapper + + - name: Publish Distribution 📦 to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} + packages-dir: clients/python-wrapper/dist/ + verbose: true + \ No newline at end of file diff --git a/clients/python-wrapper/CHANGELOG.md b/clients/python-wrapper/CHANGELOG.md new file mode 100644 index 00000000000..aa14f237d5d --- /dev/null +++ b/clients/python-wrapper/CHANGELOG.md @@ -0,0 +1,5 @@ +# Changelog + +## v0.1.0 +What's new: +- First official release! diff --git a/clients/python-wrapper/README.md b/clients/python-wrapper/README.md index c63e8a3c89f..4f73a294449 100644 --- a/clients/python-wrapper/README.md +++ b/clients/python-wrapper/README.md @@ -1,4 +1,4 @@ -# lakeFS High-Level Python SDK (Pre-release Beta) +# lakeFS High-Level Python SDK lakeFS High Level SDK for Python, provides developers with the following features: 1. Simpler programming interface with less configuration diff --git a/clients/python-wrapper/docs/lakefs.rst b/clients/python-wrapper/docs/lakefs.rst index b75ad4c681b..3d8ccd1c4c5 100644 --- a/clients/python-wrapper/docs/lakefs.rst +++ b/clients/python-wrapper/docs/lakefs.rst @@ -18,11 +18,3 @@ Submodules lakefs.reference lakefs.repository lakefs.tag - -Module contents ---------------- - -.. automodule:: lakefs - :members: - :undoc-members: - :show-inheritance: diff --git a/clients/python-wrapper/setup.py b/clients/python-wrapper/setup.py index 80bbf380cf2..c8605d45a13 100644 --- a/clients/python-wrapper/setup.py +++ b/clients/python-wrapper/setup.py @@ -1,7 +1,7 @@ from setuptools import setup, find_packages NAME = "lakefs" -VERSION = "0.1.0-beta.2" +VERSION = "0.1.0" # To install the library, run the following # # python setup.py install