# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function

from setuptools import find_packages, setup

setup_cython = dict()
try:
    from Cython.Build import cythonize
    setup_cython = dict(ext_modules=cythonize('geohash_hilbert/_hilbert_cython.pyx'))
except ImportError:
    pass

try:
    import pypandoc
    long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
    long_description = open('README.md').read()

version = '0.3'

setup(
    name='geohash-hilbert',
    version=version,
    packages=find_packages(),
    install_requires=[],
    author='Tammo Ippen',
    author_email='tammo.ippen@posteo.de',
    description='Geohash a lng/lat coordinate using the hilbert curve.',
    long_description=long_description,
    url='https://github.com/tammoippen/geohash-hilbert',
    download_url='https://github.com/tammoippen/geohash-hilbert/archive/v{}.tar.gz'.format(version),
    keywords=['geohash', 'hilbert', 'space filling curve', 'geometry'],
    include_package_data=True,
    **setup_cython
)

# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function

from setuptools import find_packages, setup

setup_cython = dict()
try:
    from Cython.Build import cythonize
    setup_cython = dict(ext_modules=cythonize('geohash_hilbert/_hilbert_cython.pyx'))
except ImportError:
    pass

try:
    import pypandoc
    long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
    long_description = open('README.md').read()

version = '0.4'

setup(
    name='geohash-hilbert',
    version=version,
    packages=find_packages(),
    install_requires=[],
    author='Tammo Ippen',
    author_email='tammo.ippen@posteo.de',
    description='Geohash a lng/lat coordinate using the hilbert curve.',
    long_description=long_description,
    url='https://github.com/tammoippen/geohash-hilbert',
    download_url='https://github.com/tammoippen/geohash-hilbert/archive/v{}.tar.gz'.format(version),
    keywords=['geohash', 'hilbert', 'space filling curve', 'geometry'],
    include_package_data=True,
    **setup_cython
)

Bump version