-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
41 lines (32 loc) · 1018 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
39
40
41
# -*- coding: utf-8 -*-
from pathlib import Path
from setuptools import setup, find_packages
# Read the `__about__.py` file. This is how `cryptography` does it. Seems
# like a decent way, but I don't really like the `exec()`. /shrug.
about = {}
about_file = Path.cwd() / "src" / "trendlines" / "__about__.py"
with open(str(about_file)) as openf:
exec(openf.read(), about)
long_descr = Path("./README.md").read_text()
requires = [
"flask>=1.0",
"peewee>=3.8",
"marshmallow>=2.19,<3.0",
"apispec>=3,<4",
"pip>=18",
]
setup(
name=about["__package_name__"],
version=about['__version__'],
description=about['__description__'],
long_description=long_descr,
long_description_content_type="text/markdown",
url=about['__project_url__'],
author=about['__author__'],
author_email=about['__email__'],
package_dir={'': 'src'},
packages=find_packages(where='src'),
include_package_data=False,
python_requires=">=3.6",
install_requires=requires,
)