forked from jquast/blessed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·69 lines (59 loc) · 2.3 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
#!/usr/bin/env python
"""Distutils setup script."""
import os
import setuptools
def _get_install_requires(fname):
result = [req_line.strip() for req_line in open(fname)
if req_line.strip() and not req_line.startswith('#')]
return result
def _get_version(fname):
import json
return json.load(open(fname, 'r'))['version']
def _get_long_description(fname):
import codecs
return codecs.open(fname, 'r', 'utf8').read()
HERE = os.path.dirname(__file__)
setuptools.setup(
name='blessed',
version=_get_version(
fname=os.path.join(HERE, 'version.json')),
install_requires=_get_install_requires(
fname=os.path.join(HERE, 'requirements.txt')),
long_description=_get_long_description(
fname=os.path.join(HERE, 'docs', 'intro.rst')),
description=('A thin, practical wrapper around terminal styling, '
'screen positioning, and keyboard input.'),
author='Jeff Quast, Erik Rose',
author_email='contact@jeffquast.com',
license='MIT',
packages=['blessed', 'blessed.tests'],
url='https://github.com/jquast/blessed',
include_package_data=True,
zip_safe=True,
classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Environment :: Console :: Curses',
'License :: OSI Approved :: MIT License',
'Operating System :: POSIX',
'Operating System :: Microsoft :: Windows',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: User Interfaces',
'Topic :: Terminals'
],
keywords=['terminal', 'sequences', 'tty', 'curses', 'ncurses',
'formatting', 'style', 'color', 'console', 'keyboard',
'ansi', 'xterm'],
)