Skip to content

Commit

Permalink
build: add aenum as pyproject dependency
Browse files Browse the repository at this point in the history
Signed-off-by: Kush Sharma <[email protected]>
  • Loading branch information
kushsharma committed Dec 21, 2023
1 parent f5bef1e commit a43e4a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FRONTIER_COMMIT := 553c3384828abfc7fa68d67fd04ac0b14520cb0a
.PHONY: clean genclient genspec
.PHONY: clean gen-client gen-spec install-openapi-generator

genclient: clean genspec ## Generate the client using openapi-generator
gen-client: clean gen-spec ## Generate the client using openapi-generator
@openapi-generator generate -g python -o "." \
-i "./etc/openapi.json" -c ./etc/openapi.conf.yaml \
--git-user-id raystack \
Expand All @@ -18,12 +18,13 @@ clean:
@rm -rf test __pycache__ docs frontier_api
@echo " > autogenerated files deleted"

genspec: ## Generate the openapi v3 spec using raystack/frontier generated v2 spec
gen-spec: ## Generate the openapi v3 spec using raystack/frontier generated v2 spec
@echo " > generating openapiv3 spec"
@curl -X 'GET' \
'https://converter.swagger.io/api/convert?url=https%3A%2F%2Fraw.githubusercontent.com%2Fraystack%2Ffrontier%2F${FRONTIER_COMMIT}%2Fproto%2Fapidocs.swagger.yaml' \
-H 'accept: application/json' > ./etc/openapi.json

## v7.0.1
install-openapi-generator: ## Install openapi-generator
@echo " > installing openapi-generator"
@curl https://raw.githubusercontent.com/Homebrew/homebrew-core/73338e79c4dffa794560535b642a2e0eccd78a9b/Formula/o/openapi-generator.rb > ./openapi-generator.rb
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ python-dateutil = ">= 2.7.0"
setuptools = ">= 21.0.0"
typing_extensions = "^4.3.0"
urllib3 = "~1.26.7"
pydantic = "^1.10.5"
aenum = "^3.1.0"

[build-system]
requires = ["poetry-core"]
Expand Down

0 comments on commit a43e4a4

Please sign in to comment.