umap/setup.py
Julien Sabatier 26b478f958 Correct setup.py
On Debian Jessie with pip install :

Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 20, in <module>
      File "/tmp/pip-o_ERWm-build/setup.py", line 16, in <module>
        with open('requirements.txt', encoding='utf-8') as reqs:
    TypeError: 'encoding' is an invalid keyword argument for this function
2015-10-15 15:15:48 +02:00

41 lines
1.1 KiB
Python

#!/usr/bin/env python
# -*- coding: utf-8 -*-
import codecs
import io
from setuptools import setup, find_packages
import umap
long_description = codecs.open('README.md', "r", "utf-8").read()
def is_pkg(line):
return line and not line.startswith(('--', 'git', '#'))
with io.open('requirements.txt', encoding='utf-8') as reqs:
install_requires = [l for l in reqs.read().split('\n') if is_pkg(l)]
setup(
name="umap",
version=umap.__version__,
author=umap.__author__,
author_email=umap.__contact__,
description=umap.__doc__,
keywords="django leaflet geodjango openstreetmap",
url=umap.__homepage__,
packages=find_packages(),
include_package_data=True,
platforms=["any"],
zip_safe=True,
long_description=long_description,
install_requires=install_requires,
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
"Programming Language :: Python",
],
)