Skip to content

Commit 49112f9

Browse files
committedFeb 11, 2025
chore: go live (#1)
1 parent af22da1 commit 49112f9

35 files changed

+257
-115
lines changed
 

Diff for: ‎.github/workflows/publish-pypi.yml

+31
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/gitpod-io/flex-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.35.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.GITPOD_PYPI_TOKEN || secrets.PYPI_TOKEN }}

Diff for: ‎.github/workflows/release-doctor.yml

+21
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 == 'gitpod-io/flex-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.GITPOD_PYPI_TOKEN || secrets.PYPI_TOKEN }}

Diff for: ‎.release-please-manifest.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "0.0.1-alpha.0"
3+
}

Diff for: ‎CONTRIBUTING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ If you’d like to use the repository from source, you can either install from g
6363
To install via git:
6464

6565
```sh
66-
$ pip install git+ssh://git@github.com/stainless-sdks/gitpod-python.git
66+
$ pip install git+ssh://git@github.com/gitpod-io/flex-sdk-python.git
6767
```
6868

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

122122
### Publish with a GitHub workflow
123123

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

126126
### Publish manually
127127

Diff for: ‎README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ The REST API documentation can be found on [docs.gitpod.com](https://docs.gitpod
1515
## Installation
1616

1717
```sh
18-
# install from this staging repo
19-
pip install git+ssh://git@github.com/stainless-sdks/gitpod-python.git
18+
# install from the production repo
19+
pip install git+ssh://git@github.com/gitpod-io/flex-sdk-python.git
2020
```
2121

2222
> [!NOTE]
@@ -269,9 +269,9 @@ runner = response.parse() # get the object that `runners.create()` would have r
269269
print(runner.access_token)
270270
```
271271

272-
These methods return an [`APIResponse`](https://github.com/stainless-sdks/gitpod-python/tree/main/src/gitpod/_response.py) object.
272+
These methods return an [`APIResponse`](https://github.com/gitpod-io/flex-sdk-python/tree/main/src/gitpod/_response.py) object.
273273

274-
The async client returns an [`AsyncAPIResponse`](https://github.com/stainless-sdks/gitpod-python/tree/main/src/gitpod/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
274+
The async client returns an [`AsyncAPIResponse`](https://github.com/gitpod-io/flex-sdk-python/tree/main/src/gitpod/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
275275

276276
#### `.with_streaming_response`
277277

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

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

378-
We are keen for your feedback; please open an [issue](https://www.github.com/stainless-sdks/gitpod-python/issues) with questions, bugs, or suggestions.
378+
We are keen for your feedback; please open an [issue](https://www.github.com/gitpod-io/flex-sdk-python/issues) with questions, bugs, or suggestions.
379379

380380
### Determining the installed version
381381

Diff for: ‎bin/check-release-environment

+21
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 GITPOD_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!"

Diff for: ‎pyproject.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ classifiers = [
3434
]
3535

3636
[project.urls]
37-
Homepage = "https://github.com/stainless-sdks/gitpod-python"
38-
Repository = "https://github.com/stainless-sdks/gitpod-python"
37+
Homepage = "https://github.com/gitpod-io/flex-sdk-python"
38+
Repository = "https://github.com/gitpod-io/flex-sdk-python"
3939

4040

4141

@@ -122,7 +122,7 @@ path = "README.md"
122122
[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
123123
# replace relative links with absolute links
124124
pattern = '\[(.+?)\]\(((?!https?://)\S+?)\)'
125-
replacement = '[\1](https://github.com/stainless-sdks/gitpod-python/tree/main/\g<2>)'
125+
replacement = '[\1](https://github.com/gitpod-io/flex-sdk-python/tree/main/\g<2>)'
126126

127127
[tool.pytest.ini_options]
128128
testpaths = ["tests"]

Diff for: ‎release-please-config.json

+66
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/gitpod/_version.py"
65+
]
66+
}

Diff for: ‎src/gitpod/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "gitpod"
4-
__version__ = "0.0.1-alpha.0"
4+
__version__ = "0.0.1-alpha.0" # x-release-please-version

Diff for: ‎src/gitpod/resources/accounts.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def with_raw_response(self) -> AccountsResourceWithRawResponse:
3939
This property can be used as a prefix for any HTTP method call to return
4040
the raw response object instead of the parsed content.
4141
42-
For more information, see https://www.github.com/stainless-sdks/gitpod-python#accessing-raw-response-data-eg-headers
42+
For more information, see https://www.github.com/gitpod-io/flex-sdk-python#accessing-raw-response-data-eg-headers
4343
"""
4444
return AccountsResourceWithRawResponse(self)
4545

@@ -48,7 +48,7 @@ def with_streaming_response(self) -> AccountsResourceWithStreamingResponse:
4848
"""
4949
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
5050
51-
For more information, see https://www.github.com/stainless-sdks/gitpod-python#with_streaming_response
51+
For more information, see https://www.github.com/gitpod-io/flex-sdk-python#with_streaming_response
5252
"""
5353
return AccountsResourceWithStreamingResponse(self)
5454

@@ -227,7 +227,7 @@ def with_raw_response(self) -> AsyncAccountsResourceWithRawResponse:
227227
This property can be used as a prefix for any HTTP method call to return
228228
the raw response object instead of the parsed content.
229229
230-
For more information, see https://www.github.com/stainless-sdks/gitpod-python#accessing-raw-response-data-eg-headers
230+
For more information, see https://www.github.com/gitpod-io/flex-sdk-python#accessing-raw-response-data-eg-headers
231231
"""
232232
return AsyncAccountsResourceWithRawResponse(self)
233233

@@ -236,7 +236,7 @@ def with_streaming_response(self) -> AsyncAccountsResourceWithStreamingResponse:
236236
"""
237237
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
238238
239-
For more information, see https://www.github.com/stainless-sdks/gitpod-python#with_streaming_response
239+
For more information, see https://www.github.com/gitpod-io/flex-sdk-python#with_streaming_response
240240
"""
241241
return AsyncAccountsResourceWithStreamingResponse(self)
242242

Diff for: ‎src/gitpod/resources/editors.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def with_raw_response(self) -> EditorsResourceWithRawResponse:
3434
This property can be used as a prefix for any HTTP method call to return
3535
the raw response object instead of the parsed content.
3636
37-
For more information, see https://www.github.com/stainless-sdks/gitpod-python#accessing-raw-response-data-eg-headers
37+
For more information, see https://www.github.com/gitpod-io/flex-sdk-python#accessing-raw-response-data-eg-headers
3838
"""
3939
return EditorsResourceWithRawResponse(self)
4040

@@ -43,7 +43,7 @@ def with_streaming_response(self) -> EditorsResourceWithStreamingResponse:
4343
"""
4444
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
4545
46-
For more information, see https://www.github.com/stainless-sdks/gitpod-python#with_streaming_response
46+
For more information, see https://www.github.com/gitpod-io/flex-sdk-python#with_streaming_response
4747
"""
4848
return EditorsResourceWithStreamingResponse(self)
4949

@@ -184,7 +184,7 @@ def with_raw_response(self) -> AsyncEditorsResourceWithRawResponse:
184184
This property can be used as a prefix for any HTTP method call to return
185185
the raw response object instead of the parsed content.
186186
187-
For more information, see https://www.github.com/stainless-sdks/gitpod-python#accessing-raw-response-data-eg-headers
187+
For more information, see https://www.github.com/gitpod-io/flex-sdk-python#accessing-raw-response-data-eg-headers
188188
"""
189189
return AsyncEditorsResourceWithRawResponse(self)
190190

@@ -193,7 +193,7 @@ def with_streaming_response(self) -> AsyncEditorsResourceWithStreamingResponse:
193193
"""
194194
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
195195
196-
For more information, see https://www.github.com/stainless-sdks/gitpod-python#with_streaming_response
196+
For more information, see https://www.github.com/gitpod-io/flex-sdk-python#with_streaming_response
197197
"""
198198
return AsyncEditorsResourceWithStreamingResponse(self)
199199

Diff for: ‎src/gitpod/resources/environments/automations/automations.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def with_raw_response(self) -> AutomationsResourceWithRawResponse:
5555
This property can be used as a prefix for any HTTP method call to return
5656
the raw response object instead of the parsed content.
5757
58-
For more information, see https://www.github.com/stainless-sdks/gitpod-python#accessing-raw-response-data-eg-headers
58+
For more information, see https://www.github.com/gitpod-io/flex-sdk-python#accessing-raw-response-data-eg-headers
5959
"""
6060
return AutomationsResourceWithRawResponse(self)
6161

@@ -64,7 +64,7 @@ def with_streaming_response(self) -> AutomationsResourceWithStreamingResponse:
6464
"""
6565
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
6666
67-
For more information, see https://www.github.com/stainless-sdks/gitpod-python#with_streaming_response
67+
For more information, see https://www.github.com/gitpod-io/flex-sdk-python#with_streaming_response
6868
"""
6969
return AutomationsResourceWithStreamingResponse(self)
7070

@@ -128,7 +128,7 @@ def with_raw_response(self) -> AsyncAutomationsResourceWithRawResponse:
128128
This property can be used as a prefix for any HTTP method call to return
129129
the raw response object instead of the parsed content.
130130
131-
For more information, see https://www.github.com/stainless-sdks/gitpod-python#accessing-raw-response-data-eg-headers
131+
For more information, see https://www.github.com/gitpod-io/flex-sdk-python#accessing-raw-response-data-eg-headers
132132
"""
133133
return AsyncAutomationsResourceWithRawResponse(self)
134134

@@ -137,7 +137,7 @@ def with_streaming_response(self) -> AsyncAutomationsResourceWithStreamingRespon
137137
"""
138138
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
139139
140-
For more information, see https://www.github.com/stainless-sdks/gitpod-python#with_streaming_response
140+
For more information, see https://www.github.com/gitpod-io/flex-sdk-python#with_streaming_response
141141
"""
142142
return AsyncAutomationsResourceWithStreamingResponse(self)
143143

Diff for: ‎src/gitpod/resources/environments/automations/services.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def with_raw_response(self) -> ServicesResourceWithRawResponse:
4242
This property can be used as a prefix for any HTTP method call to return
4343
the raw response object instead of the parsed content.
4444
45-
For more information, see https://www.github.com/stainless-sdks/gitpod-python#accessing-raw-response-data-eg-headers
45+
For more information, see https://www.github.com/gitpod-io/flex-sdk-python#accessing-raw-response-data-eg-headers
4646
"""
4747
return ServicesResourceWithRawResponse(self)
4848

@@ -51,7 +51,7 @@ def with_streaming_response(self) -> ServicesResourceWithStreamingResponse:
5151
"""
5252
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
5353
54-
For more information, see https://www.github.com/stainless-sdks/gitpod-python#with_streaming_response
54+
For more information, see https://www.github.com/gitpod-io/flex-sdk-python#with_streaming_response
5555
"""
5656
return ServicesResourceWithStreamingResponse(self)
5757

@@ -355,7 +355,7 @@ def with_raw_response(self) -> AsyncServicesResourceWithRawResponse:
355355
This property can be used as a prefix for any HTTP method call to return
356356
the raw response object instead of the parsed content.
357357
358-
For more information, see https://www.github.com/stainless-sdks/gitpod-python#accessing-raw-response-data-eg-headers
358+
For more information, see https://www.github.com/gitpod-io/flex-sdk-python#accessing-raw-response-data-eg-headers
359359
"""
360360
return AsyncServicesResourceWithRawResponse(self)
361361

@@ -364,7 +364,7 @@ def with_streaming_response(self) -> AsyncServicesResourceWithStreamingResponse:
364364
"""
365365
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
366366
367-
For more information, see https://www.github.com/stainless-sdks/gitpod-python#with_streaming_response
367+
For more information, see https://www.github.com/gitpod-io/flex-sdk-python#with_streaming_response
368368
"""
369369
return AsyncServicesResourceWithStreamingResponse(self)
370370

0 commit comments

Comments
 (0)
Please sign in to comment.