-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
51 lines (44 loc) · 1.43 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
"""Project setup and packaging for sanic-healthcheck."""
import os
from codecs import open # for consistent encoding
from setuptools import setup, find_packages
import re
here = os.path.abspath(os.path.dirname(__file__))
# Load the package's __init__ file as a dictionary.
with open(os.path.join(here, 'sanic_healthcheck', '__init__.py'), 'r', 'utf-8') as f:
pkg = {k: v for k, v in re.findall(
r"^(__\w+__) = \'(.+)\'", f.read(), re.M)}
# Load the README
readme = ''
if os.path.exists('README.md'):
with open('README.md', 'r', 'utf-8') as f:
readme = f.read()
setup(
name=pkg['__title__'],
version=pkg['__version__'],
description=pkg['__description__'],
long_description=readme,
long_description_content_type='text/markdown',
url=pkg['__url__'],
author=pkg['__author__'],
author_email=pkg['__author_email__'],
license=pkg['__license__'],
packages=find_packages(exclude=['tests.*', 'tests']),
python_requires='>=3.6',
package_data={
'': ['LICENSE'],
},
install_requires=[
'sanic',
],
zip_safe=False,
keywords="sanic health healthcheck liveness readiness",
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
)