changeset 25:5aaaa084fabd

Moved application version information into its own file. IN: -
author John Schneiderman <JohnMS@CodeGNU.com>
date Thu, 31 Jul 2014 19:30:38 -0500
parents 9ebd6d65b6c1
children 795d652ed4f3
files setup.cfg src/__init__.py src/_app_info.py src/hwm.py
diffstat 4 files changed, 41 insertions(+), 20 deletions(-) [+]
line wrap: on
line diff
--- a/setup.cfg	Tue Jul 29 22:01:25 2014 -0500
+++ b/setup.cfg	Thu Jul 31 19:30:38 2014 -0500
@@ -21,7 +21,7 @@
 #*******************************************************************************
 
 [install]
-optimize=2
+optimize = 2
 
 [bdist_rpm]
 # Use --release to set the release number
--- a/src/__init__.py	Tue Jul 29 22:01:25 2014 -0500
+++ b/src/__init__.py	Thu Jul 31 19:30:38 2014 -0500
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 # -*- coding: utf-8 -*-
 #*******************************************************************************
 #**  This file is part of HgWeb Manager.                                     ***
@@ -23,8 +22,9 @@
 
 # Files to include when creating the package.
 __all__ =	[
-			'config.py'
-			, 'hwm.py'
-			, 'manager.py'
-			, 'manrepo.py'
-		]
+	'_app_info.py'
+	, 'config.py'
+	, 'hwm.py'
+	, 'manager.py'
+	, 'manrepo.py'
+]
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/_app_info.py	Thu Jul 31 19:30:38 2014 -0500
@@ -0,0 +1,33 @@
+# -*- coding: utf-8 -*-
+#*******************************************************************************
+#**  This file is part of HgWeb Manager.                                     ***
+#**                                                                          ***
+#**  Copyright (C) 2014                                                      ***
+#**  CodeGNU Solutions <Licensing _AT_ CodeGNU _DOT_ com>                    ***
+#**                                                                          ***
+#**  This program is free software: you can redistribute it and/or modify it ***
+#**  under the terms of the GNU Affero 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 Affero General Public License for more details.             ***
+#**                                                                          ***
+#**  You should have received a copy of the GNU Affero General Public License***
+#**  along with this program. If not, see <http://www.gnu.org/licenses/>.    ***
+#*******************************************************************************
+
+# The shortened name of the application
+SHORT_NAME='HWM'
+# The full name of the application
+LONG_NAME='HgWeb Manager'
+# The current version of the application
+VERSION = '0.3.0'
+# The current copyright years.
+YEARS = '2014'
+# A short description of the application
+DESCRIPTION = 'Manages HgWeb Repositories'
+# A long description of the application
+LONG_DESCRIPTION = 'An application to simplify the management of repositories shared through the Mercurial web publishing method.'
--- a/src/hwm.py	Tue Jul 29 22:01:25 2014 -0500
+++ b/src/hwm.py	Thu Jul 31 19:30:38 2014 -0500
@@ -20,23 +20,11 @@
 #**  along with this program. If not, see <http://www.gnu.org/licenses/>.    ***
 #*******************************************************************************
 
-# The shortened name of the application
-SHORT_NAME='HWM'
-# The full name of the application
-LONG_NAME='HgWeb Manager'
-# The current version of the application
-VERSION = '0.3.0'
-# The current copyright years.
-YEARS = '2014'
-# A short description of the application
-DESCRIPTION = 'Manages HgWeb Repositories'
-# A long description of the application
-LONG_DESCRIPTION = 'An application to simplify the management of repositories shared through the Mercurial web publishing method.'
-
 """
  IMPORTS
 """
 import config
+from _app_info import *
 
 
 # Configuration values for HgWebManager.