Skip to content

Commit d086a7e

Browse files
authored
Merge pull request #12 from orq-ai/feat/ORQ-6626-setup-python-sdk-release
feat: setup new sdk version & github workflow
2 parents 5f55b40 + 0aed686 commit d086a7e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+193
-2579
lines changed

.DS_Store

-6 KB
Binary file not shown.

.coveragerc

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: '[Stable] Generate'
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- .speakeasy/gen.yaml
9+
10+
jobs:
11+
publish:
12+
uses: ./.github/workflows/sdk_generation.yml
13+
name: Runner
14+
secrets: inherit
15+
with:
16+
target: orq-ai-sdk-python

.github/workflows/sdk_generation.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Generate
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
target:
7+
type: string
8+
default: false
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: false
13+
14+
env:
15+
DOCKER_DEFAULT_PLATFORM: linux/amd64
16+
17+
permissions:
18+
checks: write
19+
contents: write
20+
pull-requests: write
21+
statuses: write
22+
id-token: write
23+
24+
jobs:
25+
generate:
26+
uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15
27+
with:
28+
mode: direct
29+
target: ${{ inputs.target }}
30+
secrets:
31+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
32+
pypi_token: ${{ secrets.PYPI_TOKEN }}
33+
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: '[Pre-release] Generate'
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- packages/orq-rc/.speakeasy/gen.yaml
9+
10+
jobs:
11+
publish:
12+
uses: ./.github/workflows/sdk_generation.yml
13+
name: Runner
14+
secrets: inherit
15+
with:
16+
target: orq-ai-sdk-prerelease-python

.github/workflows/test.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.gitignore

Lines changed: 0 additions & 18 deletions
This file was deleted.

.speakeasy/gen.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
configVersion: 2.0.0
2+
generation:
3+
sdkClassName: Orq
4+
maintainOpenAPIOrder: true
5+
usageSnippets:
6+
optionalPropertyRendering: withExample
7+
useClassNamesForArrayFields: true
8+
fixes:
9+
nameResolutionDec2023: true
10+
parameterOrderingFeb2024: true
11+
requestResponseComponentNamesFeb2024: true
12+
auth:
13+
oAuth2ClientCredentialsEnabled: true
14+
oAuth2PasswordEnabled: false
15+
python:
16+
version: 0.0.1
17+
additionalDependencies:
18+
dev: {}
19+
main: {}
20+
authors:
21+
- Orq
22+
clientServerStatusCodesAsErrors: true
23+
defaultErrorName: APIError
24+
description: Python Client SDK for the Orq API.
25+
enumFormat: union
26+
envVarPrefix: ORQ
27+
fixFlags:
28+
responseRequiredSep2024: false
29+
flattenGlobalSecurity: true
30+
flattenRequests: true
31+
flatteningOrder: parameters-first
32+
imports:
33+
option: openapi
34+
paths:
35+
callbacks: ""
36+
errors: ""
37+
operations: ""
38+
shared: ""
39+
webhooks: ""
40+
inputModelSuffix: input
41+
maxMethodParams: 15
42+
methodArguments: infer-optional-args
43+
outputModelSuffix: output
44+
packageName: orq-ai-sdk
45+
responseFormat: flat
46+
templateVersion: v2

.speakeasy/workflow.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
workflowVersion: 1.0.0
2+
speakeasyVersion: latest
3+
sources:
4+
orq-ai-sdk-prerelease-python:
5+
inputs:
6+
- location: ./openapi-prerelease.yaml
7+
registry:
8+
location: registry.speakeasyapi.dev/orq/orq/orq-ai-sdk-prerelease-python
9+
orq-ai-sdk-python:
10+
inputs:
11+
- location: ./openapi.yaml
12+
registry:
13+
location: registry.speakeasyapi.dev/orq/orq/orq-ai-sdk-python
14+
targets:
15+
orq-ai-sdk-prerelease-python:
16+
target: typescript
17+
source: orq-ai-sdk-prerelease-python
18+
output: ./packages/orq-rc
19+
publish:
20+
pypi:
21+
token: $pypi_token
22+
codeSamples:
23+
registry:
24+
location: registry.speakeasyapi.dev/orq/orq/orq-ai-sdk-prerelease-python-code-samples
25+
blocking: false
26+
orq-ai-sdk-python:
27+
target: typescript
28+
source: orq-ai-sdk-python
29+
publish:
30+
pypi:
31+
token: $pypi_token
32+
codeSamples:
33+
registry:
34+
location: registry.speakeasyapi.dev/orq/orq/orq-ai-sdk-python-code-samples
35+
blocking: false

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
5757

5858
### Added
5959

60-
- When `environments` property is set on the `context` the global `environment` value is overwriten.
60+
- When `environments` property is set on the `context` the global `environment` value is overwriten.

0 commit comments

Comments
 (0)