-
-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathsetup.py
More file actions
53 lines (48 loc) · 1.6 KB
/
setup.py
File metadata and controls
53 lines (48 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/usr/bin/env python
from setuptools import find_packages, setup
from django_loci import get_version
def get_install_requires():
"""
parse requirements.txt, ignore links, exclude comments
"""
requirements = []
for line in open("requirements.txt").readlines():
# skip to next iteration if comment or empty line
if (
line.startswith("#")
or line == ""
or line.startswith("http")
or line.startswith("git")
):
continue
# add line to requirements
requirements.append(line)
return requirements
setup(
name="django-loci",
version=get_version(),
license="BSD",
author="Federico Capoano",
author_email="support@openwisp.io",
description="Reusable django-app for outdoor and indoor mapping",
long_description=open("README.rst").read(),
url="http://openwisp.org",
download_url="https://github.com/openwisp/django-loci/releases",
platforms=["Platform Independent"],
keywords=["django", "gis"],
packages=find_packages(exclude=["tests*", "docs*"]),
include_package_data=True,
zip_safe=False,
install_requires=get_install_requires(),
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Scientific/Engineering :: GIS",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Framework :: Django",
"Programming Language :: Python :: 3",
],
)