Skip to content

Commit ac2ad23

Browse files
Merge pull request #340 from mistralai/pep420-namespace-migration
feat!: PEP 420 namespace migration for v2.0
2 parents 7b87477 + 1f932e8 commit ac2ad23

411 files changed

Lines changed: 2678 additions & 2176 deletions

File tree

Some content is hidden

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

.github/workflows/sdk_publish_mistralai_sdk.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,23 @@ permissions:
66
statuses: write
77
"on":
88
workflow_dispatch:
9+
inputs:
10+
confirm_publish:
11+
description: 'WARNING: This will publish v2 SDK (mistralai.client namespace) which is still WIP/alpha. To publish v1 (mistralai namespace), use the v1 branch instead. Type "publish" to confirm.'
12+
required: false
13+
type: string
914
push:
1015
branches:
11-
- main
16+
- v1
1217
paths:
1318
- RELEASES.md
1419
- "*/RELEASES.md"
1520
jobs:
1621
publish:
22+
# Auto-publish from v1 branch; require manual confirmation from main
23+
if: |
24+
github.ref == 'refs/heads/v1' ||
25+
(github.event_name == 'workflow_dispatch' && github.event.inputs.confirm_publish == 'publish')
1726
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@7951d9dce457425b900b2dd317253499d98c2587 # v15
1827
secrets:
1928
github_access_token: ${{ secrets.GITHUB_TOKEN }}

.speakeasy/gen.lock

Lines changed: 1196 additions & 1195 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ generation:
2626
generateNewTests: false
2727
skipResponseBodyAssertions: false
2828
python:
29-
version: 1.12.0
29+
version: 2.0.0a1
3030
additionalDependencies:
3131
dev:
3232
pytest: ^8.2.2
@@ -63,7 +63,7 @@ python:
6363
license: ""
6464
maxMethodParams: 15
6565
methodArguments: infer-optional-args
66-
moduleName: ""
66+
moduleName: mistralai.client
6767
multipartArrayFormat: legacy
6868
outputModelSuffix: output
6969
packageManager: uv

.speakeasy/workflow.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ targets:
3939
sourceRevisionDigest: sha256:4e49849eba5334a3fe4a3d081baa9afdecd8f41dfc4c2a5115bc19ead4d92d13
4040
sourceBlobDigest: sha256:3ab3c61ac6a4e9fab37d924d516838ca27dd7e57a1b5e9059d4db2ef29efec56
4141
codeSamplesNamespace: mistral-openapi-code-samples
42-
codeSamplesRevisionDigest: sha256:8fa56ecd9dd6e5f831fb96c4cfd00c65f617a03ff67f876d75ecdf28cb5bbf3c
42+
codeSamplesRevisionDigest: sha256:debd698577e8da014e900a57194128d867ad76fd0d2e2b361e9d0c298700fc67
4343
workflow:
4444
workflowVersion: 1.0.0
4545
speakeasyVersion: 1.685.0

0 commit comments

Comments
 (0)