Commit 54221da5 authored by Patrick Godwin's avatar Patrick Godwin

rename everything from datamon to ligo.scald namespace

parent b599926f
Pipeline #49537 passed with stages
in 1 minute and 28 seconds
from __future__ import print_function, division
from __future__ import absolute_import
__author__ = "Patrick Godwin (patrick.godwin@ligo.org)"
plugins = ['http', 'kafka', 'hdf5', 'sqlite']
from . import http
from . import kafka
from . import hdf5
from . import sqlite
try:
from . import influx
except ImportError:
pass
else:
plugins.append('influx')
__all__ = plugins
......@@ -4,7 +4,7 @@
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SPHINXPROJ = datamon
SPHINXPROJ = ligo-scald
SOURCEDIR = source
BUILDDIR = build
......@@ -17,4 +17,4 @@ help:
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
\ No newline at end of file
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
......@@ -8,5 +8,5 @@ aggregator.py
API Reference
====================================================================================================
.. automodule:: datamon.aggregator
.. automodule:: ligo.scald.aggregator
:members:
......@@ -8,5 +8,5 @@ deploy.py
API Reference
====================================================================================================
.. automodule:: datamon.deploy
.. automodule:: ligo.scald.deploy
:members:
......@@ -8,5 +8,5 @@ mock.py
API Reference
====================================================================================================
.. automodule:: datamon.mock
.. automodule:: ligo.scald.mock
:members:
......@@ -8,5 +8,5 @@ serve.py
API Reference
====================================================================================================
.. automodule:: datamon.serve
.. automodule:: ligo.scald.serve
:members:
......@@ -8,5 +8,5 @@ utils.py
API Reference
====================================================================================================
.. automodule:: datamon.utils
.. automodule:: ligo.scald.utils
:members:
......@@ -19,7 +19,7 @@
# -- Project information -----------------------------------------------------
project = u'datamon'
project = u'ligo-scald'
copyright = u'2019, Patrick Godwin'
author = u'Patrick Godwin'
......@@ -105,7 +105,7 @@ html_sidebars = { '**': ['about.html', 'navigation.html', 'relations.html', 'sea
# -- Options for HTMLHelp output ---------------------------------------------
# Output file base name for HTML help builder.
htmlhelp_basename = 'datamondoc'
htmlhelp_basename = 'ligo-scalddoc'
# -- Options for LaTeX output ------------------------------------------------
......@@ -132,7 +132,7 @@ latex_elements = {
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
latex_documents = [
(master_doc, 'datamon.tex', u'datamon Documentation',
(master_doc, 'ligo-scald.tex', u'ligo-scald Documentation',
u'Patrick Godwin', 'manual'),
]
......@@ -142,7 +142,7 @@ latex_documents = [
# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
(master_doc, 'datamon', u'datamon Documentation',
(master_doc, 'ligo-scald', u'ligo-scald Documentation',
[author], 1)
]
......@@ -153,8 +153,8 @@ man_pages = [
# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents = [
(master_doc, 'datamon', u'datamon Documentation',
author, 'datamon', 'One line description of project.',
(master_doc, 'ligo-scald', u'ligo-scald Documentation',
author, 'ligo-scald', 'One line description of project.',
'Miscellaneous'),
]
......
.. datamon documentation master file, created by
.. ligo-scald documentation master file, created by
sphinx-quickstart on Sun Jan 6 17:53:22 2019.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to datamon's documentation!
Welcome to ligo-scald's documentation!
===================================
.. toctree::
......
# configuration file for monitoring
dashboard:
title: GstLAL
title: scald
image: null
tabs:
- name: Summary
......
__import__('pkg_resources').declare_namespace(__name__)
from __future__ import absolute_import, print_function, division
......@@ -18,7 +18,7 @@ from . import utils
### set up CLI commands
parser = argparse.ArgumentParser(
prog='datamon',
prog='scald',
)
subparser = parser.add_subparsers(
title='Commands',
......
......@@ -20,7 +20,7 @@ from . import utils
CGI_BASH_TEMPLATE = """#!/bin/bash
export PYTHONPATH={python_path}:$PYTHONPATH
exec python -m datamon serve -b cgi -c {config_path} {cgi_extension}
exec python -m ligo.scald serve -b cgi -c {config_path} {cgi_extension}
"""
#-------------------------------------------------
......@@ -79,7 +79,7 @@ def main(args=None):
generate_cgi_script(config_path, output_dir, extension=extension)
### copy over static files
static_dir = pkg_resources.resource_filename(pkg_resources.Requirement.parse('datamon'), 'datamon/static')
static_dir = pkg_resources.resource_filename(pkg_resources.Requirement.parse('ligo_scald'), 'static')
try:
dir_util.copy_tree(static_dir, os.path.join(output_dir, 'static'))
except OSError:
......
__all__ = ['http', 'influx', 'kafka', 'hdf5', 'sqlite']
......@@ -36,7 +36,7 @@ JSON_HEADER = {
### bottle apps/routing
def static(file_):
static_dir = pkg_resources.resource_filename(pkg_resources.Requirement.parse('datamon'), 'datamon/static')
static_dir = pkg_resources.resource_filename(pkg_resources.Requirement.parse('ligo_scald'), 'static')
yield bottle.static_file(file_, root=static_dir)
......
......@@ -16,7 +16,7 @@ HEADER_TEMPLATE = """
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' />
<!-- Dashboard -->
<link href="{{static_dir}}static/datamon.css" rel="stylesheet" type="text/css" />
<link href="{{static_dir}}static/scald.css" rel="stylesheet" type="text/css" />
<!-- Dependencies -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" type="text/javascript"></script>
......@@ -32,7 +32,7 @@ HEADER_TEMPLATE = """
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
crossorigin="anonymous">
</script>
<script src="{{static_dir}}static/datamon.js"></script>
<script src="{{static_dir}}static/scald.js"></script>
</head>
"""
......
import os
from setuptools import setup, find_packages
from setuptools import setup
try:
os.symlink('../static', 'datamon/static')
setup(
name = 'datamon',
description = 'Data monitoring and visualization tools',
version = '0.1.0',
author = 'Patrick Godwin',
author_email = 'patrick.godwin@ligo.org',
url = 'https://git.ligo.org/gstlal-visualisation/gstlal-datamon.git',
license = 'GPLv2+',
setup(
name = 'ligo-scald',
description = 'SCalable Analytics for Ligo Data',
version = '0.1.0',
author = 'Patrick Godwin',
author_email = 'patrick.godwin@ligo.org',
url = 'https://git.ligo.org/gstlal-visualisation/ligo-scald.git',
license = 'GPLv2+',
packages = find_packages(),
packages = ['ligo', 'ligo.scald', 'ligo.scald.io', 'static'],
namespace_packages = ['ligo'],
package_data = {
'datamon': ['static/*']
},
package_data = {
'static': ['*']
},
entry_points={
'console_scripts': [
'datamon = datamon.__main__:main',
],
},
)
finally:
os.unlink('datamon/static')
entry_points={
'console_scripts': [
'scald = ligo.scald.__main__:main',
],
},
)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment