File tree Expand file tree Collapse file tree 6 files changed +43
-11
lines changed Expand file tree Collapse file tree 6 files changed +43
-11
lines changed Original file line number Diff line number Diff line change 17
17
timeout-minutes : 10
18
18
name : lint
19
19
runs-on : ${{ github.repository == 'stainless-sdks/open-transit-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
20
+ if : github.event_name == 'push' || github.event.pull_request.head.repo.fork
20
21
steps :
21
22
- uses : actions/checkout@v4
22
23
@@ -34,17 +35,31 @@ jobs:
34
35
- name : Run lints
35
36
run : ./scripts/lint
36
37
37
- upload :
38
- if : github.repository == 'stainless-sdks/open-transit-python'
38
+ build :
39
+ if : github.repository == 'stainless-sdks/open-transit-python' && (github.event_name == 'push' || github.event.pull_request.head.repo.fork)
39
40
timeout-minutes : 10
40
- name : upload
41
+ name : build
41
42
permissions :
42
43
contents : read
43
44
id-token : write
44
45
runs-on : depot-ubuntu-24.04
45
46
steps :
46
47
- uses : actions/checkout@v4
47
48
49
+ - name : Install Rye
50
+ run : |
51
+ curl -sSf https://rye.astral.sh/get | bash
52
+ echo "$HOME/.rye/shims" >> $GITHUB_PATH
53
+ env :
54
+ RYE_VERSION : ' 0.44.0'
55
+ RYE_INSTALL_OPTION : ' --yes'
56
+
57
+ - name : Install dependencies
58
+ run : rye sync --all-features
59
+
60
+ - name : Run build
61
+ run : rye build
62
+
48
63
- name : Get GitHub OIDC Token
49
64
id : github-oidc
50
65
uses : actions/github-script@v6
62
77
timeout-minutes : 10
63
78
name : test
64
79
runs-on : ${{ github.repository == 'stainless-sdks/open-transit-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
80
+ if : github.event_name == 'push' || github.event.pull_request.head.repo.fork
65
81
steps :
66
82
- uses : actions/checkout@v4
67
83
Original file line number Diff line number Diff line change 1
1
{
2
- "." : " 1.13.0 "
2
+ "." : " 1.13.1 "
3
3
}
Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## 1.13.1 (2025-07-02)
4
+
5
+ Full Changelog: [ v1.13.0...v1.13.1] ( https://github.com/OneBusAway/python-sdk/compare/v1.13.0...v1.13.1 )
6
+
7
+ ### Bug Fixes
8
+
9
+ * ** ci:** correct conditional ([ 1b938b2] ( https://github.com/OneBusAway/python-sdk/commit/1b938b23923b4ee59453b26a896747bd7f4d0386 ) )
10
+
11
+
12
+ ### Chores
13
+
14
+ * ** ci:** change upload type ([ add541c] ( https://github.com/OneBusAway/python-sdk/commit/add541c1c196ef11b5ae310d0944b39f476915b0 ) )
15
+ * ** ci:** only run for pushes and fork pull requests ([ e15aec6] ( https://github.com/OneBusAway/python-sdk/commit/e15aec647d9bdbcbd061158740afa8df57f0d41c ) )
16
+
3
17
## 1.13.0 (2025-06-27)
4
18
5
19
Full Changelog: [ v1.12.2...v1.13.0] ( https://github.com/OneBusAway/python-sdk/compare/v1.12.2...v1.13.0 )
Original file line number Diff line number Diff line change 1
1
[project ]
2
2
name = " onebusaway"
3
- version = " 1.13.0 "
3
+ version = " 1.13.1 "
4
4
description = " The official Python library for the onebusaway-sdk API"
5
5
dynamic = [" readme" ]
6
6
license = " Apache-2.0"
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
set -exuo pipefail
3
3
4
- RESPONSE=$( curl -X POST " $URL " \
4
+ FILENAME=$( basename dist/* .whl)
5
+
6
+ RESPONSE=$( curl -X POST " $URL ?filename=$FILENAME " \
5
7
-H " Authorization: Bearer $AUTH " \
6
8
-H " Content-Type: application/json" )
7
9
@@ -12,13 +14,13 @@ if [[ "$SIGNED_URL" == "null" ]]; then
12
14
exit 1
13
15
fi
14
16
15
- UPLOAD_RESPONSE=$( tar -cz . | curl -v -X PUT \
16
- -H " Content-Type: application/gzip " \
17
- --data-binary @- " $SIGNED_URL " 2>&1 )
17
+ UPLOAD_RESPONSE=$( curl -v -X PUT \
18
+ -H " Content-Type: binary/octet-stream " \
19
+ --data-binary " @dist/ $FILENAME " " $SIGNED_URL " 2>&1 )
18
20
19
21
if echo " $UPLOAD_RESPONSE " | grep -q " HTTP/[0-9.]* 200" ; then
20
22
echo -e " \033[32mUploaded build to Stainless storage.\033[0m"
21
- echo -e " \033[32mInstallation: pip install 'https://pkg.stainless.com/s/open-transit-python/$SHA '\033[0m"
23
+ echo -e " \033[32mInstallation: pip install 'https://pkg.stainless.com/s/open-transit-python/$SHA / $FILENAME '\033[0m"
22
24
else
23
25
echo -e " \033[31mFailed to upload artifact.\033[0m"
24
26
exit 1
Original file line number Diff line number Diff line change 1
1
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
3
3
__title__ = "onebusaway"
4
- __version__ = "1.13.0 " # x-release-please-version
4
+ __version__ = "1.13.1 " # x-release-please-version
You can’t perform that action at this time.
0 commit comments