Skip to content

Commit

Permalink
Trying to convert markdown into rst for rending on PyPI. Had to updat…
Browse files Browse the repository at this point in the history
…e version number [ci skip]
  • Loading branch information
manodeep committed Feb 9, 2016
1 parent e11f570 commit a83be32
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Corrfunc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
### following the accepted answer in:
### http://stackoverflow.com/questions/19913653/no-unicode-in-all-for-a-packages-init
__all__ = [n.encode('ascii') for n in __all__]
__version__ = "0.2.1"
__version__ = "0.2.2"

if sys.version_info[0] >= 3:
def rd(filename):
Expand Down
2 changes: 1 addition & 1 deletion common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ CLINK:=
DISTNAME:=Corrfunc
MAJOR:=0
MINOR:=2
PATCHLEVEL:=1
PATCHLEVEL:=2
VERSION:=$(MAJOR).$(MINOR).$(PATCHLEVEL)

INCLUDE:=-I../../io -I../../utils
Expand Down
9 changes: 8 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,13 @@ def setup_packages():
### change them to be relative to package dir rather than root
data_files = ["../{}".format(d) for d in data_files]

## Fix long description for PyPI
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
long_description = rd('README.md')

### All book-keeping is done.
base_url = "https://github.com/manodeep/Corrfunc"
metadata = dict(
Expand All @@ -183,7 +190,7 @@ def setup_packages():
url=base_url,
download_url='{0}/archive/{1}-{2}.tar.gz'.format(base_url,name,version),
description='Blazing fast correlation functions on the CPU',
long_description=rd('README.md'),
long_description=long_description,
classifiers = [
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
Expand Down

0 comments on commit a83be32

Please sign in to comment.