-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
31 lines (27 loc) · 973 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
import toml
from setuptools import find_packages, setup
from settings import VERSION
# Load the pyproject.toml file
with open("pyproject.toml", "r", encoding="utf-8") as toml_file:
pyproject = toml.load(toml_file)
# Extract project metadata and dependencies
project_metadata = pyproject.get("tool", {}).get("poetry", {})
dependencies = project_metadata.get("dependencies", {})
setup(
name=project_metadata.get("name", "covidashit"),
version=project_metadata.get("version", VERSION),
description=project_metadata.get("description", ""),
author=project_metadata.get(
"authors", ["Fabrizio Miano <fabriziomiano@gmail.com>"]
)[0],
packages=find_packages(),
include_package_data=True,
install_requires=list(dependencies.keys()),
zip_safe=False,
classifiers=[
"Programming Language :: Python :: 3",
"Framework :: Flask",
"Intended Audience :: Developers",
"License :: MIT License",
],
)