Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release: 0.1.0-alpha.1 #6

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 0 additions & 38 deletions .github/workflows/create-releases.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/handle-release-pr-title-edit.yml

This file was deleted.

8 changes: 6 additions & 2 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/release-doctor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.0.1-alpha.0"
".": "0.1.0-alpha.1"
}
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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))
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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://[email protected]/undefined/unitycatalog-python.git
pip install git+ssh://[email protected]/samster25/unitycatalog-python.git
```

Alternatively, you can build from source and install the wheel file:
Expand Down Expand Up @@ -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

Expand Down
17 changes: 7 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,18 @@ 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

```sh
# install from the production repo
pip install git+ssh://[email protected]/undefined/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).
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
Expand Down Expand Up @@ -205,9 +202,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`

Expand Down Expand Up @@ -297,7 +294,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

Expand Down
4 changes: 0 additions & 4 deletions bin/check-release-environment
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "unitycatalog"
version = "0.0.1-alpha.0"
version = "0.1.0-alpha.1"
description = "The official Python library for the unitycatalog API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down Expand Up @@ -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"



Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/unitycatalog/_version.py
Original file line number Diff line number Diff line change
@@ -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