Skip to content

Commit 8e0ab13

Browse files
committed
Add long_description and long_description_content_type metadata for README to show in pypi.
1 parent e9d229f commit 8e0ab13

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

setup.cfg

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
name = astroquery
33
version = 0.4.7.dev
44
description = Functions and classes to access online astronomical data resources
5-
# FIXME long_description =
65
author = The Astroquery Developers
76
license = BSD
87
url = http://astropy.org/astroquery

setup.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,9 @@
1515

1616
from astropy_helpers.setup_helpers import setup
1717

18-
setup()
18+
# Read the contents of the README file
19+
from pathlib import Path
20+
this_directory = Path(__file__).parent
21+
long_description = (this_directory / "README.rst").read_text()
22+
23+
setup(long_description=long_description, long_description_content_type='text/x-rst')

0 commit comments

Comments
 (0)