-
Notifications
You must be signed in to change notification settings - Fork 19
/
setup.py
83 lines (79 loc) · 3.27 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# -*- coding: utf-8 -*-
#
# Copyright (C) 2015-2016 by the GFDRR / World Bank
#
# This file is part of ThinkHazard.
#
# ThinkHazard is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation, either version 3 of the License, or (at your option)
# any later version.
#
# ThinkHazard is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# ThinkHazard. If not, see <http://www.gnu.org/licenses/>.
import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, "README.md")) as f:
README = f.read()
with open(os.path.join(here, "CHANGES.rst")) as f:
CHANGES = f.read()
with open(os.path.join(here, "requirements.txt")) as f:
requires = f.read().splitlines()
setup(
name="thinkhazard",
version="3.0-dev",
description="thinkhazard",
long_description=README + "\n\n" + CHANGES,
classifiers=[
"Programming Language :: Python",
"Framework :: Pyramid",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
author="",
author_email="",
url="",
keywords="web wsgi bfg pylons pyramid",
packages=find_packages(),
include_package_data=True,
zip_safe=False,
test_suite="thinkhazard",
install_requires=requires,
entry_points={
"paste.app_factory": ["main = thinkhazard:main"],
"console_scripts": [
"initialize_thinkhazard_db = thinkhazard.scripts.initializedb:main",
"import_admindivs = thinkhazard.processing.import:AdministrativeDivisionsImporter.run",
"import_recommendations = thinkhazard.processing.import:RecommendationsImporter.run",
"import_further_resources = thinkhazard.scripts.import_further_resources:main",
"import_contacts = thinkhazard.processing.import:ContactsImporter.run",
"import_l10n = thinkhazard.processing.import_l10n:L10nImporter.run",
"harvest = thinkhazard.processing.harvesting:Harvester.run",
"download = thinkhazard.processing.downloading:Downloader.run",
"complete = thinkhazard.processing.completing:Completer.run",
"process = thinkhazard.processing.processing:Processor.run",
"decision_tree = thinkhazard.processing.decisiontree:DecisionMaker.run",
"publish = thinkhazard.processing.publish:Publisher.run",
],
"lingua.extractors": [
"database = thinkhazard.lib.lingua_extractor:DatabaseExtractor",
"enum = thinkhazard.lib.lingua_extractor:EnumExtractor",
],
"plaster.loader_factory": [
"c2c=thinkhazard.loader:Loader",
"c2c+ini=thinkhazard.loader:Loader",
"c2c+egg=thinkhazard.loader:Loader",
],
"plaster.wsgi_loader_factory": [
"c2c=thinkhazard.loader:Loader",
"c2c+ini=thinkhazard.loader:Loader",
"c2c+egg=thinkhazard.loader:Loader",
],
},
)