diff options
author | Botond Hende <nettingman@gmail.com> | 2024-08-19 13:45:52 +0200 |
---|---|---|
committer | Botond Hende <nettingman@gmail.com> | 2024-08-19 13:45:52 +0200 |
commit | f888a02ed4a5b715557f679571e3bbb8ad9c0f17 (patch) | |
tree | b5be3075a5fffdaa6bff66a5a9f8ea956f53438e /create_venv.sh | |
parent | 8b94eeb4d00801b6017afa3a93d7351772c3baf6 (diff) |
fixed module installation
Diffstat (limited to 'create_venv.sh')
-rwxr-xr-x | create_venv.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/create_venv.sh b/create_venv.sh new file mode 100755 index 0000000..c9a5507 --- /dev/null +++ b/create_venv.sh @@ -0,0 +1,13 @@ +#!/bin/bash -eu + +wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.7.0/openapi-generator-cli-7.7.0.jar -O openapi-generator-cli.jar + +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 + +rm openapi-generator-cli.jar + +python3 -m venv venv +source venv/bin/activate + +cd spacetraders-sdk +python3 setup.py install |