-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix rst issues in pip long_description
- Loading branch information
Showing
2 changed files
with
25 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
with open('README.rst') as readme_file: | ||
readme = readme_file.read() | ||
|
||
with open('HISTORY.rst') as history_file: | ||
history = history_file.read() | ||
|
||
import re | ||
|
||
long_description = re.sub( | ||
r':py:[a-z]+:`([^`]+)`', | ||
r'``\1``', | ||
readme + '\n\n' + history) | ||
|
||
long_description = re.sub( | ||
r':issue:`([^`]+)`', | ||
r'`GH issue #\1 <https://github.com/ClimateImpactLab/climate_toolbox/issues/\1>`_', | ||
long_description) | ||
|
||
long_description = re.sub( | ||
r':pull:`([^`]+)`', | ||
r'`GH PR #\1 <https://github.com/ClimateImpactLab/climate_toolbox/pull/\1>`_', | ||
long_description) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,12 +4,7 @@ | |
"""The setup script.""" | ||
|
||
from setuptools import setup, find_packages | ||
|
||
with open('README.rst') as readme_file: | ||
readme = readme_file.read() | ||
|
||
with open('HISTORY.rst') as history_file: | ||
history = history_file.read() | ||
from description import long_description | ||
|
||
requirements = [ | ||
'Click>=6.0', | ||
|
@@ -31,7 +26,7 @@ | |
name='climate_toolbox', | ||
version='0.1.5', | ||
description="Tools for climate data wrangling", | ||
long_description=readme + '\n\n' + history, | ||
long_description=long_description, | ||
author="Justin Simcock", | ||
author_email='[email protected]', | ||
url='https://github.com/ClimateImpactLab/climate_toolbox', | ||
|