Skip to content

Commit a18f18f

Browse files
authored
Merge pull request #1 from Alchemyst-ai/release-please--branches--main--changes--next
release: 0.0.2
2 parents 23acf0b + 33e70a5 commit a18f18f

19 files changed

Lines changed: 209 additions & 60 deletions

.github/workflows/publish-pypi.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This workflow is triggered when a GitHub release is created.
2+
# It can also be run manually to re-publish to PyPI in case it failed for some reason.
3+
# You can run this workflow by navigating to https://www.github.com/Alchemyst-ai/alchemyst-sdk-python/actions/workflows/publish-pypi.yml
4+
name: Publish PyPI
5+
on:
6+
workflow_dispatch:
7+
8+
release:
9+
types: [published]
10+
11+
jobs:
12+
publish:
13+
name: publish
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Install Rye
20+
run: |
21+
curl -sSf https://rye.astral.sh/get | bash
22+
echo "$HOME/.rye/shims" >> $GITHUB_PATH
23+
env:
24+
RYE_VERSION: '0.44.0'
25+
RYE_INSTALL_OPTION: '--yes'
26+
27+
- name: Publish to PyPI
28+
run: |
29+
bash ./bin/publish-pypi
30+
env:
31+
PYPI_TOKEN: ${{ secrets.ALCHEMYST_AI_SDK_2_PYPI_TOKEN || secrets.PYPI_TOKEN }}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Release Doctor
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
workflow_dispatch:
7+
8+
jobs:
9+
release_doctor:
10+
name: release doctor
11+
runs-on: ubuntu-latest
12+
if: github.repository == 'Alchemyst-ai/alchemyst-sdk-python' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Check release environment
18+
run: |
19+
bash ./bin/check-release-environment
20+
env:
21+
PYPI_TOKEN: ${{ secrets.ALCHEMYST_AI_SDK_2_PYPI_TOKEN || secrets.PYPI_TOKEN }}

.release-please-manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "0.0.2"
3+
}

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 8
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/alchemyst-ai%2Falchemyst-ai-sdk-2-38251f330bf657054b433125f73ccf13300a59451a9f4020df7dce0745695e8e.yml
33
openapi_spec_hash: bff23ecf1dea45ee46535d56fd2668c0
4-
config_hash: 5f7af831f8a94514a7408ec08d58c21d
4+
config_hash: 13f9b7baffb8894a8901fc959bf9d7e9

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Changelog
2+
3+
## 0.0.2 (2025-09-18)
4+
5+
Full Changelog: [v0.0.1...v0.0.2](https://github.com/Alchemyst-ai/alchemyst-sdk-python/compare/v0.0.1...v0.0.2)
6+
7+
### Chores
8+
9+
* update SDK settings ([07f1747](https://github.com/Alchemyst-ai/alchemyst-sdk-python/commit/07f1747979ce926f286592beca52748afdd79a11))
10+
* update SDK settings ([be467f2](https://github.com/Alchemyst-ai/alchemyst-sdk-python/commit/be467f232ee161643d1a9ad804161598900d56ff))

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ If you’d like to use the repository from source, you can either install from g
6262
To install via git:
6363

6464
```sh
65-
$ pip install git+ssh://git@github.com/stainless-sdks/alchemyst-ai-sdk-2-python.git
65+
$ pip install git+ssh://git@github.com/Alchemyst-ai/alchemyst-sdk-python.git
6666
```
6767

6868
Alternatively, you can build from source and install the wheel file:
@@ -120,7 +120,7 @@ the changes aren't made through the automated pipeline, you may want to make rel
120120

121121
### Publish with a GitHub workflow
122122

123-
You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/stainless-sdks/alchemyst-ai-sdk-2-python/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up.
123+
You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/Alchemyst-ai/alchemyst-sdk-python/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up.
124124

125125
### Publish manually
126126

README.md

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Alchemyst AI SDK 2 Python API library
22

33
<!-- prettier-ignore -->
4-
[![PyPI version](https://img.shields.io/pypi/v/alchemyst_ai_sdk_2.svg?label=pypi%20(stable))](https://pypi.org/project/alchemyst_ai_sdk_2/)
4+
[![PyPI version](https://img.shields.io/pypi/v/alchemystai.svg?label=pypi%20(stable))](https://pypi.org/project/alchemystai/)
55

66
The Alchemyst AI SDK 2 Python library provides convenient access to the Alchemyst AI SDK 2 REST API from any Python 3.8+
77
application. The library includes type definitions for all request params and response fields,
@@ -16,13 +16,10 @@ The full API of this library can be found in [api.md](api.md).
1616
## Installation
1717

1818
```sh
19-
# install from this staging repo
20-
pip install git+ssh://git@github.com/stainless-sdks/alchemyst-ai-sdk-2-python.git
19+
# install from PyPI
20+
pip install alchemystai
2121
```
2222

23-
> [!NOTE]
24-
> Once this package is [published to PyPI](https://www.stainless.com/docs/guides/publish), this will become: `pip install alchemyst_ai_sdk_2`
25-
2623
## Usage
2724

2825
The full API of this library can be found in [api.md](api.md).
@@ -73,8 +70,8 @@ By default, the async client uses `httpx` for HTTP requests. However, for improv
7370
You can enable this by installing `aiohttp`:
7471

7572
```sh
76-
# install from this staging repo
77-
pip install 'alchemyst_ai_sdk_2[aiohttp] @ git+ssh://git@github.com/stainless-sdks/alchemyst-ai-sdk-2-python.git'
73+
# install from PyPI
74+
pip install alchemystai[aiohttp]
7875
```
7976

8077
Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:
@@ -250,9 +247,9 @@ context = response.parse() # get the object that `v1.context.add()` would have
250247
print(context)
251248
```
252249

253-
These methods return an [`APIResponse`](https://github.com/stainless-sdks/alchemyst-ai-sdk-2-python/tree/main/src/alchemyst_ai_sdk_2/_response.py) object.
250+
These methods return an [`APIResponse`](https://github.com/Alchemyst-ai/alchemyst-sdk-python/tree/main/src/alchemyst_ai_sdk_2/_response.py) object.
254251

255-
The async client returns an [`AsyncAPIResponse`](https://github.com/stainless-sdks/alchemyst-ai-sdk-2-python/tree/main/src/alchemyst_ai_sdk_2/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
252+
The async client returns an [`AsyncAPIResponse`](https://github.com/Alchemyst-ai/alchemyst-sdk-python/tree/main/src/alchemyst_ai_sdk_2/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
256253

257254
#### `.with_streaming_response`
258255

@@ -356,7 +353,7 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con
356353

357354
We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
358355

359-
We are keen for your feedback; please open an [issue](https://www.github.com/stainless-sdks/alchemyst-ai-sdk-2-python/issues) with questions, bugs, or suggestions.
356+
We are keen for your feedback; please open an [issue](https://www.github.com/Alchemyst-ai/alchemyst-sdk-python/issues) with questions, bugs, or suggestions.
360357

361358
### Determining the installed version
362359

bin/check-release-environment

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/usr/bin/env bash
2+
3+
errors=()
4+
5+
if [ -z "${PYPI_TOKEN}" ]; then
6+
errors+=("The PYPI_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets.")
7+
fi
8+
9+
lenErrors=${#errors[@]}
10+
11+
if [[ lenErrors -gt 0 ]]; then
12+
echo -e "Found the following errors in the release environment:\n"
13+
14+
for error in "${errors[@]}"; do
15+
echo -e "- $error\n"
16+
done
17+
18+
exit 1
19+
fi
20+
21+
echo "The environment is ready to push releases!"

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
2-
name = "alchemyst_ai_sdk_2"
3-
version = "0.0.1"
2+
name = "alchemystai"
3+
version = "0.0.2"
44
description = "The official Python library for the alchemyst-ai-sdk-2 API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"
@@ -35,8 +35,8 @@ classifiers = [
3535
]
3636

3737
[project.urls]
38-
Homepage = "https://github.com/stainless-sdks/alchemyst-ai-sdk-2-python"
39-
Repository = "https://github.com/stainless-sdks/alchemyst-ai-sdk-2-python"
38+
Homepage = "https://github.com/Alchemyst-ai/alchemyst-sdk-python"
39+
Repository = "https://github.com/Alchemyst-ai/alchemyst-sdk-python"
4040

4141
[project.optional-dependencies]
4242
aiohttp = ["aiohttp", "httpx_aiohttp>=0.1.8"]
@@ -124,7 +124,7 @@ path = "README.md"
124124
[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
125125
# replace relative links with absolute links
126126
pattern = '\[(.+?)\]\(((?!https?://)\S+?)\)'
127-
replacement = '[\1](https://github.com/stainless-sdks/alchemyst-ai-sdk-2-python/tree/main/\g<2>)'
127+
replacement = '[\1](https://github.com/Alchemyst-ai/alchemyst-sdk-python/tree/main/\g<2>)'
128128

129129
[tool.pytest.ini_options]
130130
testpaths = ["tests"]

release-please-config.json

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"packages": {
3+
".": {}
4+
},
5+
"$schema": "https://raw.githubusercontent.com/stainless-api/release-please/main/schemas/config.json",
6+
"include-v-in-tag": true,
7+
"include-component-in-tag": false,
8+
"versioning": "prerelease",
9+
"prerelease": true,
10+
"bump-minor-pre-major": true,
11+
"bump-patch-for-minor-pre-major": false,
12+
"pull-request-header": "Automated Release PR",
13+
"pull-request-title-pattern": "release: ${version}",
14+
"changelog-sections": [
15+
{
16+
"type": "feat",
17+
"section": "Features"
18+
},
19+
{
20+
"type": "fix",
21+
"section": "Bug Fixes"
22+
},
23+
{
24+
"type": "perf",
25+
"section": "Performance Improvements"
26+
},
27+
{
28+
"type": "revert",
29+
"section": "Reverts"
30+
},
31+
{
32+
"type": "chore",
33+
"section": "Chores"
34+
},
35+
{
36+
"type": "docs",
37+
"section": "Documentation"
38+
},
39+
{
40+
"type": "style",
41+
"section": "Styles"
42+
},
43+
{
44+
"type": "refactor",
45+
"section": "Refactors"
46+
},
47+
{
48+
"type": "test",
49+
"section": "Tests",
50+
"hidden": true
51+
},
52+
{
53+
"type": "build",
54+
"section": "Build System"
55+
},
56+
{
57+
"type": "ci",
58+
"section": "Continuous Integration",
59+
"hidden": true
60+
}
61+
],
62+
"release-type": "python",
63+
"extra-files": [
64+
"src/alchemyst_ai_sdk_2/_version.py"
65+
]
66+
}

0 commit comments

Comments
 (0)