Skip to content

Commit 9a2eb37

Browse files
committedApr 24, 2015
Coherent version all-over
1 parent a5c8af9 commit 9a2eb37

File tree

6 files changed

+44
-11
lines changed

6 files changed

+44
-11
lines changed
 

‎bin/halostack_cli.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@
2727
from halostack.align import Align
2828
from halostack.helpers import (get_filenames, parse_enhancements,
2929
get_two_points, read_config, intermediate_fname)
30+
from halostack import __version__
31+
3032
import argparse
3133
import logging
3234
import platform
33-
import os
3435

3536
# log pattern
3637
LOG_FMT = '%(asctime)s - %(name)s - %(levelname)s: %(message)s'
@@ -210,6 +211,8 @@ def main():
210211
parser.add_argument("-p", "--nprocs", dest="nprocs", metavar="INT",
211212
type=int, default=None,
212213
help="Number of parallel processes")
214+
parser.add_argument("-v", "--version", action="version",
215+
version="Halostack %s" % (__version__))
213216
parser.add_argument('fname_in', metavar="FILE", type=str, nargs='*',
214217
help='List of files')
215218

‎doc/source/conf.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# serve to show the default.
1313

1414
import sys, os
15-
15+
from halostack import __major__, __minor__, __patch__, __version__
1616
import mock
1717

1818
MOCK_MODULES = ['numpy', 'matplotlib', 'matplotlib.pyplot', 'PythonMagick']
@@ -47,16 +47,16 @@
4747

4848
# General information about the project.
4949
project = u'halostack'
50-
copyright = u'2014, Panu Lahtinen'
50+
copyright = u'2014, 2015, Panu Lahtinen'
5151

5252
# The version info for the project you're documenting, acts as replacement for
5353
# |version| and |release|, also used in various other places throughout the
5454
# built documents.
5555
#
5656
# The short X.Y version.
57-
version = '0.1'
57+
version = '.'.join((__major__, __minor__))
5858
# The full version, including alpha/beta/rc tags.
59-
release = '0.1.0'
59+
release = '.'.join((version, __patch__))
6060

6161
# The language for content autogenerated by Sphinx. Refer to documentation
6262
# for a list of supported languages.

‎halostack/__init__.py

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
4+
# Copyright (c) 2014, 2015 Panu Lahtinen
5+
6+
# Author(s):
7+
8+
# Panu Lahtinen <pnuu+git@iki.fi>
9+
10+
# This program is free software: you can redistribute it and/or modify
11+
# it under the terms of the GNU General Public License as published by
12+
# the Free Software Foundation, either version 3 of the License, or
13+
# (at your option) any later version.
14+
15+
# This program is distributed in the hope that it will be useful,
16+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
17+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18+
# GNU General Public License for more details.
19+
20+
# You should have received a copy of the GNU General Public License
21+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
22+
23+
"""Version file.
24+
"""
25+
26+
__major__ = "0"
27+
__minor__ = "2"
28+
__patch__ = "0"
29+
30+
__version__ = "v" + ".".join([__major__, __minor__, __patch__])

‎halostack/stack.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33

4-
# Copyright (c) 2014
4+
# Copyright (c) 2014, 2015, Panu Lahtinen
55

66
# Author(s):
77

‎halostack/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"""
2525

2626
__major__ = "0"
27-
__minor__ = "0"
27+
__minor__ = "1"
2828
__patch__ = "0"
2929

3030
__version__ = "v" + ".".join([__major__, __minor__, __patch__])

‎setup.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424
"""
2525
from setuptools import setup
2626
import imp
27-
28-
version = imp.load_source('halostack.version', 'halostack/version.py')
27+
from halostack import __version__
28+
# version = imp.load_source('halostack.version', 'halostack/version.py')
2929

3030
setup(name="halostack",
31-
version=version.__version__,
32-
description='Halo photograph stacker',
31+
version=__version__,
32+
description='Halostack for stacking and enhancing halo photos',
3333
author='Panu Lahtinen',
3434
author_email='pnuu+git@iki.fi',
3535
classifiers=["Development Status :: 3 - Alpha",

0 commit comments

Comments
 (0)
Please sign in to comment.