This repository has been archived by the owner on Sep 24, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 65
/
setup.py
75 lines (65 loc) · 2.14 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
import os
import os.path
import shutil
import subprocess
import sys
from setuptools import setup, Command
install_requires=['cffi>=1.12.0']
try:
import importlib
except ImportError:
install_requires.append('importlib')
dirname = os.path.dirname(os.path.abspath(__file__))
class TestCommand(Command):
description = 'run tests'
user_options = [
('include=', 'i', 'comma separated list of testcases'),
('exclude=', 'e', 'comma separated list of testcases'),
('benchmark', 'b', 'run bechmarks'),
('list', 'l', 'list all testcases'),
]
def initialize_options(self):
self.include = ''
self.exclude = ''
self.benchmark = 0
self.list = 0
def finalize_options(self):
pass
def run(self):
self.run_command('develop')
errno = subprocess.call([sys.executable, 'tests/run_tests.py'] + sys.argv[2:])
sys.exit(errno)
setup(
name='misaka',
version='2.1.2',
description='A CFFI binding for Hoedown, a markdown parsing library.',
author='Frank Smit',
author_email='[email protected]',
url='https://github.com/FSX/misaka',
license='MIT',
long_description=open(os.path.join(dirname, 'README.rst')).read(),
scripts=['scripts/misaka'],
packages=['misaka'],
cmdclass={
'test': TestCommand
},
classifiers = [
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: C',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Text Processing :: Markup',
'Topic :: Text Processing :: Markup :: HTML',
'Topic :: Utilities'
],
setup_requires=['cffi>=1.12.0'],
install_requires=install_requires,
cffi_modules=['build_ffi.py:ffi'],
)