File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ jobs:
114114
115115 - name : Build package
116116 run : |
117- PackageVersion =${{ needs.version-number.outputs.PACKAGE_VERSION }} uv build --all-packages --wheel
117+ AGENT365_PYTHON_SDK_PACKAGE_VERSION =${{ needs.version-number.outputs.PACKAGE_VERSION }} uv build --all-packages --wheel
118118
119119 - name : Run unit tests
120120 run : |
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ A development version is generated in these scenarios:
8080The CI pipeline automatically:
81811 . Checks out the full Git history (` fetch-depth: 0 ` )
82822 . Runs ` setuptools-git-versioning ` in the ` versioning/ ` directory
83- 3 . Sets the ` PackageVersion ` environment variable
83+ 3 . Sets the ` AGENT365_PYTHON_SDK_PACKAGE_VERSION ` environment variable
84844 . Builds all packages with that version
8585
8686** No manual intervention needed!**
@@ -276,13 +276,13 @@ You need to create a hotfix `0.2.1` after `0.2.0` has been released:
276276
277277### Problem: Version shows ` 0.0.0 `
278278
279- ** Cause:** The ` PackageVersion ` environment variable is not set.
279+ ** Cause:** The ` AGENT365_PYTHON_SDK_PACKAGE_VERSION ` environment variable is not set.
280280
281281** Solution:**
282282``` bash
283283# Set the environment variable before building
284284cd versioning
285- export PackageVersion =$( python -m setuptools_git_versioning)
285+ export AGENT365_PYTHON_SDK_PACKAGE_VERSION =$( python -m setuptools_git_versioning)
286286cd ..
287287uv build --all-packages --wheel
288288```
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ def read_pyproject():
2626
2727# Get version from environment variable set by CI/CD
2828# This will be set by setuptools-git-versioning in the CI pipeline
29- VERSION = os .environ .get ("PackageVersion " , "0.0.0" )
29+ VERSION = os .environ .get ("AGENT365_PYTHON_SDK_PACKAGE_VERSION " , "0.0.0" )
3030
3131
3232# Write the version attr used by [tool.setuptools.dynamic].version
You can’t perform that action at this time.
0 commit comments