-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
41 lines (35 loc) · 1.05 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import setuptools
package_name = "add_service"
here = os.path.dirname(os.path.realpath(__file__))
if os.path.isfile("requirements.txt"):
with open("requirements.txt") as f:
requirements = [line.strip() for line in f]
else:
requirements = []
with open("README.md", "rb") as f:
long_description = f.read().decode("utf-8")
info = {}
with open(os.path.join(here, package_name, "main.py"), "rb") as f:
exec(f.read(), info)
setuptools.setup(
name=package_name,
version=info["__version__"],
author=info["__author__"],
author_email=info["__author_email__"],
description=info["__description__"],
long_description=info["__description__"],
long_description_content_type="text/markdown",
url=info["__url__"],
packages=setuptools.find_packages(),
install_requires=requirements,
classifiers=info["__classifiers__"],
include_package_data=True,
entry_points={
"console_scripts": [
"add_service=add_service.main:main",
],
},
)