|
| 1 | +import re |
| 2 | +from pathlib import Path |
1 | 3 | from setuptools import setup, find_packages |
2 | 4 |
|
3 | 5 |
|
| 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 | + |
4 | 17 | setup( |
5 | 18 | name="alignit", |
6 | 19 | 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", |
10 | 20 | 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.", |
11 | 24 | install_requires=[ |
12 | 25 | "torch", |
13 | 26 | "torchvision", |
|
24 | 37 | "draccus", |
25 | 38 | "lerobot", |
26 | 39 | ], |
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 | + }, |
33 | 49 | ) |
0 commit comments