Skip to content

Commit 9f44a95

Browse files
committed
fixed readme for Pypi
1 parent 9f6d5f1 commit 9f44a95

3 files changed

Lines changed: 10 additions & 9 deletions

File tree

gimmemotifs/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import os
1111

1212
### CONSTANTS ###
13-
GM_VERSION = "0.9.0.0"
13+
GM_VERSION = "0.9.0.2"
1414
BG_TYPES = ["random", "genomic", "gc", "promoter"]
1515
FA_VALID_BGS = ["random", "promoter", "gc", "user"]
1616
BED_VALID_BGS = ["random", "genomic", "gc", "promoter", "user"]

setup.cfg

Lines changed: 0 additions & 8 deletions
This file was deleted.

setup.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@
2323
DESCRIPTION = """GimmeMotifs is a motif prediction pipeline.
2424
"""
2525

26+
# trick to get rst file for PyPi, see:
27+
# http://stackoverflow.com/questions/26737222/pypi-description-markdown-doesnt-work/26737672#26737672
28+
try:
29+
import pypandoc
30+
long_description = pypandoc.convert('README.md', 'rst')
31+
except(IOError, ImportError):
32+
long_description = open('README.md').read()
33+
2634
DEFAULT_PARAMS = {
2735
"max_time": None,
2836
"analysis": "medium",
@@ -430,6 +438,7 @@ def run(self):
430438
"install_config":install_config,
431439
},
432440
version = GM_VERSION,
441+
long_description = long_description,
433442
description = DESCRIPTION,
434443
author='Simon van Heeringen',
435444
author_email='simon.vanheeringen@gmail.com',

0 commit comments

Comments
 (0)