Skip to content

Commit 38d866f

Browse files
committed
setup.py tweaks
- Bump version to 1.0.1 - Bump release classifier from beta -> stable - Postprocess README.md with pypandoc if available for `long_description`
1 parent 53b5bef commit 38d866f

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

setup.py

100644100755
Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
1-
from setuptools import setup
1+
__VERSION__ = '1.0.1'
22

3-
version = '1.0'
3+
from setuptools import setup
4+
try:
5+
import pypandoc
6+
long_description = pypandoc.convert('README.md', 'rst')
7+
except ImportError:
8+
long_description = None
49

510
setup(
611
name='python-editor',
7-
version=version,
12+
version=__VERSION__,
813
description="Programmatically open an editor, capture the result.",
9-
#long_description='',
14+
long_description=long_description,
1015
classifiers=[
11-
'Development Status :: 4 - Beta',
16+
'Development Status :: 5 - Production/Stable',
1217
'Intended Audience :: Developers',
1318
'License :: OSI Approved :: Apache Software License',
1419
'Operating System :: OS Independent',

0 commit comments

Comments
 (0)