Skip to content

Commit

Permalink
dist: use long_description_content_type and do not translate markup (c…
Browse files Browse the repository at this point in the history
…loses #44)
  • Loading branch information
Michał Jaworski committed Apr 18, 2018
1 parent 688d839 commit 427ead5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
1 change: 1 addition & 0 deletions imgui/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from imgui import extra
from imgui import _compat


VERTEX_BUFFER_POS_OFFSET = extra.vertex_buffer_vertex_pos_offset()
VERTEX_BUFFER_UV_OFFSET = extra.vertex_buffer_vertex_uv_offset()
VERTEX_BUFFER_COL_OFFSET = extra.vertex_buffer_vertex_col_offset()
Expand Down
20 changes: 6 additions & 14 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,10 @@
"and coverage but Cython not available."
)

try:
from pypandoc import convert

def read_md(f):
return convert(f, 'rst')

except ImportError:
convert = None
# note: this warning is only for package registration step
if 'register' in sys.argv:
print("warning: pypandoc not found, could not convert Markdown to RST")

def read_md(f):
return open(f, 'r').read() # noqa
def read(filename):
with open(filename, 'r') as file_handle:
return file_handle.read()


def get_version(version_tuple):
Expand Down Expand Up @@ -141,7 +131,9 @@ def backend_extras(*requirements):
author_email='swistakm@gmail.com',

description="Cython-based Python bindings for dear imgui",
long_description=read_md(README),
long_description=read(README),
long_description_content_type="text/markdown",

url="https://github.com/swistakm/pyimgui",

ext_modules=cythonize(
Expand Down

0 comments on commit 427ead5

Please sign in to comment.