From 68a97b661c329bcbf69c45674dec526e5153bc77 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 14 Jun 2024 06:34:11 +0000 Subject: [PATCH 1/5] chore: go live (#2) --- .github/workflows/create-releases.yml | 38 ------------------- .../handle-release-pr-title-edit.yml | 25 ------------ .github/workflows/publish-pypi.yml | 8 +++- .github/workflows/release-doctor.yml | 3 +- CONTRIBUTING.md | 4 +- README.md | 8 ++-- bin/check-release-environment | 4 -- pyproject.toml | 6 +-- 8 files changed, 16 insertions(+), 80 deletions(-) delete mode 100644 .github/workflows/create-releases.yml delete mode 100644 .github/workflows/handle-release-pr-title-edit.yml diff --git a/.github/workflows/create-releases.yml b/.github/workflows/create-releases.yml deleted file mode 100644 index f542cff..0000000 --- a/.github/workflows/create-releases.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: Create releases -on: - schedule: - - cron: '0 5 * * *' # every day at 5am UTC - push: - branches: - - main - -jobs: - release: - name: release - if: github.ref == 'refs/heads/main' && github.repository == 'undefined/unitycatalog-python' - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - - uses: stainless-api/trigger-release-please@v1 - id: release - with: - repo: ${{ github.event.repository.full_name }} - stainless-api-key: ${{ secrets.STAINLESS_API_KEY }} - - - name: Install Rye - if: ${{ steps.release.outputs.releases_created }} - run: | - curl -sSf https://rye.astral.sh/get | bash - echo "$HOME/.rye/shims" >> $GITHUB_PATH - env: - RYE_VERSION: 0.24.0 - RYE_INSTALL_OPTION: "--yes" - - - name: Publish to PyPI - if: ${{ steps.release.outputs.releases_created }} - run: | - bash ./bin/publish-pypi - env: - PYPI_TOKEN: ${{ secrets.UNITYCATALOG_PYPI_TOKEN || secrets.PYPI_TOKEN }} diff --git a/.github/workflows/handle-release-pr-title-edit.yml b/.github/workflows/handle-release-pr-title-edit.yml deleted file mode 100644 index 193512e..0000000 --- a/.github/workflows/handle-release-pr-title-edit.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Handle release PR title edits -on: - pull_request: - types: - - edited - - unlabeled - -jobs: - update_pr_content: - name: Update pull request content - if: | - ((github.event.action == 'edited' && github.event.changes.title.from != github.event.pull_request.title) || - (github.event.action == 'unlabeled' && github.event.label.name == 'autorelease: custom version')) && - startsWith(github.event.pull_request.head.ref, 'release-please--') && - github.event.pull_request.state == 'open' && - github.event.sender.login != 'stainless-bot' && - github.event.sender.login != 'stainless-app' && - github.repository == 'undefined/unitycatalog-python' - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: stainless-api/trigger-release-please@v1 - with: - repo: ${{ github.event.repository.full_name }} - stainless-api-key: ${{ secrets.STAINLESS_API_KEY }} diff --git a/.github/workflows/publish-pypi.yml b/.github/workflows/publish-pypi.yml index 2bba25e..6688b43 100644 --- a/.github/workflows/publish-pypi.yml +++ b/.github/workflows/publish-pypi.yml @@ -1,9 +1,13 @@ -# workflow for re-running publishing to PyPI in case it fails for some reason -# you can run this workflow by navigating to https://www.github.com/undefined/unitycatalog-python/actions/workflows/publish-pypi.yml +# This workflow is triggered when a GitHub release is created. +# It can also be run manually to re-publish to PyPI in case it failed for some reason. +# You can run this workflow by navigating to https://www.github.com/samster25/unitycatalog-python/actions/workflows/publish-pypi.yml name: Publish PyPI on: workflow_dispatch: + release: + types: [published] + jobs: publish: name: publish diff --git a/.github/workflows/release-doctor.yml b/.github/workflows/release-doctor.yml index 2d30d8a..e0f7f16 100644 --- a/.github/workflows/release-doctor.yml +++ b/.github/workflows/release-doctor.yml @@ -7,7 +7,7 @@ jobs: release_doctor: name: release doctor runs-on: ubuntu-latest - if: github.repository == 'undefined/unitycatalog-python' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next') + if: github.repository == 'samster25/unitycatalog-python' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next') steps: - uses: actions/checkout@v4 @@ -16,5 +16,4 @@ jobs: run: | bash ./bin/check-release-environment env: - STAINLESS_API_KEY: ${{ secrets.STAINLESS_API_KEY }} PYPI_TOKEN: ${{ secrets.UNITYCATALOG_PYPI_TOKEN || secrets.PYPI_TOKEN }} diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 256ef3c..e947d41 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -59,7 +59,7 @@ If you’d like to use the repository from source, you can either install from g To install via git: ```bash -pip install git+ssh://git@github.com/undefined/unitycatalog-python.git +pip install git+ssh://git@github.com/samster25/unitycatalog-python.git ``` Alternatively, you can build from source and install the wheel file: @@ -117,7 +117,7 @@ the changes aren't made through the automated pipeline, you may want to make rel ### Publish with a GitHub workflow -You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/undefined/unitycatalog-python/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up. +You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/samster25/unitycatalog-python/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up. ### Publish manually diff --git a/README.md b/README.md index 12dcf60..65fdd69 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ The REST API documentation can be found [on docs.unitycatalog.com](https://docs. ```sh # install from the production repo -pip install git+ssh://git@github.com/undefined/unitycatalog-python.git +pip install git+ssh://git@github.com/samster25/unitycatalog-python.git ``` > [!NOTE] @@ -205,9 +205,9 @@ catalog = response.parse() # get the object that `catalogs.create()` would have print(catalog.id) ``` -These methods return an [`APIResponse`](https://github.com/undefined/unitycatalog-python/tree/main/src/unitycatalog/_response.py) object. +These methods return an [`APIResponse`](https://github.com/samster25/unitycatalog-python/tree/main/src/unitycatalog/_response.py) object. -The async client returns an [`AsyncAPIResponse`](https://github.com/undefined/unitycatalog-python/tree/main/src/unitycatalog/_response.py) with the same structure, the only difference being `await`able methods for reading the response content. +The async client returns an [`AsyncAPIResponse`](https://github.com/samster25/unitycatalog-python/tree/main/src/unitycatalog/_response.py) with the same structure, the only difference being `await`able methods for reading the response content. #### `.with_streaming_response` @@ -297,7 +297,7 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience. -We are keen for your feedback; please open an [issue](https://www.github.com/undefined/unitycatalog-python/issues) with questions, bugs, or suggestions. +We are keen for your feedback; please open an [issue](https://www.github.com/samster25/unitycatalog-python/issues) with questions, bugs, or suggestions. ## Requirements diff --git a/bin/check-release-environment b/bin/check-release-environment index 2760a89..a1fe51f 100644 --- a/bin/check-release-environment +++ b/bin/check-release-environment @@ -3,10 +3,6 @@ warnings=() errors=() -if [ -z "${STAINLESS_API_KEY}" ]; then - errors+=("The STAINLESS_API_KEY secret has not been set. Please contact Stainless for an API key & set it in your organization secrets on GitHub.") -fi - if [ -z "${PYPI_TOKEN}" ]; then warnings+=("The UNITYCATALOG_PYPI_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets.") fi diff --git a/pyproject.toml b/pyproject.toml index 7cfd4a3..8b1a8d4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,8 +39,8 @@ classifiers = [ [project.urls] -Homepage = "https://github.com/undefined/unitycatalog-python" -Repository = "https://github.com/undefined/unitycatalog-python" +Homepage = "https://github.com/samster25/unitycatalog-python" +Repository = "https://github.com/samster25/unitycatalog-python" @@ -108,7 +108,7 @@ path = "README.md" [[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]] # replace relative links with absolute links pattern = '\[(.+?)\]\(((?!https?://)\S+?)\)' -replacement = '[\1](https://github.com/undefined/unitycatalog-python/tree/main/\g<2>)' +replacement = '[\1](https://github.com/samster25/unitycatalog-python/tree/main/\g<2>)' [tool.black] line-length = 120 From d3d63dfa60a4f9bd516a0c00d6c1f7751acc9e82 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 14 Jun 2024 06:34:53 +0000 Subject: [PATCH 2/5] chore: update SDK settings (#3) --- README.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 65fdd69..1664a8f 100644 --- a/README.md +++ b/README.md @@ -15,13 +15,10 @@ The REST API documentation can be found [on docs.unitycatalog.com](https://docs. ## Installation ```sh -# install from the production repo -pip install git+ssh://git@github.com/samster25/unitycatalog-python.git +# install from PyPI +pip install --pre unitycatalog ``` -> [!NOTE] -> Once this package is [published to PyPI](https://app.stainlessapi.com/docs/guides/publish), this will become: `pip install --pre unitycatalog` - ## Usage The full API of this library can be found in [api.md](api.md). From ba6b92f3f0653dd8eae387b0407dc532a59950f1 Mon Sep 17 00:00:00 2001 From: Stainless Bot Date: Fri, 14 Jun 2024 06:58:28 +0000 Subject: [PATCH 3/5] feat: bump version --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 8b1a8d4..b13ecf2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "unitycatalog" -version = "0.0.1-alpha.0" +version = "0.1.1" description = "The official Python library for the unitycatalog API" dynamic = ["readme"] license = "Apache-2.0" From 853259d45997049610c1494ccddcfb5179f34182 Mon Sep 17 00:00:00 2001 From: Stainless Bot Date: Mon, 8 Jul 2024 16:26:26 +0000 Subject: [PATCH 4/5] feat: fix api docs link --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1664a8f..44c2bfb 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ It is generated with [Stainless](https://www.stainlessapi.com/). ## Documentation -The REST API documentation can be found [on docs.unitycatalog.com](https://docs.unitycatalog.com). The full API of this library can be found in [api.md](api.md). +The REST API documentation can be found [on docs.unitycatalog.com](https://docs.unitycatalog.com). The full API of this library can be found in [api.md](https://github.com/samster25/unitycatalog-python/blob/main/api.md). ## Installation @@ -21,7 +21,7 @@ pip install --pre unitycatalog ## Usage -The full API of this library can be found in [api.md](api.md). +The full API of this library can be found in [api.md](https://github.com/samster25/unitycatalog-python/blob/main/api.md). ```python from unitycatalog import Unitycatalog From 11c0bda125c8f8edbfd24c12d241a1bc3c167e84 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 8 Jul 2024 16:26:34 +0000 Subject: [PATCH 5/5] release: 0.1.0-alpha.1 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 17 +++++++++++++++++ pyproject.toml | 2 +- src/unitycatalog/_version.py | 2 +- 4 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 CHANGELOG.md diff --git a/.release-please-manifest.json b/.release-please-manifest.json index c476280..ba6c348 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.0.1-alpha.0" + ".": "0.1.0-alpha.1" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..7befbff --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,17 @@ +# Changelog + +## 0.1.0-alpha.1 (2024-07-08) + +Full Changelog: [v0.0.1-alpha.0...v0.1.0-alpha.1](https://github.com/samster25/unitycatalog-python/compare/v0.0.1-alpha.0...v0.1.0-alpha.1) + +### Features + +* bump version ([ba6b92f](https://github.com/samster25/unitycatalog-python/commit/ba6b92f3f0653dd8eae387b0407dc532a59950f1)) +* fix api docs link ([853259d](https://github.com/samster25/unitycatalog-python/commit/853259d45997049610c1494ccddcfb5179f34182)) + + +### Chores + +* go live ([#2](https://github.com/samster25/unitycatalog-python/issues/2)) ([68a97b6](https://github.com/samster25/unitycatalog-python/commit/68a97b661c329bcbf69c45674dec526e5153bc77)) +* update SDK settings ([77a5255](https://github.com/samster25/unitycatalog-python/commit/77a525572e972c8bf9ff5fa617a6849225f3e1b5)) +* update SDK settings ([#3](https://github.com/samster25/unitycatalog-python/issues/3)) ([d3d63df](https://github.com/samster25/unitycatalog-python/commit/d3d63dfa60a4f9bd516a0c00d6c1f7751acc9e82)) diff --git a/pyproject.toml b/pyproject.toml index b13ecf2..bbb6f7d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "unitycatalog" -version = "0.1.1" +version = "0.1.0-alpha.1" description = "The official Python library for the unitycatalog API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/unitycatalog/_version.py b/src/unitycatalog/_version.py index a4a8b57..3e7803e 100644 --- a/src/unitycatalog/_version.py +++ b/src/unitycatalog/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "unitycatalog" -__version__ = "0.0.1-alpha.0" # x-release-please-version +__version__ = "0.1.0-alpha.1" # x-release-please-version