From 286dcbd0c24563437c1cc2a8f96d731daf694525 Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Thu, 3 Dec 2015 11:45:10 +0100 Subject: [PATCH] Add __version__ variable to cscripts. --- .gitignore | 1 + configure.ac | 3 ++- cscripts/__init__.py | 55 ------------------------------------------------------- cscripts/__init__.py.in | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 61 insertions(+), 56 deletions(-) delete mode 100644 cscripts/__init__.py create mode 100644 cscripts/__init__.py.in diff --git a/.gitignore b/.gitignore index 8ca1b7c..57094ef 100644 --- a/.gitignore +++ b/.gitignore @@ -49,6 +49,7 @@ pyext/setup.py pyext/ctools/__init__.py pyext/ctools/tools.py pyext/ctools/tools_wrap.cpp +cscripts/__init__.py src/ctbin/ctbin src/ctlike/ctlike src/cttsmap/cttsmap diff --git a/configure.ac b/configure.ac index d81d416..837d511 100644 --- a/configure.ac +++ b/configure.ac @@ -921,10 +921,11 @@ AC_CONFIG_FILES([Makefile pyext/Makefile pyext/setup.py pyext/ctools/__init__.py + cscripts/__init__.py + cscripts/Makefile caldb/Makefile models/Makefile examples/Makefile - cscripts/Makefile ctools.pc testconf.sh], [if test -f test/test_cscripts.sh; then chmod +x test/test_cscripts.sh; fi; diff --git a/cscripts/__init__.py b/cscripts/__init__.py deleted file mode 100644 index c8491d0..0000000 --- a/cscripts/__init__.py +++ /dev/null @@ -1,55 +0,0 @@ -# ========================================================================== -# cscripts Python module -# -# Copyright (C) 2015 Juergen Knoedlseder -# -# This program 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. -# -# This program 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 this program. If not, see . -# -# ========================================================================== - -# List all scripts in this module -__all__ = [ - "cscaldb", - "cshessobs", - "csinfo", - "cslightcrv", - "csobsdef", - "cspull", - "csresmap", - "cssens", - "csspec", - "cstsdist", - "obsutils", - "test", -] - -# Import -from .cscaldb import cscaldb -from .cshessobs import cshessobs -from .csinfo import csinfo -from .cslightcrv import cslightcrv -from .csobsdef import csobsdef -from .cspull import cspull -from .csresmap import csresmap -from .cssens import cssens -from .csspec import csspec -from .cstsdist import cstsdist -from . import obsutils - -# Add test function -def test(): - """ - Run cscripts tests. - """ - print("No cscripts unit tests have been implemented so far.") diff --git a/cscripts/__init__.py.in b/cscripts/__init__.py.in new file mode 100644 index 0000000..4418a5d --- /dev/null +++ b/cscripts/__init__.py.in @@ -0,0 +1,58 @@ +# ========================================================================== +# cscripts Python module +# +# Copyright (C) 2015 Juergen Knoedlseder +# +# This program 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. +# +# This program 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 this program. If not, see . +# +# ========================================================================== + +# List all scripts in this module +__all__ = [ + "cscaldb", + "cshessobs", + "csinfo", + "cslightcrv", + "csobsdef", + "cspull", + "csresmap", + "cssens", + "csspec", + "cstsdist", + "obsutils", + "test", +] + +# Import +from .cscaldb import cscaldb +from .cshessobs import cshessobs +from .csinfo import csinfo +from .cslightcrv import cslightcrv +from .csobsdef import csobsdef +from .cspull import cspull +from .csresmap import csresmap +from .cssens import cssens +from .csspec import csspec +from .cstsdist import cstsdist +from . import obsutils + +# Add test function +def test(): + """ + Run cscripts tests. + """ + print("No cscripts unit tests have been implemented so far.") + +# Add version +__version__ = '@PACKAGE_VERSION@' \ No newline at end of file -- libgit2 0.21.4