Skip to content

Commit 0f576ef

Browse files
committed
improve setup.py
1 parent 28eb7a1 commit 0f576ef

1 file changed

Lines changed: 25 additions & 9 deletions

File tree

setup.py

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,26 @@
1+
import re
2+
from pathlib import Path
13
from setuptools import setup, find_packages
24

35

6+
this_directory = Path(__file__).parent
7+
long_description = (this_directory / "README.md").read_text()
8+
9+
# Replace relative links with absolute links
10+
for match in re.findall(r"\]\((?!http)([^)]+)\)", long_description):
11+
filepath = Path(match)
12+
long_description = long_description.replace(
13+
match, f"https://github.com/SpesRobotics/alignit/raw/main/{filepath}"
14+
)
15+
16+
417
setup(
518
name="alignit",
619
version="0.0.1",
7-
description="Model-free real-time robot arm alignment using one or more RGB(D) cameras.",
8-
author="Spes Robotics",
9-
author_email="contact@spes.ai",
1020
packages=find_packages(),
21+
long_description=long_description,
22+
long_description_content_type="text/markdown",
23+
description="Model-free real-time robot arm alignment using one or more RGB(D) cameras.",
1124
install_requires=[
1225
"torch",
1326
"torchvision",
@@ -24,10 +37,13 @@
2437
"draccus",
2538
"lerobot",
2639
],
27-
python_requires=">=3.7",
28-
classifiers=[
29-
"Programming Language :: Python :: 3",
30-
"License :: OSI Approved :: Apache License",
31-
"Operating System :: OS Independent",
32-
],
40+
license="Apache 2.0",
41+
python_requires=">=3.8",
42+
author="Spes Robotics",
43+
author_email="contact@spes.ai",
44+
project_urls={
45+
"Documentation": "https://github.com/SpesRobotics/alignit",
46+
"Source": "https://github.com/SpesRobotics/alignit",
47+
"Tracker": "https://github.com/SpesRobotics/alignit/issues",
48+
},
3349
)

0 commit comments

Comments
 (0)