Skip to content

Commit 9d47f30

Browse files
committed
fix: add numba to dependencies in version workflow and pyproject.toml
1 parent 4649442 commit 9d47f30

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Install dependencies
2323
run: |
2424
python -m pip install --upgrade pip
25-
pip install build "setuptools-git-versioning>=2,<3" numpy
25+
pip install build "setuptools-git-versioning>=2,<3" numpy numba
2626
pip install torch --index-url https://download.pytorch.org/whl/cpu
2727
- name: Display version
2828
run: |

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ requires = [
44
"setuptools-git-versioning>=2.0,<3",
55
"wheel",
66
"torch",
7+
"numba",
78
"numpy",
89
]
910
build-backend = "setuptools.build_meta:__legacy__"
@@ -12,10 +13,9 @@ build-backend = "setuptools.build_meta:__legacy__"
1213
enabled = true
1314
# change the file path
1415
version_file = "torchlpc/VERSION.txt"
15-
count_commits_from_version_file = true # <--- enable commits tracking
16-
dev_template = "{tag}.{branch}{ccount}" # suffix for versions will be .dev
17-
dirty_template = "{tag}.{branch}{ccount}" # same thing here
18-
# Temporarily disable branch formatting due to issues with regex in _version.py
16+
count_commits_from_version_file = true # <--- enable commits tracking
17+
dev_template = "{tag}.{branch}{ccount}" # suffix for versions will be .dev
18+
dirty_template = "{tag}.{branch}{ccount}" # same thing here
1919
branch_formatter = "torchlpc._version:format_branch_name"
2020

2121
[tool.setuptools.package-data]

0 commit comments

Comments
 (0)