-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get version from version.py instead of grepping the osg-configure script
- Loading branch information
1 parent
82d413d
commit c2de498
Showing
3 changed files
with
6 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__version__ = "2.3.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,7 @@ | ||
from distutils.core import setup | ||
import glob, re, os | ||
import glob, os | ||
|
||
|
||
def get_version(): | ||
""" | ||
Gets version from osg-configure script file | ||
""" | ||
buffer = open('scripts/osg-configure').read() | ||
match = re.search("VERSION\s+=\s+'(.*)'", buffer) | ||
return match.group(1) | ||
from osg_configure.version import __version__ | ||
|
||
|
||
def get_data_files(): | ||
|
@@ -44,7 +37,7 @@ def get_data_files(): | |
|
||
|
||
setup(name='osg-configure', | ||
version=get_version(), | ||
version=__version__, | ||
description='Package for osg-configure and associated scripts', | ||
author='Suchandra Thapa', | ||
author_email='[email protected]', | ||
|