Skip to content

Commit

Permalink
Adds Python Wheel support (jazzband#168)
Browse files Browse the repository at this point in the history
* added setup.cfg for wheel support

* style fix in setup.py
  • Loading branch information
auvipy authored and avelis committed Mar 14, 2017
1 parent d7ebda5 commit 92eab7e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[bdist_wheel]
universal = 1
9 changes: 6 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,20 @@
try:
from pypandoc import convert

def read_md(f): return convert(f, 'rst')
def read_md(f):
return convert(f, 'rst')
except ImportError:
print("warning: pypandoc module not found, could not convert Markdown to RST")

def read_md(f): return open(f, 'r').read()
def read_md(f):
return open(f, 'r').read()

README = read_md('README.md')

# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))


setup(
name='django-silk',
version='0.7.3',
Expand All @@ -38,7 +41,7 @@ def read_md(f): return open(f, 'r').read()
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
install_requires= [
install_requires=[
'Django',
'Pygments',
'python-dateutil',
Expand Down

0 comments on commit 92eab7e

Please sign in to comment.