Skip to content

Commit b3117e9

Browse files
committed
chore: removed old makefile commands
1 parent 61ecd13 commit b3117e9

File tree

1 file changed

+17
-31
lines changed

1 file changed

+17
-31
lines changed

Makefile

Lines changed: 17 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -62,46 +62,18 @@ lint:
6262
# Speakeasy #
6363
#############
6464

65-
## client-generate: Pull the openapi spec from the free hosted API and generate the SDK
66-
.PHONY: client-generate
67-
client-generate:
68-
wget -nv -q -O openapi.json https://api.unstructured.io/general/openapi.json
69-
speakeasy overlay validate -o ./overlay_client.yaml
70-
speakeasy overlay apply -s ./openapi.json -o ./overlay_client.yaml > ./openapi_client.json
71-
speakeasy generate sdk -s ./openapi_client.json -o ./ -l python
72-
73-
## client-generate-local: Generate the SDK using a local copy of openapi.json
74-
.PHONY: client-generate-local
75-
client-generate-local:
76-
speakeasy overlay validate -o ./overlay_client.yaml
77-
speakeasy overlay apply -s ./openapi.json -o ./overlay_client.yaml > ./openapi_client.json
78-
speakeasy generate sdk -s ./openapi_client.json -o ./ -l python
79-
80-
.PHONY: publish
81-
publish:
82-
./scripts/publish.sh
83-
84-
###########
85-
# Jupyter #
86-
###########
87-
88-
## run-jupyter: starts jupyter notebook
89-
.PHONY: run-jupyter
90-
run-jupyter:
91-
PYTHONPATH=$(realpath .) JUPYTER_PATH=$(realpath .) jupyter-notebook --NotebookApp.token='' --NotebookApp.password=''
92-
9365
## download-openapi-specs: Download the openapi specs from the Serverless and Platform APIs
9466
.PHONY: download-openapi-specs
9567
download-openapi-specs:
9668
wget -nv -q -O openapi_serverless.json https://api.unstructured.io/general/openapi.json
9769
wget -nv -q -O openapi_platform_api.json https://platform.unstructuredapp.io/openapi.json
9870

99-
## client-merge-serverless-platform: Merge the Serverless and Platform APIs into a single schema
71+
## client-merge-serverless-platform: Merge the Serverless and Platform APIs specs into a single schema
10072
.PHONY: client-merge-serverless-platform
10173
client-merge-serverless-platform:
10274
speakeasy merge -s ./openapi_serverless.json -s ./openapi_platform_api.json -o ./openapi_merged.yaml
10375

104-
## client-generate-unified-sdk-local: Generate the SDK using merged schemas
76+
## client-generate-unified-sdk-local: Generate the SDK using merged schemas
10577
.PHONY: client-generate-unified-sdk-local
10678
client-generate-unified-sdk-local:
10779
speakeasy overlay validate -o ./overlay_client.yaml
@@ -110,4 +82,18 @@ client-generate-unified-sdk-local:
11082

11183
## client-generate-sdk: Do all the steps to generate the SDK
11284
.PHONY: client-generate-sdk
113-
client-generate-sdk: download-openapi-specs client-merge-serverless-platform client-generate-unified-sdk-local
85+
client-generate-sdk: download-openapi-specs client-merge-serverless-platform client-generate-unified-sdk-local
86+
87+
88+
.PHONY: publish
89+
publish:
90+
./scripts/publish.sh
91+
92+
###########
93+
# Jupyter #
94+
###########
95+
96+
## run-jupyter: starts jupyter notebook
97+
.PHONY: run-jupyter
98+
run-jupyter:
99+
PYTHONPATH=$(realpath .) JUPYTER_PATH=$(realpath .) jupyter-notebook --NotebookApp.token='' --NotebookApp.password=''

0 commit comments

Comments
 (0)