-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
58 lines (45 loc) · 1.61 KB
/
setup.py
File metadata and controls
58 lines (45 loc) · 1.61 KB
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
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
tests_require = ['pytest', 'pytest-cov==2.5.1', 'coverage == 3.7.1',
'coveralls == 1.1']
install_requires = ['asciimathml==0.9.5.1', 'sympy==1.1.1']
class PyTest(TestCommand):
user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = []
def finalize_options(self):
TestCommand.finalize_options(self)
def run_tests(self):
# import here, cause outside the eggs aren't loaded
import pytest
errno = pytest.main(self.pytest_args)
sys.exit(errno)
VERSION = '0.0.1'
setup(
name="MathDownCompat",
version=VERSION,
author="Alvin Wan",
author_email='hi@alvinwan.com',
description="MathTex compatibility for in-browser markdown using MathJax, MathML, and/or images",
license="Apache",
url="https://github.com/alvinwan/mathdowncompat",
packages=['mathdowncompat', 'mathdowncompat.converters'],
cmdclass={
'test': PyTest,
},
tests_require=tests_require,
install_requires=install_requires + tests_require,
download_url='https://github.com/alvinwan/mathdowncompat/archive/%s.zip' % VERSION,
classifiers=[
"Topic :: Utilities",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries",
],
zip_safe=False,
entry_points={'console_scripts': [
'mdcompat = mathdowncompat.main:main'
]}
)