Skip to content

Commit

Permalink
Fix building ruby bindings from the proper spec
Browse files Browse the repository at this point in the history
  • Loading branch information
mdellweg committed Jul 18, 2024
1 parent dd9cdf7 commit bd7ee18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ pushd ../pulp-openapi-generator
{%- for plugin in plugins %}
rm -rf "{{ plugin.name | snake }}-client"

# We need to copy that over to be visible in the container.
cp "../{{ plugin_name }}/{{ plugin.app_label }}-api.json" .
./gen-client.sh "{{ plugin.app_label }}-api.json" "{{ plugin.app_label }}" python "{{ plugin.name | snake }}"
./gen-client.sh "../{{ plugin_name }}/{{ plugin.app_label }}-api.json" "{{ plugin.app_label }}" python "{{ plugin.name | snake }}"

pushd {{ plugin.name | snake }}-client
python setup.py sdist bdist_wheel --python-tag py3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,7 @@ pushd ../pulp-openapi-generator
{%- for plugin in plugins %}
rm -rf "{{ plugin.name | snake }}-client"

# We need to copy that over to be visible in the container.
#cp "../{{ plugin_name }}/{{ plugin.app_label }}-api.json" .
#./gen-client.sh "{{ plugin.app_label }}-api.json" "{{ plugin.app_label }}" ruby "{{ plugin.name | snake }}"

# -------------
# The generator still needs to have it called api.json at this time...
cp "../{{ plugin_name }}/api.json" .
./gen-client.sh "api.json" "{{ plugin.app_label }}" ruby "{{ plugin.name | snake }}"
# -------------
./gen-client.sh "../{{ plugin_name }}/{{ plugin.app_label }}-api.json" "{{ plugin.app_label }}" ruby "{{ plugin.name | snake }}"

pushd {{ plugin.name | snake }}-client
gem build {{ plugin.name | snake }}_client
Expand Down

0 comments on commit bd7ee18

Please sign in to comment.