forked from coala/coala-bears
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py.in
51 lines (45 loc) · 1.96 KB
/
setup.py.in
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
#!/usr/bin/env python3
import os
import locale
from setuptools import find_packages, setup
try:
locale.getlocale()
except (ValueError, UnicodeError):
locale.setlocale(locale.LC_ALL, 'en_US.UTF-8')
required = ''
if os.path.exists('requirements.txt'):
with open('requirements.txt') as requirements:
required = requirements.read().splitlines()
if __name__ == '__main__':
try:
setup(name=$NAME,
version='$VERSION',
description='''$NAME bear for coala (http://coala.rtfd.org/)''',
authors=$AUTHORS,
authors_emails=$AUTHORS_EMAILS,
maintainers=$MAINTAINERS,
maintainers_emails=$MAINTAINERS_EMAILS,
platforms=$PLATFORMS,
license='$LICENSE',
packages=find_packages(exclude=['build.*']),
install_requires=required,
long_description='''$LONG_DESCRIPTION''',
entry_points={'coalabears': ['$BEAR_NAME = $ENTRY']},
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Environment :: Win32 (MS Windows)',
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'Programming Language :: '
'Python :: Implementation :: CPython',
'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'])
finally:
print('[WARN] If you do not install the bears using the coala '
'installation tool, there may be problems with the dependencies '
'and they may not work.')