-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
59 lines (51 loc) · 1.9 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
from os import path
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
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)
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
errno = pytest.main(self.pytest_args)
sys.exit(errno)
def readme():
with open(path.join(path.abspath(path.dirname(__file__)), 'README.md'), encoding="utf8") as f:
return f.read()
setup(
name='pinyin_markdown',
version='0.8.2',
description='Type Chinese pinyin with tone numbers in Markdown. Get accented pinyin.',
long_description=readme(),
url='https://github.com/bcaller/pinyin_markdown',
py_modules=['pinyin_markdown'],
packages=['pinyin_markdown'],
license='AGPLv3',
author='Ben Caller',
author_email='bcallergmai@l.com',
keywords='pinyin chinese markdown',
tests_require=['pytest'],
cmdclass={'test': PyTest},
install_requires=['markdown>=2.5'],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Text Processing :: Filters',
'Topic :: Text Processing :: Markup :: HTML',
'License :: OSI Approved :: GNU Affero General Public License v3'
]
)