Skip to content

Commit 60d78a5

Browse files
authored
Updates to build system (#304)
* Consolidate `setuptools-scm` config * Update `build-ml-whl` nm-action * Fix source install versioning * Update `checkout` and `setup-python` actions * Drop creation of unused venv
1 parent 8aa8b82 commit 60d78a5

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676

7777
- name: build
7878
id: build
79-
uses: neuralmagic/nm-actions/actions/build-ml-whl@v1.18.0
79+
uses: neuralmagic/nm-actions/actions/build-ml-whl@c7e5a66c382104e1beadcb7dadf429f8ab15b344 # v1.20.0
8080
with:
8181
dev: false
8282
release: ${{ inputs.wf_category == 'RELEASE' }}

.github/workflows/test-check.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ jobs:
1212
python-tests:
1313
runs-on: ubuntu-24.04
1414
steps:
15-
- uses: actions/setup-python@v4
15+
- uses: actions/setup-python@v5
1616
with:
1717
python-version: '3.10'
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
fetch-tags: true
1922
- name: Set Env
2023
run: |
2124
pip3 install --upgrade pip && pip3 install --upgrade setuptools
22-
pip3 install virtualenv
23-
virtualenv venv
24-
source venv/bin/activate
2525
- name: "⚙️ Install dependencies"
2626
run: pip3 install .[dev,accelerate]
2727
- name: "🔬 Running tests"

pyproject.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
[build-system]
2-
requires = ["setuptools", "wheel", "setuptools_scm>8"]
2+
requires = ["setuptools", "wheel", "setuptools_scm==8.2.0"]
33
build-backend = "setuptools.build_meta"
44

5-
[tool.setuptools_scm]
6-
version_file = "src/compressed_tensors/version.py"
7-
85
[tool.black]
96
line-length = 88
107
target-version = ['py36']

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ def _setup_extras() -> Dict:
101101
use_scm_version={
102102
"version_scheme": version_func,
103103
"local_scheme": localversion_func,
104+
"version_file": "src/compressed_tensors/version.py",
104105
},
105106
author="Neuralmagic, Inc.",
106107
author_email="[email protected]",

0 commit comments

Comments
 (0)