Skip to content
Snippets Groups Projects
Commit aba97ddc authored by Alexandar Mechev's avatar Alexandar Mechev
Browse files

fixing python 2.6 issue and docs issue

parent 8e6908b9
No related branches found
No related tags found
No related merge requests found
"""GRID_LRT: Grid LOFAR Tools"""
from subprocess import call, check_output, STDOUT
from future.moves.subprocess import check_output
import os
import socket
......@@ -22,8 +23,6 @@ __email__ = "LOFAR@apmechev.com"
__status__ = "Production"
__date__ = "2018-09-29"
def format_version(version):
fmt = '{tag}.{commitcount}+{gitsha}'
parts = version.split('-')
......@@ -34,7 +33,6 @@ def format_version(version):
return tag
return fmt.format(tag=tag, commitcount=count, gitsha=sha.lstrip('g'))
def get_git_version():
command = 'git describe --tags --long --dirty'
git_version = check_output(command.split()).decode('utf-8').strip()
......@@ -51,4 +49,4 @@ def get_git_hash():
if not call(["git", "branch"], stderr=STDOUT, stdout=open(os.devnull, 'w')) != 0:
__commit__ = get_git_hash()
__githash__ = __commit__['hash']
.. _Staging:
Storage Modules
=============
GRID\_LRT's storage module enables users to interface with grid storage.
GRID_LRT.storage.gsifile
--------------------
.. automodule:: GRID_LRT.storage.gsifile
:members:
:undoc-members:
:inherited-members:
:show-inheritance:
......@@ -6,24 +6,24 @@ The GRID_LRT.Token module is responsible for interactions with CouchDB using the
Token.py
--------
Location: GRID_LRT/Token.py
Location: GRID_LRT/token.py
Imports:
>>> from GRID_LRT.Token import Token_Handler
>>> from GRID_LRT.Token import TokenSet
>>> from GRID_LRT.token import TokenHandler
>>> from GRID_LRT.token import TokenSet
TokenHandler
~~~~~~~~~~~~~~~~~~~~~~
.. autoclass:: GRID_LRT.Token.Token_Handler
.. autoclass:: GRID_LRT.token.TokenHandler
:members:
:undoc-members:
TokenSet
~~~~~~~~~~~~~~~~~~~~~~
.. autoclass:: GRID_LRT.Token.TokenSet
.. autoclass:: GRID_LRT.token.TokenSet
:members:
:undoc-members:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment