Repository navigation
Expand file tree
/
Copy pathsetup.py
More file actions
56 lines (47 loc) · 1.98 KB
/
Copy pathsetup.py
File metadata and controls
56 lines (47 loc) · 1.98 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
54
55
56
from setuptools import setup, find_packages
version = "0.9.2"
url = "http://openquake.org/"
README = """
OpenQuake is an open source application that allows users to
compute seismic hazard and seismic risk of earthquakes on a global scale.
Please note: the /usr/bin/openquake script requires a celeryconfig.py
file in the PYTHONPATH. Please make sure this is the case and that your
celeryconfig.py file works with your python-celery setup.
Feel free to copy /usr/openquake/engine/celeryconfig.py and revise it as needed.
"""
PY_MODULES = ['openquake.engine.bin.cache_gc', 'openquake.engine.bin.oqscript']
setup(
entry_points={
"console_scripts": [
"openquake = openquake.engine.bin.oqscript:main",
"oq_cache_gc = openquake.engine.bin.cache_gc:main",
"oq_monitor = openquake.engine.bin.openquake_supervisor:main",
]},
name="openquake.engine",
version=version,
author="The OpenQuake team",
author_email="devops@openquake.org",
description=("Computes hazard, risk and socio-economic impact of "
"earthquakes."),
license="AGPL3",
keywords="earthquake seismic hazard risk",
url=url,
long_description=README,
classifiers=[
"Development Status :: 3 - Alpha",
"Topic :: Utilities",
],
packages=find_packages(exclude=["qa_tests", "qa_tests.*",
"tools", "tests", "tests.*",
"openquake.engine.bin",
"openquake.engine.bin.*"]),
py_modules=PY_MODULES,
include_package_data=True,
package_data={"openquake.engine": [
"db/schema/*", "openquake.cfg", "README", "LICENSE"]},
exclude_package_data={"": ["bin/oqpath.py", "bin/oq_check_monitors",
"bin/oq_log_sink"]},
scripts=["openquake/engine/bin/oq_create_db", "openquake/engine/bin/oq_restart_workers"],
namespace_packages=['openquake'],
zip_safe=False,
)