-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
38 lines (33 loc) · 977 Bytes
/
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
"""Package configuration."""
from os.path import abspath, dirname
from setuptools import find_packages, setup
from spithon import (
__version__,
PROJECT_DESCRIPTION,
PROJECT_AUTHOR,
PROJECT_EMAIL,
PROJECT_LICENSE,
PROJECT_URL,
PROJECT_CLASSIFIERS,
)
THIS_DIR = abspath(dirname(__file__))
with open(f"{THIS_DIR}/requirements.txt") as req_file:
REQUIRES = [line.rstrip() for line in req_file]
with open(f"{THIS_DIR}/README.rst") as readme_file:
LONG_DESCRIPTION = readme_file.read()
PACKAGES = find_packages()
setup(
name="spithon",
version=__version__,
description=PROJECT_DESCRIPTION,
long_description=LONG_DESCRIPTION,
author=PROJECT_AUTHOR,
author_email=PROJECT_EMAIL,
license=PROJECT_LICENSE,
url=PROJECT_URL,
packages=PACKAGES,
install_requires=REQUIRES,
include_package_data=True,
classifiers=PROJECT_CLASSIFIERS,
entry_points={"console_scripts": ["spithon=spithon.cli:cli"]},
)