Add install_requires in setup.py
This commit is contained in:
parent
3eab361009
commit
846ca39bec
2 changed files with 10 additions and 6 deletions
|
@ -3,5 +3,5 @@ Django==1.8.3
|
|||
Pillow==2.9.0
|
||||
psycopg2==2.6.1
|
||||
python-social-auth==0.2.12
|
||||
django-leaflet-storage==0.7.6
|
||||
requests==2.7.0
|
||||
git+https://github.com/umap-project/django-leaflet-storage.git
|
||||
|
|
14
setup.py
14
setup.py
|
@ -7,7 +7,14 @@ from setuptools import setup, find_packages
|
|||
|
||||
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(
|
||||
name="umap",
|
||||
|
@ -17,18 +24,15 @@ setup(
|
|||
description=umap.__doc__,
|
||||
keywords="django leaflet geodjango openstreetmap",
|
||||
url=umap.__homepage__,
|
||||
download_url="https://bitbucket.org/yohanboniface/umap/downloads",
|
||||
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",
|
||||
#"Environment :: Web Environment",
|
||||
"Intended Audience :: Developers",
|
||||
#"License :: OSI Approved :: MIT License",
|
||||
"Operating System :: OS Independent",
|
||||
"Topic :: Software Development :: Libraries :: Python Modules",
|
||||
"Programming Language :: Python",
|
||||
|
|
Loading…
Reference in a new issue