Skip to content

Commit

Permalink
[python] add chronus version managing (#4676)
Browse files Browse the repository at this point in the history
Co-authored-by: iscai-msft <isabellavcai@gmail.com>
Co-authored-by: Chenjie Shi <tadelesh.shi@live.cn>
Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>
  • Loading branch information
4 people authored Jan 23, 2025
1 parent 732db95 commit 1cd12dc
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .chronus/changes/python-addChronus-2024-9-17-15-51-48.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
changeKind: internal
packages:
- "@typespec/http-client-python"
---

add chronus to do version management
5 changes: 4 additions & 1 deletion .chronus/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,16 @@ versionPolicies:
- "@typespec/sse"
- "@typespec/streams"
- "@typespec/xml"
- name: standalone
type: independent
packages:
- "@typespec/http-client-python"

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

ignore:
- "@typespec/http-client-csharp"
- "@typespec/http-client-java"
- "@typespec/http-client-python"

changedFiles:
- "!**/*.md"
Expand Down
4 changes: 2 additions & 2 deletions eng/tsp-core/pipelines/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ extends:

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

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

- task: CopyFiles@2
Expand Down Expand Up @@ -75,7 +75,7 @@ extends:
displayName: Regen manifest for compiler
workingDirectory: ./packages/compiler

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

# Publish Next playground
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"lint": "eslint . --max-warnings=0",
"lint:fix": "eslint . --fix",
"merge-coverage": "c8 -- report --reporter=cobertura --reporter=text",
"pack:all": "chronus pack --pack-destination ./temp/artifacts",
"pack:all": "chronus pack --exclude standalone --pack-destination ./temp/artifacts",
"preinstall": "npx only-allow pnpm",
"prepare-publish": "pnpm chronus version",
"purge": "rimraf --glob \"packages/*/node_modules/\"",
Expand Down

0 comments on commit 1cd12dc

Please sign in to comment.