diff options
-rw-r--r-- | .gitignore | 2 | ||||
-rwxr-xr-x | create_venv.sh (renamed from get_api.sh) | 8 |
2 files changed, 7 insertions, 3 deletions
@@ -1,3 +1,5 @@ sta.token spacetraders-sdk/ modules/spacetraders +__pycache__/ +venv/ diff --git a/get_api.sh b/create_venv.sh index 1d36812..c9a5507 100755 --- a/get_api.sh +++ b/create_venv.sh @@ -4,8 +4,10 @@ wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.7.0 java -jar openapi-generator-cli.jar generate -g python -v -i "https://stoplight.io/api/v1/projects/spacetraders/spacetraders/nodes/reference/SpaceTraders.json?fromExportButton=true&snapshotType=http_service&deref=optimizedBundle" -o spacetraders-sdk -mkdir -p modules +rm openapi-generator-cli.jar -ln -sf spacetraders-sdk/openapi_client modules/spacetraders +python3 -m venv venv +source venv/bin/activate -rm openapi-generator-cli.jar +cd spacetraders-sdk +python3 setup.py install |