Skip to content

Commit 6719608

Browse files
authored
Merge pull request #37 from bjlittle/add-long-description
Add long_description to setup.py
2 parents e75b4eb + 1de93f9 commit 6719608

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
# Stratify
22

3-
[![Build Status](https://travis-ci.org/SciTools-incubator/python-stratify.svg?branch=master)](https://travis-ci.org/SciTools-incubator/python-stratify) [![Binder](http://mybinder.org/badge.svg)](http://mybinder.org:/repo/scitools-incubator/python-stratify)
3+
[![Build Status](https://travis-ci.org/SciTools-incubator/python-stratify.svg?branch=master)](https://travis-ci.org/SciTools-incubator/python-stratify)
4+
[![Binder](http://mybinder.org/badge.svg)](http://mybinder.org:/repo/scitools-incubator/python-stratify)
45

56
Interpolation for restratification, particularly useful for Nd vertical interpolation of atmospheric and oceanographic datasets
67

78
## Introduction
89

9-
Discover the capabilites of `stratify` with this introductory [notebook](index.ipynb).
10+
Discover the capabilites of `stratify` with this introductory [notebook](https://nbviewer.jupyter.org/github/SciTools-incubator/SciTools-incubator.github.io/blob/python-stratify/index.ipynb).
1011

11-
[![An outline of the problem space](summary.png)](index.ipynb)
12+
![](https://SciTools-incubator.github.io/python-stratify/summary.png)
1213

1314
## Installation
1415

1516
```shell
16-
conda install -c scitools python-stratify
17+
conda install -c conda-forge python-stratify
1718
```
1819

1920
## License

setup.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ def extract_version():
4646
return version
4747

4848

49+
def long_description():
50+
fname = os.path.join(PACKAGE_DIR, 'README.md')
51+
with open(fname, 'rb') as fi:
52+
result = fi.read().decode('utf-8')
53+
return result
54+
55+
4956
# Python 2 is not supported by numpy as of version 1.17
5057
# but pip will attempt to install/use newer Python 3-only numpy versions.
5158
numpy_req = 'numpy<1.17' if sys.version_info.major < 3 else 'numpy'
@@ -74,6 +81,8 @@ def extract_version():
7481
description=('Vectorized interpolators that are especially useful for '
7582
'Nd vertical interpolation/stratification of atmospheric '
7683
'and oceanographic datasets'),
84+
long_description=long_description(),
85+
long_description_content_type='text/markdown',
7786
author='UK Met Office',
7887
author_email='scitools-iris-dev@googlegroups.com',
7988
url='https://github.com/SciTools-incubator/python-stratify',

0 commit comments

Comments
 (0)