forked from mysociety/mapit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
42 lines (37 loc) · 1.43 KB
/
setup.py
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
from setuptools import setup, find_packages
import os
file_dir = os.path.abspath(os.path.dirname(__file__))
def read_file(filename):
filepath = os.path.join(file_dir, filename)
return open(filepath).read()
def install_requires():
reqs = read_file('requirements.txt')
reqs = reqs.splitlines()
reqs = [ x for x in reqs if x and x[0] != '#' and x[0:2] != '-e' ]
return reqs
setup(
name='django-mapit',
version='1.0.2',
description='A web service for mapping postcodes and points to current or past administrative area information and polygons.',
long_description=read_file('README.rst'),
author='mySociety',
author_email='mapit@mysociety.org',
url='https://github.com/mysociety/mapit',
license='LICENSE.txt',
packages=find_packages(exclude=['project']),
scripts = [ 'bin/mapit_make_css', 'bin/mapit_osm_to_kml' ],
include_package_data=True,
install_requires=install_requires(),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'License :: OSI Approved :: GNU Affero General Public License v3',
'Intended Audience :: Developers',
'Programming Language :: Python',
'Topic :: Database :: Front-Ends',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Scientific/Engineering :: GIS',
],
zip_safe=False, # So that easy_install doesn't make an egg
)