forked from lepture/mistune
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
53 lines (46 loc) · 1.33 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/usr/bin/env python
# coding: utf-8
try:
# python setup.py test
import multiprocessing
except ImportError:
pass
import mistune
from setuptools import setup, Extension
try:
from Cython.Distutils import build_ext
cmdclass = {'build_ext': build_ext}
ext_modules = [Extension('mistune', ['mistune.py'])]
except ImportError:
cmdclass = {}
ext_modules = []
def fread(filepath):
with open(filepath, 'r') as f:
return f.read()
setup(
name='mistune',
version=mistune.__version__,
url='https://github.com/lepture/mistune',
author='Hsiaoming Yang',
author_email='[email protected]',
description='Yet another markdown parser, inspired by marked.',
long_description=fread('README.rst'),
license='BSD',
py_modules=['mistune'],
cmdclass=cmdclass,
ext_modules=ext_modules,
zip_safe=False,
platforms='any',
tests_require=['nose'],
test_suite='nose.collector',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Text Processing :: Markup',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)