From babe9e2cde150daaa901dcc657d7b12445cd9b30 Mon Sep 17 00:00:00 2001 From: Nir Ozery Date: Sun, 10 Dec 2023 09:30:17 +0000 Subject: [PATCH] Fix workflows --- .../publish-python-wrapper-client.yaml | 26 +++++++++---------- .../workflows/python-wrapper-unit-tests.yaml | 4 ++- clients/python-wrapper/setup.py | 2 +- 3 files changed, 17 insertions(+), 15 deletions(-) diff --git a/.github/workflows/publish-python-wrapper-client.yaml b/.github/workflows/publish-python-wrapper-client.yaml index c7272655ea9..60048e8667c 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,14 @@ 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 diff --git a/.github/workflows/python-wrapper-unit-tests.yaml b/.github/workflows/python-wrapper-unit-tests.yaml index 686084c488e..295fb068df6 100644 --- a/.github/workflows/python-wrapper-unit-tests.yaml +++ b/.github/workflows/python-wrapper-unit-tests.yaml @@ -48,7 +48,9 @@ jobs: run: pip install -r requirements.txt pylint pytest pytest-md pytest-emoji - name: Validate Documentation - run: make validate-python-wrapper + run: | + make validate-python-wrapper + make python-wrapper-gen-docs - name: Run Pylint run: make python-wrapper-lint diff --git a/clients/python-wrapper/setup.py b/clients/python-wrapper/setup.py index 277c70ff287..9ea53102760 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.3" +VERSION = "0.1.0-beta.4" # To install the library, run the following # # python setup.py install