Set package version in generated code

This commit is contained in:
mbohlool 2016-11-23 13:59:08 -08:00
parent c7b283348d
commit bc301e25cf
4 changed files with 4 additions and 3 deletions

View File

@ -4,7 +4,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger
This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
- API version: v1.5.0-beta.1
- Package version: 1.0.0
- Package version: 1.0.0-alpha.1
- Build package: class io.swagger.codegen.languages.PythonClientCodegen
## Requirements.

View File

@ -73,7 +73,7 @@ class ApiClient(object):
self.host = host
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'Swagger-Codegen/1.0.0/python'
self.user_agent = 'Swagger-Codegen/1.0.0-alpha.1/python'
@property
def user_agent(self):

View File

@ -233,5 +233,5 @@ class Configuration(object):
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: v1.5.0-beta.1\n"\
"SDK Package Version: 1.0.0".\
"SDK Package Version: 1.0.0-alpha.1".\
format(env=sys.platform, pyversion=sys.version)

View File

@ -23,6 +23,7 @@
<gitRepoId>client-python</gitRepoId>
<configOptions>
<packageName>${generator.package.name}</packageName>
<packageVersion>1.0.0-alpha.1</packageVersion>
<sortParamsByRequiredFlag>true</sortParamsByRequiredFlag>
</configOptions>
<output>${generator.output.path}</output>