Skip to content

Commit f9c8a11

Browse files
committed
Update name
1 parent cb4000d commit f9c8a11

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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: |

HOW_TO_SET_A_VERSION.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ A development version is generated in these scenarios:
8080
The CI pipeline automatically:
8181
1. Checks out the full Git history (`fetch-depth: 0`)
8282
2. 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
8484
4. 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
284284
cd versioning
285-
export PackageVersion=$(python -m setuptools_git_versioning)
285+
export AGENT365_PYTHON_SDK_PACKAGE_VERSION=$(python -m setuptools_git_versioning)
286286
cd ..
287287
uv build --all-packages --wheel
288288
```

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)