Completed
Push — master ( 0d3a1b...f7cef5 )
by Messense
05:49
created

release.py (2 issues)

1
#!/usr/bin/env python
2
# -*- coding: utf-8 -*-
3
from __future__ import absolute_import, with_statement
4
import os
5
import sys
6
7
try:
8
    import pypandoc
9
except ImportError:
0 ignored issues
show
Comprehensibility Best Practice introduced by
The variable ImportError does not seem to be defined.
Loading history...
10
    print('Please install pypandoc first, run pip install pypandoc.')
11
    sys.exit()
12
13
rst = pypandoc.convert('README.md', 'rst')
14
with open('README.rst', 'w+') as f:
0 ignored issues
show
Comprehensibility Best Practice introduced by
The variable f does not seem to be defined.
Loading history...
15
    f.write(rst.encode('utf-8'))
16
os.system("python setup.py release")
17
os.remove('README.rst')
18