Skip to content

Commit 0d0d90b

Browse files
committed
+- Upgrade Swaggy C to 4.10.0
+- Upgrade OpenAPI Generator to 7.12.0
1 parent 6d533a0 commit 0d0d90b

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Changed
1111
- Switch contact details to OpenAPI Clients Factory project
12-
- Upgrade Swaggy C to 4.8.0
13-
- Upgrade OpenAPI Generator to 7.9.0
12+
- Upgrade Swaggy C to 4.10.0
13+
- Upgrade OpenAPI Generator to 7.12.0
1414
- Upgrade OpenAPI specification to 3.1.0
1515
- Replace obsolete application/javascript with text/javascript
1616

Makefile

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
################################################################
55

66
# The version of Swaggy C
7-
SWAGGY_C_VERSION = 4.8.0
7+
SWAGGY_C_VERSION = 4.10.0
88

99
# The version of OpenAPI Generator (https://openapi-generator.tech/) used for generating the API clients
10-
OPENAPI_GENERATOR_VERSION = 7.9.0
10+
OPENAPI_GENERATOR_VERSION = 7.12.0
1111

1212
# LANGS_ALL lists the languages supported by the given OPENAPI_GENERATOR_VERSION
1313
LANGS_ALL = ada ada-server android apache2 apex asciidoc aspnetcore avro-schema bash crystal c clojure cwiki cpp-qt-client cpp-qt-qhttpengine-server cpp-pistache-server cpp-restbed-server cpp-restbed-server-deprecated cpp-restsdk cpp-tiny cpp-tizen cpp-ue4 csharp csharp-functions dart dart-dio eiffel elixir elm erlang-client erlang-proper erlang-server fsharp-functions fsharp-giraffe-server go go-echo-server go-server go-gin-server graphql-schema graphql-nodejs-express-server groovy kotlin kotlin-server kotlin-spring kotlin-vertx ktorm-schema haskell-http-client haskell haskell-yesod java jaxrs-cxf-client java-helidon-client java-helidon-server java-inflector java-micronaut-client java-micronaut-server java-msf4j java-pkmst java-play-framework java-undertow-server java-vertx java-vertx-web java-camel jaxrs-cxf jaxrs-cxf-extended jaxrs-cxf-cdi jaxrs-jersey jaxrs-resteasy jaxrs-resteasy-eap jaxrs-spec javascript javascript-apollo-deprecated javascript-flowtyped javascript-closure-angular java-wiremock jetbrains-http-client jmeter julia-client julia-server k6 lua markdown mysql-schema n4js nim nodejs-express-server objc ocaml openapi openapi-yaml plantuml perl php php-nextgen php-laravel php-lumen php-slim4 php-symfony php-mezzio-ph php-dt postman-collection powershell protobuf-schema python python-pydantic-v1 python-fastapi python-flask python-aiohttp python-blueplanet r ruby ruby-on-rails ruby-sinatra rust rust-server scalatra scala-akka scala-pekko scala-akka-http-server scala-finch scala-gatling scala-http4s-server scala-lagom-server scala-play-server scala-sttp scala-sttp4 scalaz spring dynamic-html html html2 swift5 swift-combine typescript typescript-angular typescript-aurelia typescript-axios typescript-fetch typescript-inversify typescript-jquery typescript-nestjs typescript-node typescript-redux-query typescript-rxjs wsdl-schema xojo-client zapier rust-axum
@@ -64,6 +64,10 @@ else
6464
endif
6565
endif
6666

67+
define python_venv
68+
. .venv/bin/activate && $(1)
69+
endef
70+
6771
$(info ################################################################)
6872
$(info Building Swaggy C application with user configurations:)
6973
$(info - OpenAPI specification URI: ${SPEC_URI})
@@ -168,12 +172,12 @@ build-javascript:
168172
npm link ../../clients/javascript/generated/
169173

170174
build-python:
171-
apt-get install -y python-setuptools
172-
pip install twine wheel pytest validators
173175
cd clients/python/generated/ && \
174-
pip install -r requirements.txt && \
175-
python3 setup.py sdist bdist_wheel && \
176-
python3 setup.py install
176+
python3 -m venv .venv && \
177+
$(call python_venv,pip install twine wheel pytest setuptools validators) && \
178+
$(call python_venv,pip install -r requirements.txt) && \
179+
$(call python_venv,python3 setup.py sdist bdist_wheel) && \
180+
$(call python_venv,python3 setup.py install --single-version-externally-managed --record record.txt)
177181

178182
build-ruby:
179183
apt-get install libyaml-dev
@@ -196,8 +200,8 @@ test-javascript: build-javascript
196200

197201
test-python: build-python
198202
cd clients/python/generated/ && \
199-
twine check dist/*
200-
pytest -v test/python/*.py --capture=no
203+
$(call python_venv,twine check dist/*) && \
204+
$(call python_venv,pytest -v ../../../test/python/*.py --capture=no)
201205

202206
test-ruby: build-ruby
203207

@@ -210,7 +214,7 @@ publish-javascript: build-javascript
210214

211215
publish-python: build-python
212216
cd clients/python/generated/ && \
213-
twine upload dist/*
217+
$(call python_venv,twine upload dist/*)
214218

215219
publish-ruby: build-ruby
216220
cd clients/ruby/generated/ && \

0 commit comments

Comments
 (0)