Skip to content

Commit

Permalink
1.4: writing README.rst on deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Enteee committed May 9, 2016
1 parent 31e8ab2 commit 8b89ac2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -63,3 +63,6 @@ target/

# vim
*.swp

# pypi readme
README.rst
7 changes: 4 additions & 3 deletions setup.py
Expand Up @@ -6,18 +6,19 @@
import pypandoc
long_description = pypandoc.convert('README.md', 'rst', 'md')
long_description = long_description.replace('\r','')
with open('README.rst', 'w') as f:
f.write(long_description)
except (OSError, ImportError):
print('Pandoc not found. Long_description conversion failure.')
import io
# pandoc is not installed, fallback to using raw contents
with io.open('README.md', encoding='utf-8') as f:
with open('README.md', 'r') as f:
long_description = f.read()

# Setup the project
setup(
name = 'pdml2flow',
keywords = 'wireshark pdml flow aggregation',
version = '1.3',
version = '1.4',
packages = find_packages(),
install_requires = [
'dict2xml'
Expand Down

0 comments on commit 8b89ac2

Please sign in to comment.