File tree 2 files changed +5
-8
lines changed
2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 14
14
uses : actions/setup-python@v4
15
15
with :
16
16
python-version : 3.8
17
- - name : Set package version
18
- run : |
19
- version="${{ github.event.release.tag_name }}"
20
- version="${version,,}" # lowercase it
21
- version="${version#v}" # remove `v`
22
- sed -i "s/version = \"0\.0\.0\"/version = \"${version}\"/" pyproject.toml
23
17
- name : Install wheel
24
18
run : >-
25
19
pip install wheel build
Original file line number Diff line number Diff line change 1
1
[build-system ]
2
- requires = [" setuptools>=61.0.0" ]
2
+ requires = [" setuptools>=61.0.0" , " wheel " , " setuptools-git-versioning<2 " ]
3
3
build-backend = " setuptools.build_meta"
4
4
5
5
[project ]
6
6
name = " zigpy-cli"
7
- version = " 0.0.0 "
7
+ dynamic = [ " version " ]
8
8
description = " Unified command line interface for zigpy radios"
9
9
urls = {repository = " https://github.com/zigpy/zigpy-cli" }
10
10
authors = [
@@ -37,6 +37,9 @@ testing = [
37
37
" pytest-cov>=3.0.0" ,
38
38
]
39
39
40
+ [tool .setuptools-git-versioning ]
41
+ enabled = true
42
+
40
43
[project .scripts ]
41
44
zigpy = " zigpy_cli.__main__:cli"
42
45
You can’t perform that action at this time.
0 commit comments