Skip to content

Commit 4c16196

Browse files
committed
Fix the packaging issue of README.md by not requiring it in the setup.py
1 parent 78747b2 commit 4c16196

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

setup.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,19 @@
77

88
here = path.abspath(path.dirname(__file__))
99

10-
with open(path.join(here, 'README.md')) as f:
11-
long_description = f.read()
12-
1310
# Create rst here from Markdown
14-
z = pypandoc.convert('README.md','rst',format='markdown')
15-
11+
if path.exists(path.join(here, 'README.md')):
12+
z = pypandoc.convert('README.md','rst',format='markdown')
13+
1614
with open('README.rst','w') as outfile:
1715
outfile.write(z)
16+
17+
with open(path.join(here, 'README.rst')) as f:
18+
long_description = f.read()
19+
1820

1921
setup(name='hawkular-client',
20-
version='0.4.0',
22+
version='0.4.1',
2123
description='Python client to communicate with Hawkular server over HTTP(S)',
2224
author='Michael Burman',
2325
author_email='miburman@redhat.com',

0 commit comments

Comments
 (0)