Skip to content

Commit

Permalink
create README.rst to upload on pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
valdergallo committed Jun 4, 2014
1 parent 2a7048d commit 8a6082e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@ coverage.xml
# Sphinx documentation
docs/_build/

README.rst
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[metadata]
description-file=README.md
description-file=README.rst
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@

def readme():
try:
with open('README.md') as f:
os.system('pandoc --from=markdown --to=rst README.md -o README.rst')
with open('README.rst') as f:
return f.read()
except:
return 'Automantic compress files after upload'
Expand Down

0 comments on commit 8a6082e

Please sign in to comment.