forked from coala/coala-html
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·80 lines (61 loc) · 2.76 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
76
77
78
79
80
#!/usr/bin/env python3
from os import getenv
import sys
from setuptools import find_packages, setup
from setuptools.command.test import test as TestCommand
class PyTestCommand(TestCommand):
def run_tests(self):
# import here, cause outside the eggs aren't loaded
import pytest
errno = pytest.main([])
sys.exit(errno)
on_rtd = getenv('READTHEDOCS', None) != None
with open('requirements.txt') as requirements:
required = requirements.read().splitlines()
with open('test-requirements.txt') as requirements:
test_required = requirements.read().splitlines()
with open("README.rst") as readme:
long_description = readme.read()
with open('VERSION', 'r') as v:
VERSION = v.read().strip()
if __name__ == "__main__":
setup(name='coala-html',
version=VERSION,
description='Generate a Webpage using results from coala',
author="The coala developers",
maintainer="Tushar Gautam"
if not on_rtd else "L.S., F.N., M.K.",
maintainer_email=('[email protected]'),
url='http://coala.io/',
platforms='any',
packages=find_packages(exclude=["build.*", "tests", "tests.*"]),
install_requires=required,
tests_require=test_required,
package_data={'coalahtml': ['_coalahtml/*.*',
'_coalahtml/app/controllers/*.*',
'_coalahtml/app/styles/*.*',
'_coalahtml/app/views/*.*',
'_coalahtml/app/*.*',
'_coalahtml/data/*.*']},
license="AGPL-3.0",
long_description=long_description,
entry_points={
"console_scripts": [
"coala-html = coalahtml.coala_html:main"]},
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU Affero General Public License '
'v3 or later (AGPLv3+)',
'Operating System :: OS Independent',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Software Development :: Quality Assurance',
'Topic :: Text Processing :: Linguistic'],
cmdclass={'test': PyTestCommand})