Skip to content

Commit

Permalink
final tweaks to fix pypi docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrieve committed Mar 4, 2020
1 parent 7bdf54e commit 02e3881
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
21 changes: 18 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 02e3881

Please sign in to comment.