Skip to content

Commit 4659040

Browse files
committed
Properly include readme in pyproject.toml
1 parent fff2064 commit 4659040

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

.github/workflows/publish-to-pypi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ jobs:
1919
version="${{ github.event.release.tag_name }}"
2020
version="${version,,}" # lowercase it
2121
version="${version#v}" # remove `v`
22-
sed -i "s/version = \"0.0.0\"/version = \"${version}\"/" pyproject.toml
22+
sed -i "s/version = \"0\.0\.0\"/version = \"${version}\"/" pyproject.toml
2323
- name: Install wheel
2424
run: >-
2525
pip install wheel build
2626
- name: Build
2727
run: >-
2828
python3 -m build
2929
- name: Publish distribution to PyPI
30-
uses: pypa/gh-action-pypi-publish@master
30+
uses: pypa/gh-action-pypi-publish@release/v1
3131
with:
3232
password: ${{ secrets.PYPI_TOKEN }}

pyproject.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ urls = {repository = "https://github.com/zigpy/zigpy-cli"}
1010
authors = [
1111
{name = "puddly", email = "[email protected]"}
1212
]
13+
readme = "README.md"
1314
license = {text = "GPL-3.0"}
1415
requires-python = ">=3.8"
1516
dependencies = [
@@ -21,11 +22,6 @@ dependencies = [
2122
"zigpy-deconz>=0.18.0",
2223
"zigpy-znp>=0.8.0",
2324
]
24-
dynamic = ["readme"]
25-
26-
[tool.setuptools.dynamic]
27-
version = {attr = "zigpy_cli.__version__"}
28-
readme = {file = "README.md"}
2925

3026
[tool.setuptools.packages.find]
3127
exclude = ["tests", "tests.*"]

0 commit comments

Comments
 (0)