From a14ad5edaeb7c2367de00fb14ee12fdc94627cb5 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 29 Dec 2023 04:55:50 +0530 Subject: [PATCH] SDK regeneration (#4) Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com> --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ pyproject.toml | 2 +- src/webflow/core/client_wrapper.py | 2 +- tests/test_client.py | 3 +-- 4 files changed, 27 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e70067b..0a5b56e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,3 +34,27 @@ jobs: run: poetry install - name: Test run: poetry run pytest . + + publish: + needs: [compile, test] + if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') + runs-on: ubuntu-20.04 + steps: + - name: Checkout repo + uses: actions/checkout@v3 + - name: Set up python + uses: actions/setup-python@v4 + with: + python-version: 3.7 + - name: Bootstrap poetry + run: | + curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1 + - name: Install dependencies + run: poetry install + - name: Publish to pypi + run: | + poetry config repositories.remote https://upload.pypi.org/legacy/ + poetry --no-interaction -v publish --build --repository remote --username "$PYPI_USERNAME" --password "$PYPI_PASSWORD" + env: + PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }} + PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} diff --git a/pyproject.toml b/pyproject.toml index 14ccf44..10a6dcf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "webflow" -version = "0.0.0" +version = "0.1.0b1" description = "" readme = "README.md" authors = [] diff --git a/src/webflow/core/client_wrapper.py b/src/webflow/core/client_wrapper.py index d892a56..5e431c1 100644 --- a/src/webflow/core/client_wrapper.py +++ b/src/webflow/core/client_wrapper.py @@ -14,7 +14,7 @@ def get_headers(self) -> typing.Dict[str, str]: headers: typing.Dict[str, str] = { "X-Fern-Language": "Python", "X-Fern-SDK-Name": "webflow", - "X-Fern-SDK-Version": "0.0.0", + "X-Fern-SDK-Version": "0.1.0b1", } headers["Authorization"] = f"Bearer {self._get_access_token()}" return headers diff --git a/tests/test_client.py b/tests/test_client.py index de1cc95..60a58e6 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -1,7 +1,6 @@ import pytest -import pytest # Get started with writing tests with pytest at https://docs.pytest.org @pytest.mark.skip(reason="Unimplemented") def test_client() -> None: - assert True == True \ No newline at end of file + assert True == True