forked from erikrose/blessings
-
Notifications
You must be signed in to change notification settings - Fork 72
/
setup.py
executable file
·87 lines (77 loc) · 2.83 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
81
82
83
84
85
86
87
#!/usr/bin/env python
"""Distutils setup script."""
# std imports
import os
# 3rd party
import setuptools
def _get_install_requires(fname):
return [req_line.strip() for req_line in open(fname)
if req_line.strip() and not req_line.startswith('#')]
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')),
python_requires=">=2.7",
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=('Easy, practical library for making terminal apps, by providing an elegant, '
'well-documented interface to Colors, Keyboard input, and screen Positioning '
'capabilities.'),
author='Jeff Quast, Erik Rose, Avram Lubkin',
author_email='[email protected]',
license='MIT',
packages=['blessed', ],
package_data={
'blessed': [
'py.typed',
'_capabilities.pyi',
'color.pyi',
'colorspace.pyi',
'formatters.pyi',
'keyboard.pyi',
'sequences.pyi',
'terminal.pyi',
'win_terminal.pyi',
],
},
url='https://github.com/jquast/blessed',
project_urls={'Documentation': 'https://blessed.readthedocs.io'},
include_package_data=True,
zip_safe=False,
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.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: User Interfaces',
'Topic :: Terminals',
'Typing :: Typed',
],
keywords=['terminal', 'sequences', 'tty', 'curses', 'ncurses',
'formatting', 'style', 'color', 'console', 'keyboard',
'ansi', 'xterm'],
)