-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
59 lines (48 loc) · 1.85 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# flake8: noqa
import codecs
import os
from setuptools import find_packages, setup
HERE = os.path.dirname(os.path.abspath(__file__))
# Read title, version etc from _version.py and put them into local scope
exec(open("lpipe/_version.py").read())
def read(fname):
file_path = os.path.join(os.path.dirname(__file__), fname)
return codecs.open(file_path, encoding="utf-8").read()
def list_requirements(filename):
return [line.strip() for line in open(filename) if line.strip() and line[0] != "-"]
setup(
name=__title__,
version=__version__,
author=__author__,
author_email=__author_email__,
maintainer=__author__,
maintainer_email=__author_email__,
license="APACHE",
url=__uri__,
project_urls={
"Bug Tracker": "https://github.com/mintel/lpipe/issues",
"Source Code": "https://github.com/mintel/lpipe",
},
packages=find_packages(where=HERE, exclude=["dummy_lambda", "tests", "tests.*"]),
description=__summary__,
long_description=read("README.md"),
long_description_content_type="text/markdown",
setup_requires=["pytest-runner"],
tests_require=list_requirements("requirements-dev.txt"),
install_requires=list_requirements("requirements.txt"),
extras_require={"sentry": ["sentry-sdk", "python-decouple"]},
python_requires=">=3.6",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Operating System :: OS Independent",
"License :: OSI Approved :: Apache Software License",
],
)