Skip to content

Commit

Permalink
Fix publish
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrown1867 committed Jul 14, 2022
1 parent c650ccc commit 0c28f01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@ jobs:
with:
python-version: '3.x'
- name: Build
run: |
sudo apt-get install pandoc
python -m pip install --upgrade pip
python -m pip install pypandoc
make wheel
run: make wheel
- name: Publish
uses: pypa/[email protected]
with:
Expand Down
9 changes: 1 addition & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,6 @@ def long_description():
cwd = os.path.abspath(os.path.dirname(__file__))
readme_path = os.path.join(cwd, "README.md")
assert os.path.exists(readme_path), "README.md not found"

try:
import pypandoc

return pypandoc.convert_file(readme_path, "rst")
except (IOError, ImportError):
pass

return open(readme_path, "r").read()


Expand All @@ -29,6 +21,7 @@ def long_description():
version="1.0.1",
description="Python USB firmware update library.",
long_description=long_description(),
long_description_content_type="text/markdown",
url="https://github.com/square/pyfu-usb",
packages=setuptools.find_packages(),
python_requires=">=3.7",
Expand Down

0 comments on commit 0c28f01

Please sign in to comment.