-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
39 lines (27 loc) · 1.12 KB
/
Copy pathsetup.py
File metadata and controls
39 lines (27 loc) · 1.12 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
#!/usr/bin/env python
"""Setup script for the project."""
import re
from setuptools import find_packages, setup
with open("README.md", "r", encoding="utf-8") as f:
long_description: str = f.read()
with open("handpose/requirements.txt", "r", encoding="utf-8") as f:
requirements: list[str] = f.read().splitlines()
with open("handpose/requirements-dev.txt", "r", encoding="utf-8") as f:
requirements_dev: list[str] = f.read().splitlines()
with open("handpose/__init__.py", "r", encoding="utf-8") as fh:
version_re = re.search(r"^__version__ = \"([^\"]*)\"", fh.read(), re.MULTILINE)
assert version_re is not None, "Could not find version in handpose/__init__.py"
version: str = version_re.group(1)
setup(
name="handpose",
version=version,
description="Real-time hand tracking and retargeting to robot hands",
author="Wesley Maa",
url="https://github.com/WT-MM/HandPose",
long_description=long_description,
long_description_content_type="text/markdown",
python_requires=">=3.11",
install_requires=requirements,
extras_require={"dev": requirements_dev},
packages=find_packages(),
)