forked from nickstenning/honcho
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
78 lines (69 loc) · 2.27 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
import codecs
import os
import re
from setuptools import find_packages
from setuptools import setup
###############################################################################
NAME = 'honcho'
AUTHOR = 'Nick Stenning'
AUTHOR_EMAIL = '[email protected]'
DESCRIPTION = 'Honcho: a Python clone of Foreman. For managing Procfile-based applications.'
LICENSE = 'MIT'
KEYWORDS = 'sysadmin process procfile'
URL = 'https://github.com/nickstenning/honcho'
CLASSIFIERS = [
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
]
INSTALL_REQUIRES = []
EXTRAS_REQUIRE = {
':sys_platform=="win32"': ['colorama'],
'export': ['jinja2>=3.1.2,<4'],
'docs': ['sphinx'],
}
ENTRY_POINTS = {
'console_scripts': [
'honcho=honcho.command:main'
],
'honcho_exporters': [
'runit=honcho.export.runit:Export',
'supervisord=honcho.export.supervisord:Export',
'systemd=honcho.export.systemd:Export',
'upstart=honcho.export.upstart:Export',
],
}
###############################################################################
HERE = os.path.dirname(__file__)
def read(*path):
with codecs.open(os.path.join(HERE, *path), encoding='utf-8') as fp:
return fp.read()
LONG_DESCRIPTION = read('README.rst')
VERSION = re.search(
r'^__version__ = [\'"]([^\'"]*)[\'"]',
read('honcho/__init__.py')
).group(1)
if __name__ == "__main__":
setup(name=NAME,
version=VERSION,
packages=find_packages(),
author=AUTHOR,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
long_description_content_type='text/x-rst',
license=LICENSE,
keywords=KEYWORDS,
url=URL,
classifiers=CLASSIFIERS,
install_requires=INSTALL_REQUIRES,
extras_require=EXTRAS_REQUIRE,
entry_points=ENTRY_POINTS,
include_package_data=True)