Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[python] add chronus version managing #4676

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
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
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
6 changes: 5 additions & 1 deletion .chronus/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,17 @@ versionPolicies:
- "@typespec/sse"
- "@typespec/streams"
- "@typespec/xml"
- name: python-client
type: independent
step: patch
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
step: patch

step is for lockStep only

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looking at the previous policy, it has type: lockstep and step: minor so I'm kind of confused

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I went with step: patch instead of step: minor since I don't want to only officially release minor versions, but let me know if my understanding here isn't right

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
3 changes: 2 additions & 1 deletion packages/http-client-python/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
"ci": "npm run test:emitter && npm run ci:generator --",
"ci:generator": "tsx ./eng/scripts/ci/run-ci.ts",
"test:generator": "tsx ./eng/scripts/ci/run-ci.ts --command=test",
"test:emitter": "vitest run -c ./emitter/vitest.config.ts"
"test:emitter": "vitest run -c ./emitter/vitest.config.ts",
"change": "chronus"
iscai-msft marked this conversation as resolved.
Show resolved Hide resolved
},
"files": [
"dist/**",
Expand Down
Loading