From 8116d576ff1ce96b0cb6eb9a9415c1814ef710b4 Mon Sep 17 00:00:00 2001 From: Wouter Bolsterlee Date: Fri, 25 May 2012 00:03:10 +0200 Subject: [PATCH] Make _version module semi-private --- doc/conf.py | 2 +- happybase/__init__.py | 2 +- happybase/{version.py => _version.py} | 0 setup.py | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename happybase/{version.py => _version.py} (100%) diff --git a/doc/conf.py b/doc/conf.py index 4ac013b..18c3249 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -48,7 +48,7 @@ copyright = u'2012' # built documents. # # The short X.Y version. -execfile(os.path.join(os.path.dirname(__file__), '../happybase/version.py')) +execfile(os.path.join(os.path.dirname(__file__), '../happybase/_version.py')) version = __version__ # The full version, including alpha/beta/rc tags. diff --git a/happybase/__init__.py b/happybase/__init__.py index 4ca4320..7e57193 100644 --- a/happybase/__init__.py +++ b/happybase/__init__.py @@ -2,6 +2,6 @@ HappyBase, a pythonic interface for HBase using Thrift """ -from .version import __version__ +from ._version import __version__ from .api import * diff --git a/happybase/version.py b/happybase/_version.py similarity index 100% rename from happybase/version.py rename to happybase/_version.py diff --git a/setup.py b/setup.py index dca17e0..44caad2 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ from os.path import join, dirname from setuptools import find_packages, setup -execfile('happybase/version.py') +execfile('happybase/_version.py') def file_contents(filename):