This repository has been archived by the owner on Feb 6, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Timothy McFadden
committed
Jun 8, 2015
1 parent
967027d
commit 23b7367
Showing
2 changed files
with
35 additions
and
0 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 |
---|---|---|
|
@@ -2,6 +2,9 @@ | |
__pycache__/ | ||
*.py[cod] | ||
|
||
# Release files | ||
release/ | ||
|
||
# C extensions | ||
*.so | ||
|
||
|
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,32 @@ | ||
#!/usr/bin/env python2.4 | ||
""" | ||
This script is used to create the release file. | ||
""" | ||
|
||
# Imports ###################################################################### | ||
import os | ||
|
||
|
||
# Metadata ##################################################################### | ||
__author__ = "Timothy McFadden" | ||
__creationDate__ = "06/08/2015" | ||
__license__ = "MIT" | ||
|
||
|
||
# Globals ###################################################################### | ||
THIS_DIR = os.path.abspath(os.path.dirname(__file__)) | ||
SRC = os.path.join(THIS_DIR, "..", "src", "storcli_check.py") | ||
DEST_DIR = os.path.join(THIS_DIR, "..", "release") | ||
|
||
if __name__ == '__main__': | ||
import imp | ||
import tarfile | ||
|
||
# Read the version from our project | ||
mod = imp.load_source("storcli_check", SRC) | ||
|
||
destination = os.path.join(DEST_DIR, "storcli_check-%s.tar.gz" % mod.__version__) | ||
with tarfile.open(destination, "w:gz") as tar: | ||
tar.add(SRC, "storcli_check.py") | ||
|
||
print "[%s] created" % destination |