Skip to content

Commit

Permalink
Properly include readme in pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
puddly committed Feb 9, 2023
1 parent fff2064 commit 4659040
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ jobs:
version="${{ github.event.release.tag_name }}"
version="${version,,}" # lowercase it
version="${version#v}" # remove `v`
sed -i "s/version = \"0.0.0\"/version = \"${version}\"/" pyproject.toml
sed -i "s/version = \"0\.0\.0\"/version = \"${version}\"/" pyproject.toml
- name: Install wheel
run: >-
pip install wheel build
- name: Build
run: >-
python3 -m build
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_TOKEN }}
6 changes: 1 addition & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ urls = {repository = "https://github.com/zigpy/zigpy-cli"}
authors = [
{name = "puddly", email = "[email protected]"}
]
readme = "README.md"
license = {text = "GPL-3.0"}
requires-python = ">=3.8"
dependencies = [
Expand All @@ -21,11 +22,6 @@ dependencies = [
"zigpy-deconz>=0.18.0",
"zigpy-znp>=0.8.0",
]
dynamic = ["readme"]

[tool.setuptools.dynamic]
version = {attr = "zigpy_cli.__version__"}
readme = {file = "README.md"}

[tool.setuptools.packages.find]
exclude = ["tests", "tests.*"]
Expand Down

0 comments on commit 4659040

Please sign in to comment.