Skip to content

Commit be82e08

Browse files
committed
Release version 0.2.0
1 parent af09766 commit be82e08

File tree

11 files changed

+152
-78
lines changed

11 files changed

+152
-78
lines changed

.github/workflows/python.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# ref: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
55

6-
name: platform_api_client Python package
6+
name: platform_api_python_client Python package
77

88
on: [push, pull_request]
99

@@ -13,26 +13,19 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
16+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
1717

1818
steps:
19-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
2020
- name: Set up Python ${{ matrix.python-version }}
2121
uses: actions/setup-python@v4
2222
with:
2323
python-version: ${{ matrix.python-version }}
2424
- name: Install dependencies
2525
run: |
2626
python -m pip install --upgrade pip
27-
pip install flake8 pytest
28-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
29-
if [ -f test-requirements.txt ]; then pip install -r test-requirements.txt; fi
30-
- name: Lint with flake8
31-
run: |
32-
# stop the build if there are Python syntax errors or undefined names
33-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
34-
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
35-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
27+
pip install -r requirements.txt
28+
pip install -r test-requirements.txt
3629
- name: Test with pytest
3730
run: |
38-
pytest
31+
pytest --cov={{packageName}}

.gitlab-ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,8 @@ stages:
1212
script:
1313
- pip install -r requirements.txt
1414
- pip install -r test-requirements.txt
15-
- pytest --cov=platform_api_client
15+
- pytest --cov=platform_api_python_client
1616

17-
pytest-3.7:
18-
extends: .pytest
19-
image: python:3.7-alpine
2017
pytest-3.8:
2118
extends: .pytest
2219
image: python:3.8-alpine
@@ -29,3 +26,6 @@ pytest-3.10:
2926
pytest-3.11:
3027
extends: .pytest
3128
image: python:3.11-alpine
29+
pytest-3.12:
30+
extends: .pytest
31+
image: python:3.12-alpine

.openapi-generator/FILES

Lines changed: 132 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,161 @@
11
.github/workflows/python.yml
22
.gitignore
33
.gitlab-ci.yml
4+
.openapi-generator-ignore
45
.travis.yml
56
README.md
6-
docs/AuthSecret.md
7+
docs/APIKeyRequest.md
8+
docs/APIKeyResponse.md
9+
docs/AddHardwareRequest.md
10+
docs/CServeRecipeInput.md
11+
docs/CServeRecipeOutput.md
12+
docs/CServeRecipePerf.md
13+
docs/CServeRecipeResponse.md
714
docs/ClientSecretResponse.md
8-
docs/CreateComputeDeploymentRequest.md
15+
docs/CreateCServeDeploymentRequest.md
16+
docs/CreateCServeDeploymentResponse.md
917
docs/CreateComputeDeploymentResponse.md
10-
docs/CreateInferenceDeploymentRequest.md
18+
docs/CreateComputeDeploymentV2Request.md
1119
docs/CreateInferenceDeploymentResponse.md
20+
docs/CreateInferenceDeploymentV2Request.md
1221
docs/CreatePaymentRequest.md
13-
docs/CreateTrainingDeploymentRequest.md
14-
docs/CreateTrainingDeploymentResponse.md
1522
docs/CreditsResponse.md
23+
docs/DailyBillResponse.md
1624
docs/DeploymentStatus.md
1725
docs/DeploymentStatusRequest.md
18-
docs/DeploymentStatusResponse.md
26+
docs/DeploymentStatusResponseV2.md
1927
docs/DeploymentType.md
28+
docs/DeploymentUsageValue.md
2029
docs/EXTERNALApi.md
21-
docs/EndpointReadyState.md
22-
docs/GetComputeDeploymentResponse.md
23-
docs/GetDeploymentResponse.md
24-
docs/GetInferenceDeploymentResponse.md
25-
docs/GetTrainingDeploymentResponse.md
30+
docs/FeedbackRequest.md
31+
docs/GetCServeDeploymentResponse.md
32+
docs/GetClusterResponse.md
33+
docs/GetComputeV2DeploymentResponse.md
34+
docs/GetDeploymentLogResponse.md
35+
docs/GetDeploymentUsageResponse.md
36+
docs/GetDeploymentV2Response.md
37+
docs/GetInferenceV2DeploymentResponse.md
2638
docs/HTTPValidationError.md
2739
docs/HardwareInstanceResponse.md
28-
docs/ListGetDeploymentResponse.md
40+
docs/HealthStatus.md
41+
docs/ListAPIKeyResponse.md
42+
docs/ListCServeRecipeResponse.md
43+
docs/ListDailyBillResponse.md
44+
docs/ListGetClusterResponse.md
45+
docs/ListGetDeploymentV2Response.md
2946
docs/ListHardwareInstanceResponse.md
3047
docs/ListPaymentMethodResponse.md
3148
docs/ListPrebuiltImageResponse.md
32-
docs/LocationInner.md
49+
docs/Metric.md
3350
docs/PrebuiltImageResponse.md
3451
docs/ValidationError.md
52+
docs/ValidationErrorLocInner.md
3553
git_push.sh
36-
platform_api_client/__init__.py
37-
platform_api_client/api/__init__.py
38-
platform_api_client/api/external_api.py
39-
platform_api_client/api_client.py
40-
platform_api_client/api_response.py
41-
platform_api_client/configuration.py
42-
platform_api_client/exceptions.py
43-
platform_api_client/models/__init__.py
44-
platform_api_client/models/auth_secret.py
45-
platform_api_client/models/client_secret_response.py
46-
platform_api_client/models/create_compute_deployment_request.py
47-
platform_api_client/models/create_compute_deployment_response.py
48-
platform_api_client/models/create_inference_deployment_request.py
49-
platform_api_client/models/create_inference_deployment_response.py
50-
platform_api_client/models/create_payment_request.py
51-
platform_api_client/models/create_training_deployment_request.py
52-
platform_api_client/models/create_training_deployment_response.py
53-
platform_api_client/models/credits_response.py
54-
platform_api_client/models/deployment_status.py
55-
platform_api_client/models/deployment_status_request.py
56-
platform_api_client/models/deployment_status_response.py
57-
platform_api_client/models/deployment_type.py
58-
platform_api_client/models/endpoint_ready_state.py
59-
platform_api_client/models/get_compute_deployment_response.py
60-
platform_api_client/models/get_deployment_response.py
61-
platform_api_client/models/get_inference_deployment_response.py
62-
platform_api_client/models/get_training_deployment_response.py
63-
platform_api_client/models/hardware_instance_response.py
64-
platform_api_client/models/http_validation_error.py
65-
platform_api_client/models/list_get_deployment_response.py
66-
platform_api_client/models/list_hardware_instance_response.py
67-
platform_api_client/models/list_payment_method_response.py
68-
platform_api_client/models/list_prebuilt_image_response.py
69-
platform_api_client/models/location_inner.py
70-
platform_api_client/models/prebuilt_image_response.py
71-
platform_api_client/models/validation_error.py
72-
platform_api_client/py.typed
73-
platform_api_client/rest.py
54+
platform_api_python_client/__init__.py
55+
platform_api_python_client/api/__init__.py
56+
platform_api_python_client/api/external_api.py
57+
platform_api_python_client/api_client.py
58+
platform_api_python_client/api_response.py
59+
platform_api_python_client/configuration.py
60+
platform_api_python_client/exceptions.py
61+
platform_api_python_client/models/__init__.py
62+
platform_api_python_client/models/add_hardware_request.py
63+
platform_api_python_client/models/api_key_request.py
64+
platform_api_python_client/models/api_key_response.py
65+
platform_api_python_client/models/c_serve_recipe_input.py
66+
platform_api_python_client/models/c_serve_recipe_output.py
67+
platform_api_python_client/models/c_serve_recipe_perf.py
68+
platform_api_python_client/models/c_serve_recipe_response.py
69+
platform_api_python_client/models/client_secret_response.py
70+
platform_api_python_client/models/create_c_serve_deployment_request.py
71+
platform_api_python_client/models/create_c_serve_deployment_response.py
72+
platform_api_python_client/models/create_compute_deployment_response.py
73+
platform_api_python_client/models/create_compute_deployment_v2_request.py
74+
platform_api_python_client/models/create_inference_deployment_response.py
75+
platform_api_python_client/models/create_inference_deployment_v2_request.py
76+
platform_api_python_client/models/create_payment_request.py
77+
platform_api_python_client/models/credits_response.py
78+
platform_api_python_client/models/daily_bill_response.py
79+
platform_api_python_client/models/deployment_status.py
80+
platform_api_python_client/models/deployment_status_request.py
81+
platform_api_python_client/models/deployment_status_response_v2.py
82+
platform_api_python_client/models/deployment_type.py
83+
platform_api_python_client/models/deployment_usage_value.py
84+
platform_api_python_client/models/feedback_request.py
85+
platform_api_python_client/models/get_c_serve_deployment_response.py
86+
platform_api_python_client/models/get_cluster_response.py
87+
platform_api_python_client/models/get_compute_v2_deployment_response.py
88+
platform_api_python_client/models/get_deployment_log_response.py
89+
platform_api_python_client/models/get_deployment_usage_response.py
90+
platform_api_python_client/models/get_deployment_v2_response.py
91+
platform_api_python_client/models/get_inference_v2_deployment_response.py
92+
platform_api_python_client/models/hardware_instance_response.py
93+
platform_api_python_client/models/health_status.py
94+
platform_api_python_client/models/http_validation_error.py
95+
platform_api_python_client/models/list_api_key_response.py
96+
platform_api_python_client/models/list_c_serve_recipe_response.py
97+
platform_api_python_client/models/list_daily_bill_response.py
98+
platform_api_python_client/models/list_get_cluster_response.py
99+
platform_api_python_client/models/list_get_deployment_v2_response.py
100+
platform_api_python_client/models/list_hardware_instance_response.py
101+
platform_api_python_client/models/list_payment_method_response.py
102+
platform_api_python_client/models/list_prebuilt_image_response.py
103+
platform_api_python_client/models/metric.py
104+
platform_api_python_client/models/prebuilt_image_response.py
105+
platform_api_python_client/models/validation_error.py
106+
platform_api_python_client/models/validation_error_loc_inner.py
107+
platform_api_python_client/py.typed
108+
platform_api_python_client/rest.py
74109
pyproject.toml
75110
requirements.txt
76111
setup.cfg
77112
setup.py
78113
test-requirements.txt
79114
test/__init__.py
115+
test/test_add_hardware_request.py
116+
test/test_api_key_request.py
117+
test/test_api_key_response.py
118+
test/test_c_serve_recipe_input.py
119+
test/test_c_serve_recipe_output.py
120+
test/test_c_serve_recipe_perf.py
121+
test/test_c_serve_recipe_response.py
122+
test/test_client_secret_response.py
123+
test/test_create_c_serve_deployment_request.py
124+
test/test_create_c_serve_deployment_response.py
125+
test/test_create_compute_deployment_response.py
126+
test/test_create_compute_deployment_v2_request.py
127+
test/test_create_inference_deployment_response.py
128+
test/test_create_inference_deployment_v2_request.py
129+
test/test_create_payment_request.py
130+
test/test_credits_response.py
131+
test/test_daily_bill_response.py
132+
test/test_deployment_status.py
133+
test/test_deployment_status_request.py
134+
test/test_deployment_status_response_v2.py
135+
test/test_deployment_type.py
136+
test/test_deployment_usage_value.py
137+
test/test_external_api.py
138+
test/test_feedback_request.py
139+
test/test_get_c_serve_deployment_response.py
140+
test/test_get_cluster_response.py
141+
test/test_get_compute_v2_deployment_response.py
142+
test/test_get_deployment_log_response.py
143+
test/test_get_deployment_usage_response.py
144+
test/test_get_deployment_v2_response.py
145+
test/test_get_inference_v2_deployment_response.py
146+
test/test_hardware_instance_response.py
147+
test/test_health_status.py
148+
test/test_http_validation_error.py
149+
test/test_list_api_key_response.py
150+
test/test_list_c_serve_recipe_response.py
151+
test/test_list_daily_bill_response.py
152+
test/test_list_get_cluster_response.py
153+
test/test_list_get_deployment_v2_response.py
154+
test/test_list_hardware_instance_response.py
155+
test/test_list_payment_method_response.py
156+
test/test_list_prebuilt_image_response.py
157+
test/test_metric.py
158+
test/test_prebuilt_image_response.py
159+
test/test_validation_error.py
160+
test/test_validation_error_loc_inner.py
80161
tox.ini

.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.4.0-SNAPSHOT
1+
7.9.0

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
# ref: https://docs.travis-ci.com/user/languages/python
22
language: python
33
python:
4-
- "3.7"
54
- "3.8"
65
- "3.9"
76
- "3.10"
87
- "3.11"
8+
- "3.12"
99
# uncomment the following if needed
10-
#- "3.11-dev" # 3.11 development branch
10+
#- "3.12-dev" # 3.12 development branch
1111
#- "nightly" # nightly build
1212
# command to install dependencies
1313
install:
1414
- "pip install -r requirements.txt"
1515
- "pip install -r test-requirements.txt"
1616
# command to run tests
17-
script: pytest --cov=platform_api_client
17+
script: pytest --cov=platform_api_python_client

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
44
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
55

66
- API version: 0.1.0
7-
- Package version: 0.1.0
7+
- Package version: 0.2.0
88
- Generator version: 7.9.0
99
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1010

platform_api_python_client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
""" # noqa: E501
1515

1616

17-
__version__ = "0.1.0"
17+
__version__ = "0.2.0"
1818

1919
# import apis into sdk package
2020
from platform_api_python_client.api.external_api import EXTERNALApi

platform_api_python_client/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def __init__(
9090
self.default_headers[header_name] = header_value
9191
self.cookie = cookie
9292
# Set default User-Agent.
93-
self.user_agent = 'OpenAPI-Generator/1.0.0/python'
93+
self.user_agent = 'OpenAPI-Generator/0.2.0/python'
9494
self.client_side_validation = configuration.client_side_validation
9595

9696
def __enter__(self):

platform_api_python_client/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ def to_debug_report(self):
392392
"OS: {env}\n"\
393393
"Python Version: {pyversion}\n"\
394394
"Version of the API: 0.1.0\n"\
395-
"SDK Package Version: 1.0.0".\
395+
"SDK Package Version: 0.2.0".\
396396
format(env=sys.platform, pyversion=sys.version)
397397

398398
def get_host_settings(self):

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "platform_api_python_client"
3-
version = "0.1.0"
3+
version = "0.2.0"
44
description = "Platform External API"
55
authors = ["OpenAPI Generator Community <[email protected]>"]
66
license = "NoLicense"

0 commit comments

Comments
 (0)