Skip to content

Commit a25d5eb

Browse files
authored
Merge pull request #89 from mbohlool/master
Extract DevelopmentStatus as a constant to scripts/constants.py
2 parents 420d491 + 58aa165 commit a25d5eb

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

scripts/constants.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
# Name of the release package
2929
PACKAGE_NAME = "kubernetes"
3030

31+
# Stage of development, mainly used in setup.py's classifiers.
32+
DEVELOPMENT_STATUS = "3 - Alpha"
33+
34+
3135
# If called directly, return the constant value given
3236
# its name. Useful in bash scripts.
3337
if __name__ == '__main__':

scripts/update-client.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ SCRIPT_ROOT=$(dirname "${BASH_SOURCE}")
3030
CLIENT_ROOT="${SCRIPT_ROOT}/../kubernetes"
3131
CLIENT_VERSION=$(python "${SCRIPT_ROOT}/constants.py" CLIENT_VERSION)
3232
PACKAGE_NAME=$(python "${SCRIPT_ROOT}/constants.py" PACKAGE_NAME)
33+
DEVELOPMENT_STATUS=$(python "${SCRIPT_ROOT}/constants.py" DEVELOPMENT_STATUS)
3334

3435
pushd "${SCRIPT_ROOT}" > /dev/null
3536
SCRIPT_ROOT=`pwd`
@@ -59,4 +60,6 @@ rm "${CLIENT_ROOT}/LICENSE"
5960
echo "--- updating version information..."
6061
sed -i'' "s/^CLIENT_VERSION = .*/CLIENT_VERSION = \\\"${CLIENT_VERSION}\\\"/" "${SCRIPT_ROOT}/../setup.py"
6162
sed -i'' "s/^PACKAGE_NAME = .*/PACKAGE_NAME = \\\"${PACKAGE_NAME}\\\"/" "${SCRIPT_ROOT}/../setup.py"
63+
sed -i'' "s/^DEVELOPMENT_STATUS = .*/DEVELOPMENT_STATUS = \\\"${DEVELOPMENT_STATUS}\\\"/" "${SCRIPT_ROOT}/../setup.py"
64+
6265
echo "---Done."

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
# by scripts/update-client.sh.
1919
CLIENT_VERSION = "1.0.0-snapshot"
2020
PACKAGE_NAME = "kubernetes"
21+
DEVELOPMENT_STATUS = "snapshot"
2122

2223
# To install the library, run the following
2324
#
@@ -53,7 +54,7 @@
5354
Python client for kubernetes http://kubernetes.io/
5455
""",
5556
classifiers=[
56-
"Development Status :: 4 - Alpha",
57+
"Development Status :: %s" % DEVELOPMENT_STATUS,
5758
"Environment :: Kubernetes",
5859
"Topic :: Utilities",
5960
"Intended Audience :: Developers",

0 commit comments

Comments
 (0)