Skip to content

Commit 79f67dd

Browse files
committed
feat: upgrade OpenAPI Generator 6.0.1 -> 7.11.0
This is not the latest version, but a version that does not significantly change the generated types (newer versions lead to some significant renames which make the change even bigger). Changes needed: - change `from gooddata_api_client.model.` to `from gooddata_api_client.models.` - change `from gooddata_api_client import apis` to `from gooddata_api_client import api` - remove `_preload_content`, there are now special methods with `_without_preload_content` suffix - remove `_check_type` and `_return_http_data_only` - replace `_from` with `var_from` for filters - replace OpenApiModel by BaseModel as OpenApiModel is no longer generated - add pydantic as a test-requirement - fix _create_export: the response is no longer a dict - fix SimpleMetric: it needs to use the Core identifier types JIRA: CQ-1614 risk: low
1 parent e4c488f commit 79f67dd

File tree

4,274 files changed

+417045
-485363
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,274 files changed

+417045
-485363
lines changed

.openapi-generator/custom_templates/configuration.mustache

Lines changed: 0 additions & 637 deletions
This file was deleted.

.openapi-generator/custom_templates/model_templates/methods_todict_tostr_eq_shared.mustache

Lines changed: 0 additions & 29 deletions
This file was deleted.

.openapi-generator/custom_templates/model_utils.mustache

Lines changed: 0 additions & 1737 deletions
This file was deleted.

.openapi-generator/custom_templates/setup.mustache

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# coding: utf-8
2+
13
{{>partial_header}}
24

35
from setuptools import setup, find_packages # noqa: H301
@@ -19,18 +21,21 @@ VERSION = "{{packageVersion}}"
1921
# http://pypi.python.org/pypi/setuptools
2022

2123
REQUIRES = [
22-
"urllib3 >= 1.25.3",
23-
"python-dateutil",
24+
"urllib3 >= 1.25.3, < 3.0.0",
25+
"python-dateutil >= 2.8.2",
2426
{{#asyncio}}
25-
"aiohttp >= 3.0.0",
27+
"aiohttp >= 3.8.4",
28+
"aiohttp-retry >= 2.8.3",
2629
{{/asyncio}}
2730
{{#tornado}}
28-
"tornado>=4.2,<5",
31+
"tornado>=4.2, < 5",
2932
{{/tornado}}
3033
{{#hasHttpSignatureMethods}}
31-
"pem>=19.3.0",
32-
"pycryptodome>=3.9.0",
34+
"pem >= 19.3.0",
35+
"pycryptodome >= 3.9.0",
3336
{{/hasHttpSignatureMethods}}
37+
"pydantic >= 2",
38+
"typing-extensions >= 4.7.1",
3439
]
3540

3641
setup(
@@ -41,7 +46,7 @@ setup(
4146
author_email="{{infoEmail}}{{^infoEmail}}team@openapitools.org{{/infoEmail}}",
4247
url="{{packageUrl}}",
4348
keywords=["OpenAPI", "OpenAPI-Generator", "{{{appName}}}"],
44-
python_requires=">=3.6",
49+
python_requires=">=3.8",
4550
install_requires=REQUIRES,
4651
packages=find_packages(exclude=["test", "tests"]),
4752
include_package_data=True,

0 commit comments

Comments
 (0)