Skip to content

Commit acc1e28

Browse files
committed
More quick fixes
1 parent 8f40328 commit acc1e28

File tree

5 files changed

+5
-11
lines changed

5 files changed

+5
-11
lines changed

.github/workflows/development.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,6 @@ jobs:
102102
run: |
103103
echo "GUIDELLM_BUILD_TYPE=dev" >> $GITHUB_ENV
104104
echo "GUIDELLM_BUILD_NUMBER=${{ github.event.pull_request.number }}" >> $GITHUB_ENV
105-
- name: Inject build properties
106-
run: python utils/inject_build_props.py
107105
- name: Build the package
108106
run: tox -e build
109107
- name: Upload build artifacts

.github/workflows/nightly.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@ jobs:
7171
run: |
7272
echo "GUIDELLM_BUILD_TYPE=nightly" >> $GITHUB_ENV
7373
echo "GUIDELLM_BUILD_NUMBER=${{ github.run_number }}" >> $GITHUB_ENV
74-
- name: Inject build properties
75-
run: python utils/inject_build_props.py
7674
- name: Build the package
7775
run: tox -e build
7876
- name: Find wheel artifact

.github/workflows/release-candidate.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ jobs:
7575
run: |
7676
echo "GUIDELLM_BUILD_TYPE=release_candidate" >> $GITHUB_ENV
7777
echo "GUIDELLM_BUILD_NUMBER=${{ github.run_number }}" >> $GITHUB_ENV
78-
- name: Inject build properties
79-
run: python utils/inject_build_props.py
8078
- name: Build the package
8179
run: tox -e build
8280
- name: Upload build artifacts

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ jobs:
1919
python-version: ${{ matrix.python }}
2020
- name: Install dependencies
2121
run: pip install toml loguru tox
22+
- name: Set environment variables
23+
run: |
24+
echo "GUIDELLM_BUILD_TYPE=release" >> $GITHUB_ENV
25+
echo "GUIDELLM_BUILD_NUMBER=${{ github.run_number }}" >> $GITHUB_ENV
2226
- name: Build the package
2327
run: tox -e build
2428
- name: Upload build artifacts

utils/inject_build_props.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,19 @@ def construct_project_name_and_version(build_type, build_number, current_version
2323
)
2424

2525
if build_type == "dev":
26-
project_name = "guidellm"
2726
version = f"{current_version}.dev{build_number}"
2827
elif build_type == "nightly":
29-
project_name = "guidellm"
3028
date_str = datetime.now().strftime("%Y%m%d")
3129
version = f"{current_version}.a{date_str}"
3230
elif build_type == "release_candidate":
33-
project_name = "guidellm"
3431
date_str = datetime.now().strftime("%Y%m%d")
3532
version = f"{current_version}.rc{date_str}"
3633
elif build_type == "release":
37-
project_name = "guidellm"
3834
version = current_version
3935
else:
4036
raise ValueError(f"Unknown build type: {build_type}")
4137

42-
return project_name, version
38+
return "guidellm", version
4339

4440

4541
def update_pyproject_toml(project_name, version):

0 commit comments

Comments
 (0)