Skip to content

Commit

Permalink
0.24.6
Browse files Browse the repository at this point in the history
  • Loading branch information
sundarnagarajan committed Mar 26, 2016
1 parent 021b97d commit e816811
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
'''
# You _SHOULD_ set these
name = 'setupext'
version = '0.24.5' # oldver: '0.24.4'
version = '0.24.6' # oldver: '0.24.5'
description = name
install_requires = [
]
Expand All @@ -23,10 +23,6 @@
)

# The following are optional
try:
long_description = open('README.rst').read()
except:
long_description = description
url = 'https://github.com/sundarnagarajan/setupext'
download_url = 'https://github.com/sundarnagarajan/setupext.git'
author = 'Sundar Nagarajan'
Expand Down Expand Up @@ -79,6 +75,19 @@
'''


def get_longdesc(default=''):
'''
Returns-->str
'''
files = ['README.rst', 'README.md', 'README.txt', 'README']
for f in files:
try:
return open(f, 'r').read()
except:
continue
return default


def get_dirtree(topdir, dirlist=[]):
'''
topdir-->str: must be name of a dir under current working dir
Expand Down Expand Up @@ -115,6 +124,8 @@ def get_dirtree(topdir, dirlist=[]):
package_dir = {name: name}
package_data = {name: get_dirtree(topdir=name, dirlist=dirlist)}

long_description = get_longdesc(description)

known_keywords = [
'name', 'version', 'packages', 'description', 'license',
'install_requires', 'requires', 'setup_requires',
Expand Down

0 comments on commit e816811

Please sign in to comment.