Skip to content

Commit 8f9fb4b

Browse files
authored
Fix Python package metadata in setup.py (#46)
1 parent b98773d commit 8f9fb4b

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

tesseract_python/cmake/setup.py.in

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Based on https://github.com/robotraconteur/robotraconteur/blob/master/RobotRaconteurPython/setup.py.in
22

33
from setuptools import setup, Distribution, find_packages, Extension
4+
from pathlib import Path
5+
6+
long_description = (Path("@CMAKE_SOURCE_DIR@/..") / 'README.md').read_text()
47

58
# Suggested at https://stackoverflow.com/questions/24071491/how-can-i-make-a-python-wheel-from-an-existing-native-library
69
class BinaryDistribution(Distribution):
@@ -21,13 +24,20 @@ setup(name='tesseract-robotics',
2124
description='Tesseract Python Library',
2225
author='John Wason',
2326
author_email='wason@wasontech.com',
24-
url='http://robotraconteur.com/',
27+
url='https://tesseract-robotics.github.io/tesseract_python/',
28+
project_urls={
29+
'Documentation': 'https://tesseract-robotics.github.io/tesseract_python/',
30+
'Source': 'https://github.com/tesseract-robotics/tesseract_python',
31+
'Tracker': 'https://github.com/tesseract-robotics/tesseract_python/issues',
32+
},
33+
2534
packages=find_packages(include=['tesseract_robotics','tesseract_robotics.*']),
2635
package_data={'': ['*.pyd', '*.so', '*.dll']},
2736
distclass=BinaryDistribution,
2837
license='Apache-2.0',
2938
install_requires=['numpy'],
30-
long_description='Tesseract Robotics package for Python',
39+
long_description=long_description,
40+
long_description_content_type='text/markdown',
3141
ext_modules=[
3242
Extension(
3343
name='tesseract_robotics.tesseract_common._tesseract_common',

0 commit comments

Comments
 (0)