-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
43 lines (33 loc) · 1.11 KB
/
Copy pathsetup.py
File metadata and controls
43 lines (33 loc) · 1.11 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
from pathlib import Path
from setuptools import setup, find_packages
ROOT = Path(__file__).parent
README_PATH = ROOT / "README.md"
REQUIREMENTS_PATH = ROOT / "requirements.txt"
def read_readme() -> str:
if README_PATH.exists():
return README_PATH.read_text(encoding="utf-8")
return "YUMA Code package"
def read_requirements() -> list[str]:
if REQUIREMENTS_PATH.exists():
return [line.strip() for line in REQUIREMENTS_PATH.read_text(encoding="utf-8").splitlines() if line.strip() and not line.startswith("#")]
return []
setup(
name="yuma-code",
version="1.0.0",
description="YUMA Code agents and tooling",
long_description=read_readme(),
long_description_content_type="text/markdown",
author="",
url="",
license="MIT",
python_requires=">=3.10",
packages=find_packages(where="src"),
package_dir={"": "src"},
include_package_data=True,
install_requires=read_requirements(),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
)