-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathsetup.py
More file actions
45 lines (35 loc) · 1.02 KB
/
setup.py
File metadata and controls
45 lines (35 loc) · 1.02 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
#!/usr/bin/env python
"""GeoKey setup."""
from os.path import join
from setuptools import setup, find_packages
from geokey.version import get_version
name = 'geokey'
version = get_version()
repository = join('https://github.com/ExCiteS', name)
def get_install_requires():
"""
Get requirements (ignore links, exclude comments).
Returns
-------
list
Requirements for GeoKey.
"""
requirements = list()
for line in open('requirements.txt').readlines():
if line.startswith('#') or line.startswith('git+https') or line == '':
continue
requirements.append(line.rstrip())
return requirements
setup(
name=name,
version=version,
description='Platform for participatory mapping',
url='http://geokey.org.uk',
download_url=join(repository, 'tarball', version),
author='ExCiteS',
author_email='excites@ucl.ac.uk',
license='Apache 2.0',
packages=find_packages(),
include_package_data=True,
install_requires=get_install_requires(),
)