This repository has been archived by the owner on Apr 27, 2021. It is now read-only.
/
setup.py
executable file
·62 lines (52 loc) · 1.7 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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Setup file for Distutils."""
from logging import DEBUG
from logging import getLogger
from logging import StreamHandler
import os
import maruberu
logger = getLogger(__name__)
handler = StreamHandler()
handler.setLevel(DEBUG)
logger.setLevel(DEBUG)
logger.addHandler(handler)
try:
from setuptools import find_packages
from setuptools import setup
except ImportError:
logger.critical("Please install setuptools.")
def main() -> None:
"""Setup package after read meta information from files."""
long_description = "You can ring my round bell."
if os.path.exists("README.rst"):
with open("README.rst") as f:
long_description = f.read()
install_requires = []
if os.path.exists("requirements.txt"):
with open("requirements.txt") as f:
install_requires = f.read().split()
setup(name="maruberu",
version=maruberu.__version__,
description="You can ring my round bell.",
long_description=long_description,
license="MIT",
author="Amane Katagiri",
author_email="amane@ama.ne.jp",
url="https://github.com/amane-katagiri/maruberu",
keywords="server bell alert",
install_requires=[
] + install_requires,
classifiers=[
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.7",
"Framework :: Tornado",
],
packages=find_packages(),
entry_points="""
[console_scripts]
maruberu = maruberu.main:main
""", )
if __name__ == "__main__":
main()