From 02e388178f4ef4ebfd9793c394aac8a20700c13b Mon Sep 17 00:00:00 2001 From: Stuart Grieve Date: Wed, 4 Mar 2020 17:55:51 +0000 Subject: [PATCH] final tweaks to fix pypi docs --- docs/source/conf.py | 2 +- setup.py | 21 ++++++++++++++++++--- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 86ff2d8..c9f1d1b 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -62,7 +62,7 @@ # The short X.Y version. version = u'1.2' # The full version, including alpha/beta/rc tags. -release = u'1.2.0' +release = u'1.2.1' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/setup.py b/setup.py index e207650..59414c0 100644 --- a/setup.py +++ b/setup.py @@ -3,14 +3,29 @@ def readme(): + + # Need to replace the local image paths with the external links so the + # readme works on pypi + lut = { + '_static/figure_1.png': 'https://raw.githubusercontent.com/sgrieve/spatial_efd/master/_static/figure_1.png', + '_static/figure_2.png': 'https://raw.githubusercontent.com/sgrieve/spatial_efd/master/_static/figure_2.png', + '_static/figure_3.png': 'https://raw.githubusercontent.com/sgrieve/spatial_efd/master/_static/figure_3.png', + '_static/figure_4.png': 'https://raw.githubusercontent.com/sgrieve/spatial_efd/master/_static/figure_4.png' + } + with open('README.rst') as f: - return f.read() + text = f.read() + + for k, v in lut.items(): + text = text.replace(k, v) + + return text setup(name='spatial_efd', - version='1.2.0', + version='1.2.1', description='Spatial elliptical fourier analysis', - url='http://github.com/sgrieve/spatial-efd', + url='http://github.com/sgrieve/spatial_efd', long_description=readme(), keywords='GIS elliptical fourier analysis shapefile', classifiers=['Development Status :: 5 - Production/Stable',