-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
65 lines (52 loc) · 1.78 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
# -*- coding: utf-8 -*-
"""
vtdiscourse
~~~~
This is g0v vTaiwan Project, it's can help develope easy create topic on talk vTaiwan
web site from gitbook
:copyright: (c) 2016 by chairco <chairco@gmail.com>.
:license: MIT.
"""
import uuid
from pip.req import parse_requirements
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
import vtdiscourse
def requirements(path):
return [str(r.req) for r in parse_requirements(path, session=uuid.uuid1())]
class Tox(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = ['-v', '-epy']
self.test_suite = True
def run_tests(self):
import tox
tox.cmdline(self.test_args)
setup(
name='vtdiscourse',
version=vtdiscourse.__version__,
author=vtdiscourse.__author__,
author_email=vtdiscourse.__email__,
url='https://github.com/chairco/vtdiscourse',
description='Help to create topic on talk.vTaiwan web.',
long_description=__doc__,
packages=find_packages(),
install_requires=requirements('requirements.txt'),
tests_require=['tox'],
cmdclass={'test': Tox},
entry_points={'console_scripts': [
'vtd = vtdiscourse.__main__:main',
]},
classifiers=[
'Development Status :: 1 - Planning',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Documentation',
'Topic :: Software Development :: Libraries :: Python Modules',
]
)