Fix snapshot version to be compliant with PEP440.
This commit is contained in:
parent
f4196f9c5f
commit
cdfd750727
@ -4,7 +4,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
|
||||
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||
|
||||
- API version: release-1.26
|
||||
- Package version: 26.0.0-snapshot
|
||||
- Package version: 26.0.0+snapshot
|
||||
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
||||
|
||||
## Requirements.
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
|
||||
__project__ = 'kubernetes'
|
||||
# The version is auto-updated. Please do not edit.
|
||||
__version__ = "26.0.0-snapshot"
|
||||
__version__ = "26.0.0+snapshot"
|
||||
|
||||
from . import client
|
||||
from . import config
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
__version__ = "26.0.0-snapshot"
|
||||
__version__ = "26.0.0+snapshot"
|
||||
|
||||
# import apis into sdk package
|
||||
from kubernetes.client.api.well_known_api import WellKnownApi
|
||||
|
||||
@ -78,7 +78,7 @@ class ApiClient(object):
|
||||
self.default_headers[header_name] = header_value
|
||||
self.cookie = cookie
|
||||
# Set default User-Agent.
|
||||
self.user_agent = 'OpenAPI-Generator/26.0.0-snapshot/python'
|
||||
self.user_agent = 'OpenAPI-Generator/26.0.0+snapshot/python'
|
||||
self.client_side_validation = configuration.client_side_validation
|
||||
|
||||
def __enter__(self):
|
||||
|
||||
@ -350,7 +350,7 @@ class Configuration(object):
|
||||
"OS: {env}\n"\
|
||||
"Python Version: {pyversion}\n"\
|
||||
"Version of the API: release-1.26\n"\
|
||||
"SDK Package Version: 26.0.0-snapshot".\
|
||||
"SDK Package Version: 26.0.0+snapshot".\
|
||||
format(env=sys.platform, pyversion=sys.version)
|
||||
|
||||
def get_host_settings(self):
|
||||
|
||||
@ -18,7 +18,7 @@ import sys
|
||||
KUBERNETES_BRANCH = "release-1.26"
|
||||
|
||||
# client version for packaging and releasing.
|
||||
CLIENT_VERSION = "26.0.0-snapshot"
|
||||
CLIENT_VERSION = "26.0.0+snapshot"
|
||||
|
||||
# Name of the release package
|
||||
PACKAGE_NAME = "kubernetes"
|
||||
|
||||
@ -61,7 +61,7 @@
|
||||
# branch
|
||||
#
|
||||
# Usage:
|
||||
# $ KUBERNETES_BRANCH=release-1.19 CLIENT_VERSION=19.0.0-snapshot DEVELOPMENT_STATUS="3 - Alpha" scripts/release.sh
|
||||
# $ KUBERNETES_BRANCH=release-1.19 CLIENT_VERSION=19.0.0+snapshot DEVELOPMENT_STATUS="3 - Alpha" scripts/release.sh
|
||||
|
||||
set -o errexit
|
||||
set -o nounset
|
||||
@ -94,6 +94,12 @@ KUBERNETES_BRANCH=${KUBERNETES_BRANCH:-$(python3 "scripts/constants.py" KUBERNET
|
||||
CLIENT_VERSION=${CLIENT_VERSION:-$(python3 "scripts/constants.py" CLIENT_VERSION)}
|
||||
DEVELOPMENT_STATUS=${DEVELOPMENT_STATUS:-$(python3 "scripts/constants.py" DEVELOPMENT_STATUS)}
|
||||
|
||||
# Simple check if version is compliant with https://peps.python.org/pep-0440/
|
||||
if [[ ! "$CLIENT_VERSION" =~ ^[0-9A-Za-z+.]+$ ]]; then
|
||||
echo "!!! Invalid client version $CLIENT_VERSION"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Create a local branch
|
||||
STARTINGBRANCH=$(git symbolic-ref --short HEAD)
|
||||
declare -r STARTINGBRANCH
|
||||
|
||||
Loading…
Reference in New Issue
Block a user