File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 1414 uses : actions/setup-python@v4
1515 with :
1616 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
2317 - name : Install wheel
2418 run : >-
2519 pip install wheel build
Original file line number Diff line number Diff line change 11[build-system ]
2- requires = [" setuptools>=61.0.0" ]
2+ requires = [" setuptools>=61.0.0" , " wheel " , " setuptools-git-versioning<2 " ]
33build-backend = " setuptools.build_meta"
44
55[project ]
66name = " zigpy-cli"
7- version = " 0.0.0 "
7+ dynamic = [ " version " ]
88description = " Unified command line interface for zigpy radios"
99urls = {repository = " https://github.com/zigpy/zigpy-cli" }
1010authors = [
@@ -37,6 +37,9 @@ testing = [
3737 " pytest-cov>=3.0.0" ,
3838]
3939
40+ [tool .setuptools-git-versioning ]
41+ enabled = true
42+
4043[project .scripts ]
4144zigpy = " zigpy_cli.__main__:cli"
4245
You can’t perform that action at this time.
0 commit comments