Skip to content

Commit

Permalink
Fixed a few issues with the setup script. Bumped to version 0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kbevers committed Jan 7, 2017
1 parent a2bf7c0 commit c5c0564
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion kvadratnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
from collections import namedtuple
import re

__version__ = '0.2.0'
__version__ = '0.2.1'

# actual size of tiles. In meters.
TILE_SIZES = {'100m': 100,
Expand Down
2 changes: 1 addition & 1 deletion publish.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
python setup.py register
python setup.py bdist_wheel upload
python setup.py bdist_wheel --universal upload
python setup.py bdist_egg upload

14 changes: 8 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
Setup script for the kvadratnet module.
"""

import os
import subprocess
from setuptools import setup

import kvadratnet
Expand All @@ -11,12 +13,12 @@ def readme():
Return a properly formatted readme text, if possible, that can be used
as the long description for setuptools.setup.
"""
try:
import pypandoc
return pypandoc.convert('readme..md', 'rst', format='md')
except (IOError, ImportError):
with open('readme.md') as f:
return f.read()
# This will fail if pandoc is not in system path.
subprocess.call(['pandoc', 'readme.md', '--from', 'markdown', '--to', 'rst', '-s', '-o', 'readme.rst'])
with open('readme.rst') as f:
readme = f.read()
os.remove('readme.rst')
return readme

setup(name='kvadratnet',
version=kvadratnet.__version__,
Expand Down

0 comments on commit c5c0564

Please sign in to comment.