1"""tmuxp lives at <https://github.com/tmux-python/tmuxp>."""
2import sys
3
4from setuptools import setup
5
6about = {}
7with open("tmuxp/__about__.py") as fp:
8    exec(fp.read(), about)
9
10with open('requirements/base.txt') as f:
11    install_reqs = [line for line in f.read().split('\n') if line]
12
13with open('requirements/test.txt') as f:
14    tests_reqs = [line for line in f.read().split('\n') if line]
15
16if sys.version_info[0] > 2:
17    readme = open('README.md', encoding='utf-8').read()
18else:
19    readme = open('README.md').read()
20
21history = open('CHANGES').read().replace('.. :changelog:', '')
22
23
24setup(
25    name=about['__title__'],
26    version=about['__version__'],
27    url=about['__github__'],
28    project_urls={
29        'Documentation': about['__docs__'],
30        'Code': about['__github__'],
31        'Issue tracker': about['__tracker__'],
32    },
33    download_url=about['__pypi__'],
34    license=about['__license__'],
35    author=about['__author__'],
36    author_email=about['__email__'],
37    description=about['__description__'],
38    long_description=readme,
39    long_description_content_type="text/markdown",
40    packages=['tmuxp'],
41    include_package_data=True,
42    install_requires=install_reqs,
43    tests_require=tests_reqs,
44    zip_safe=False,
45    keywords=about['__title__'],
46    entry_points=dict(console_scripts=['tmuxp=tmuxp:cli.cli']),
47    classifiers=[
48        "Development Status :: 5 - Production/Stable",
49        "License :: OSI Approved :: MIT License",
50        "Operating System :: POSIX",
51        "Operating System :: MacOS :: MacOS X",
52        "Environment :: Web Environment",
53        "Intended Audience :: Developers",
54        "Programming Language :: Python",
55        "Programming Language :: Python :: 3.6",
56        "Programming Language :: Python :: 3.7",
57        "Programming Language :: Python :: 3.8",
58        "Programming Language :: Python :: 3.9",
59        "Programming Language :: Python :: Implementation :: PyPy",
60        "Topic :: Utilities",
61        "Topic :: System :: Shells",
62    ],
63)
64