umap/setup.py

49 lines
1.4 KiB
Python
Raw Normal View History

2012-11-20 03:47:19 -06:00
#!/usr/bin/env python
2012-11-22 04:55:22 -06:00
import io
2018-09-05 15:31:01 -05:00
from pathlib import Path
2012-11-22 04:55:22 -06:00
2012-11-20 03:47:19 -06:00
from setuptools import setup, find_packages
2013-01-02 08:49:20 -06:00
import umap
2012-11-22 04:55:22 -06:00
2015-09-23 02:33:29 -05:00
def is_pkg(line):
return line and not line.startswith(('--', 'git', '#'))
2018-09-05 15:31:01 -05:00
with io.open('requirements.txt', encoding='utf-8') as reqs:
2015-09-23 02:33:29 -05:00
install_requires = [l for l in reqs.read().split('\n') if is_pkg(l)]
2012-11-22 04:55:22 -06:00
2012-11-20 03:47:19 -06:00
setup(
2017-02-03 02:25:47 -06:00
name="umap-project",
2013-01-02 08:49:20 -06:00
version=umap.__version__,
author=umap.__author__,
author_email=umap.__contact__,
description=umap.__doc__,
2018-06-02 10:24:25 -05:00
keywords="django leaflet geodjango openstreetmap map",
2013-01-02 08:49:20 -06:00
url=umap.__homepage__,
2012-11-20 03:47:19 -06:00
packages=find_packages(),
2012-11-22 04:55:22 -06:00
include_package_data=True,
platforms=["any"],
zip_safe=True,
2018-09-05 15:31:01 -05:00
long_description=Path('README.md').read_text(),
2018-06-02 10:24:25 -05:00
long_description_content_type='text/markdown',
2015-09-23 02:33:29 -05:00
install_requires=install_requires,
2012-11-22 04:55:22 -06:00
classifiers=[
2018-06-02 10:24:25 -05:00
"Development Status :: 4 - Beta",
2012-11-22 04:55:22 -06:00
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
"Programming Language :: Python",
2018-06-02 10:24:25 -05:00
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
2012-11-22 04:55:22 -06:00
],
entry_points={
'console_scripts': ['umap=umap.bin:main'],
},
)