Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pnpm clean
**Semi-auto:**

Follow https://github.com/Azure/autorest.python/blob/main/.github/skills/bump-and-release/SKILL.md to make a release PR.
After it merged, trigger [release pipeline](https://dev.azure.com/azure-sdk/internal/_build?definitionId=1668) to release new version.
After it merged, [release pipeline](https://dev.azure.com/azure-sdk/internal/_build?definitionId=1668) will be triggered automatically to release new version.

## Contributing

Expand Down
32 changes: 30 additions & 2 deletions eng/pipelines/publish-release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# This is a manual pipeline, don't trigger automatically
trigger: none
# Automatically trigger on main branch merges
trigger:
branches:
include:
- main
pr: none

extends:
Expand Down Expand Up @@ -28,6 +31,31 @@ extends:
inputs:
versionSpec: 3.10

- script: |
set -e

# Check @azure-tools/typespec-python
TYPESPEC_VERSION=$(node -p "require('./packages/typespec-python/package.json').version")
echo "Checking if @azure-tools/typespec-python@$TYPESPEC_VERSION is already published..."
if npm view @azure-tools/typespec-python@$TYPESPEC_VERSION version 2>/dev/null; then
echo "##vso[task.logissue type=error]@azure-tools/typespec-python@$TYPESPEC_VERSION is already published to npm"
exit 1
fi
echo "@azure-tools/typespec-python@$TYPESPEC_VERSION is not yet published"

# Check @autorest/python
AUTOREST_VERSION=$(node -p "require('./packages/autorest.python/package.json').version")
echo "Checking if @autorest/python@$AUTOREST_VERSION is already published..."
if npm view @autorest/python@$AUTOREST_VERSION version 2>/dev/null; then
echo "##vso[task.logissue type=error]@autorest/python@$AUTOREST_VERSION is already published to npm"
exit 1
fi
echo "@autorest/python@$AUTOREST_VERSION is not yet published"

echo "Version check passed. Proceeding with build and tests."
displayName: Check if versions are already published
workingDirectory: $(Build.SourcesDirectory)

- script: npm install -g pnpm@9.5.0
displayName: Install PNPM 9.5.0

Expand Down
7 changes: 7 additions & 0 deletions packages/autorest.python/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Release

## 6.49.0

### Features

- [#3332](https://github.com/Azure/autorest.python/pull/3332) Add support for `@clientOption("includeRootSlash")` to control stripping of the slash after the root url


## 6.48.3

### Bug Fixes
Expand Down
6 changes: 3 additions & 3 deletions packages/autorest.python/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@autorest/python",
"version": "6.48.3",
"version": "6.49.0",
"description": "The Python extension for generators in AutoRest.",
"scripts": {
"start": "node ./scripts/run-python3.js ./scripts/start.py",
Expand Down Expand Up @@ -29,7 +29,7 @@
},
"homepage": "https://github.com/Azure/autorest.python/blob/main/README.md",
"dependencies": {
"@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTgzOTQzNy9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.26.3.tgz",
"@typespec/http-client-python": "~0.27.0",
"@autorest/system-requirements": "~1.0.2",
"fs-extra": "~11.2.0",
"tsx": "~4.19.1"
Expand All @@ -47,4 +47,4 @@
"requirements.txt",
"generator/"
]
}
}
7 changes: 7 additions & 0 deletions packages/typespec-python/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Release

## 0.60.0

### Features

- [#3332](https://github.com/Azure/autorest.python/pull/3332) Add support for `@clientOption("includeRootSlash")` to control stripping of the slash after the root url


## 0.59.3

### Bug Fixes
Expand Down
6 changes: 3 additions & 3 deletions packages/typespec-python/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@azure-tools/typespec-python",
"version": "0.59.3",
"version": "0.60.0",
"author": "Microsoft Corporation",
"description": "TypeSpec emitter for Python SDKs",
"homepage": "https://github.com/Azure/autorest.python",
Expand Down Expand Up @@ -67,7 +67,7 @@
"js-yaml": "~4.1.0",
"semver": "~7.6.2",
"tsx": "~4.19.1",
"@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTgzOTQzNy9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.26.3.tgz",
"@typespec/http-client-python": "~0.27.0",
"fs-extra": "~11.2.0"
},
"devDependencies": {
Expand Down Expand Up @@ -103,4 +103,4 @@
"chalk": "5.3.0",
"@types/fs-extra": "11.0.4"
}
}
}
15 changes: 7 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.