Skip to content

Commit

Permalink
pypi.org now supports Markdown, don't build universal wheel
Browse files Browse the repository at this point in the history
  • Loading branch information
rahiel committed Apr 8, 2022
1 parent 255ccb9 commit 6f38bb4
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 17 deletions.
4 changes: 1 addition & 3 deletions release.bash
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ set -euo pipefail


echo "Running in $VIRTUAL_ENV"
python3 -c 'import pypandoc'

rm -rf dist/
python3 setup.py sdist # source distribution
python3 setup.py bdist_wheel # built package
python setup.py sdist bdist_wheel # source distribution and built package

read -s -p "Password: " password
printf "\n"
Expand Down
1 change: 0 additions & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
pydoc-markdown
pypandoc
twine
wheel
3 changes: 0 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
[bdist_wheel]
universal = 1

[flake8]
max-line-length = 120
12 changes: 3 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,15 @@
from version import __version__


try:
import pypandoc
import re
long_description = pypandoc.convert("README.md", "rst")
# remove raw html blocks, they're not supported on pypi
long_description = re.sub("\s+\.\. raw:: html\s*.+? -->", "", long_description, count=2)
except:
long_description = ""

with open("README.md") as f:
long_description = f.read()

setup(
name="telegram-send",
version=__version__,
description="Send messages and files over Telegram from the command-line.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/rahiel/telegram-send",
license="GPLv3+",

Expand Down
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.25"
__version__ = "0.26"

0 comments on commit 6f38bb4

Please sign in to comment.