Skip to content

Commit 1cd12dc

Browse files
iscai-msftiscai-msfttadeleshmsyyc
authored
[python] add chronus version managing (#4676)
Co-authored-by: iscai-msft <[email protected]> Co-authored-by: Chenjie Shi <[email protected]> Co-authored-by: Yuchao Yan <[email protected]>
1 parent 732db95 commit 1cd12dc

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
changeKind: internal
3+
packages:
4+
- "@typespec/http-client-python"
5+
---
6+
7+
add chronus to do version management

.chronus/config.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,16 @@ versionPolicies:
5555
- "@typespec/sse"
5656
- "@typespec/streams"
5757
- "@typespec/xml"
58+
- name: standalone
59+
type: independent
60+
packages:
61+
- "@typespec/http-client-python"
5862

5963
changelog: ["@chronus/github/changelog", { repo: "microsoft/typespec" }]
6064

6165
ignore:
6266
- "@typespec/http-client-csharp"
6367
- "@typespec/http-client-java"
64-
- "@typespec/http-client-python"
6568

6669
changedFiles:
6770
- "!**/*.md"

eng/tsp-core/pipelines/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ extends:
4343

4444
- template: /eng/tsp-core/pipelines/templates/upload-coverage.yml
4545

46-
- script: pnpm chronus pack --pack-destination $(Build.ArtifactStagingDirectory)/npm-packages-stable
46+
- script: pnpm chronus pack --exclude standalone --pack-destination $(Build.ArtifactStagingDirectory)/npm-packages-stable
4747
displayName: Pack packages
4848

4949
- task: CopyFiles@2
@@ -75,7 +75,7 @@ extends:
7575
displayName: Regen manifest for compiler
7676
workingDirectory: ./packages/compiler
7777

78-
- script: pnpm chronus pack --pack-destination $(Build.ArtifactStagingDirectory)/npm-packages-next
78+
- script: pnpm chronus pack --exclude standalone --pack-destination $(Build.ArtifactStagingDirectory)/npm-packages-next
7979
displayName: Pack next packages
8080

8181
# Publish Next playground

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"lint": "eslint . --max-warnings=0",
2323
"lint:fix": "eslint . --fix",
2424
"merge-coverage": "c8 -- report --reporter=cobertura --reporter=text",
25-
"pack:all": "chronus pack --pack-destination ./temp/artifacts",
25+
"pack:all": "chronus pack --exclude standalone --pack-destination ./temp/artifacts",
2626
"preinstall": "npx only-allow pnpm",
2727
"prepare-publish": "pnpm chronus version",
2828
"purge": "rimraf --glob \"packages/*/node_modules/\"",

0 commit comments

Comments
 (0)