-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
49 lines (42 loc) · 1.46 KB
/
setup.py
File metadata and controls
49 lines (42 loc) · 1.46 KB
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
import distutils.text_file # type: ignore
from pathlib import Path
from typing import List, Optional
from setuptools import setup, find_packages
def parse_requirements(
file_name: Optional[str] = "requirements.in",
) -> List[str]:
return distutils.text_file.TextFile(
filename=str(Path(__file__).with_name(file_name)) # type: ignore
).readlines()
def get_long_description():
with open("README.md", "r") as fh:
return fh.read()
setup(
name="mcd-agent",
use_scm_version=True,
license="https://github.com/monte-carlo-data/apollo-agent/blob/main/LICENSE.md",
description="Monte Carlo's Agent",
long_description=get_long_description(),
long_description_content_type="text/markdown",
author="Monte Carlo Data, Inc",
author_email="info@montecarlodata.com",
url="https://www.montecarlodata.com/",
packages=[
f"apollo.{p}"
for p in find_packages(
where="apollo", exclude=["tests*", "utils*", "examples*"]
)
],
include_package_data=True,
install_requires=parse_requirements(),
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Natural Language :: English",
"Topic :: Software Development :: Build Tools",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.12",
],
python_requires=">=3.12",
setup_requires=["setuptools", "setuptools_scm"],
)