-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
35 lines (30 loc) · 900 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
import os
from io import open
from typing import Dict
from setuptools import find_packages, setup
about: Dict[str, str] = {}
with open(
file=os.path.join("thoth", "__metadata__.py"),
mode="r",
encoding="utf-8",
) as f:
exec(f.read(), about)
with open("README.md", "r") as fh:
long_description = fh.read()
with open("requirements.txt") as f:
requirements = f.read().splitlines()
setup(
name=about["__package_title__"],
version=about["__version__"],
description=about["__description__"],
author=about["__author__"],
license=about["__license__"],
url=about["__url__"],
packages=find_packages(
exclude=["tests", "pipenv", "env", "venv", "htmlcov", ".pytest_cache", "pip"]
),
long_description=long_description,
long_description_content_type="text/markdown",
python_requires=">=3.9, <4",
install_requires=requirements,
)