Add install_requires in setup.py

This commit is contained in:
Yohan Boniface 2015-09-23 09:33:29 +02:00
parent 3eab361009
commit 846ca39bec
2 changed files with 10 additions and 6 deletions

View file

@ -3,5 +3,5 @@ Django==1.8.3
Pillow==2.9.0 Pillow==2.9.0
psycopg2==2.6.1 psycopg2==2.6.1
python-social-auth==0.2.12 python-social-auth==0.2.12
django-leaflet-storage==0.7.6
requests==2.7.0 requests==2.7.0
git+https://github.com/umap-project/django-leaflet-storage.git

View file

@ -7,7 +7,14 @@ from setuptools import setup, find_packages
import umap import umap
long_description = codecs.open('README.rst', "r", "utf-8").read() long_description = codecs.open('README.md', "r", "utf-8").read()
def is_pkg(line):
return line and not line.startswith(('--', 'git', '#'))
with open('requirements.txt', encoding='utf-8') as reqs:
install_requires = [l for l in reqs.read().split('\n') if is_pkg(l)]
setup( setup(
name="umap", name="umap",
@ -17,18 +24,15 @@ setup(
description=umap.__doc__, description=umap.__doc__,
keywords="django leaflet geodjango openstreetmap", keywords="django leaflet geodjango openstreetmap",
url=umap.__homepage__, url=umap.__homepage__,
download_url="https://bitbucket.org/yohanboniface/umap/downloads",
packages=find_packages(), packages=find_packages(),
include_package_data=True, include_package_data=True,
platforms=["any"], platforms=["any"],
zip_safe=True, zip_safe=True,
long_description=long_description, long_description=long_description,
install_requires=install_requires,
classifiers=[ classifiers=[
"Development Status :: 3 - Alpha", "Development Status :: 3 - Alpha",
#"Environment :: Web Environment",
"Intended Audience :: Developers", "Intended Audience :: Developers",
#"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent", "Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Software Development :: Libraries :: Python Modules",
"Programming Language :: Python", "Programming Language :: Python",