-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[noissue]
- Loading branch information
Showing
11 changed files
with
254 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Pulpcore versions without the openapi command do no longer work in the CI | ||
pulpcore>=3.21.30,!=3.23.*,!=3.24.*,!=3.25.*,!=3.26.*,!=3.27.*,!=3.29.*,!=3.30.*,!=3.31.*,!=3.32.*,!=3.33.*,!=3.34.*,!=3.35.*,!=3.36.*,!=3.37.*,!=3.38.*,!=3.40.*,!=3.41.*,!=3.42.*,!=3.43.*,!=3.44.*,!=3.45.*,!=3.46.*,!=3.47.*,!=3.48.*,!=3.50.*,!=3.51.*,!=3.52.*,!=3.53.*,!=3.54.* | ||
|
||
|
||
|
||
tablib!=3.6.0 | ||
# 3.6.0: This release introduced a regression removing the "html" optional dependency. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2021.08.26-341-g5cb6e90 | ||
2021.08.26-347-gc4a2504 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
#!/bin/bash | ||
|
||
# This script expects all <app_label>-api.json files to exist in the plugins root directory. | ||
# It produces a <app_label>-python-client.tar and <app_label>-python-client-docs.tar file in the plugins root directory. | ||
|
||
# WARNING: DO NOT EDIT! | ||
# | ||
# This file was generated by plugin_template, and is managed by it. Please use | ||
# './plugin-template --github pulp_container' to update this file. | ||
# | ||
# For more info visit https://github.com/pulp/plugin_template | ||
|
||
set -mveuo pipefail | ||
|
||
# make sure this script runs at the repo root | ||
cd "$(dirname "$(realpath -e "$0")")"/../../.. | ||
|
||
pushd ../pulp-openapi-generator | ||
rm -rf "pulp_container-client" | ||
|
||
# We need to copy that over to be visible in the container. | ||
cp "../pulp_container/container-api.json" . | ||
./gen-client.sh "container-api.json" "container" python "pulp_container" | ||
|
||
pushd pulp_container-client | ||
python setup.py sdist bdist_wheel --python-tag py3 | ||
|
||
twine check "dist/pulp_container_client-"*"-py3-none-any.whl" | ||
twine check "dist/pulp_container-client-"*".tar.gz" | ||
|
||
tar cvf "../../pulp_container/container-python-client.tar" ./dist | ||
|
||
find ./docs/* -exec sed -i 's/Back to README/Back to HOME/g' {} \; | ||
find ./docs/* -exec sed -i 's/README//g' {} \; | ||
cp README.md docs/index.md | ||
sed -i 's/docs\///g' docs/index.md | ||
find ./docs/* -exec sed -i 's/\.md//g' {} \; | ||
|
||
cat >> mkdocs.yml << DOCSYAML | ||
--- | ||
site_name: PulpContainer Client | ||
site_description: Container bindings | ||
site_author: Pulp Team | ||
site_url: https://docs.pulpproject.org/pulp_container_client/ | ||
repo_name: pulp/pulp_container | ||
repo_url: https://github.com/pulp/pulp_container | ||
theme: readthedocs | ||
DOCSYAML | ||
|
||
# Building the bindings docs | ||
mkdocs build | ||
|
||
# Pack the built site. | ||
tar cvf ../../pulp_container/container-python-client-docs.tar ./site | ||
popd | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/bash | ||
|
||
# This script expects all <app_label>-api.json files to exist in the plugins root directory. | ||
# It produces a <app_label>-ruby-client.tar file in the plugins root directory. | ||
|
||
# WARNING: DO NOT EDIT! | ||
# | ||
# This file was generated by plugin_template, and is managed by it. Please use | ||
# './plugin-template --github pulp_container' to update this file. | ||
# | ||
# For more info visit https://github.com/pulp/plugin_template | ||
|
||
set -mveuo pipefail | ||
|
||
# make sure this script runs at the repo root | ||
cd "$(dirname "$(realpath -e "$0")")"/../../.. | ||
|
||
pushd ../pulp-openapi-generator | ||
rm -rf "pulp_container-client" | ||
|
||
# We need to copy that over to be visible in the container. | ||
#cp "../pulp_container/container-api.json" . | ||
#./gen-client.sh "container-api.json" "container" ruby "pulp_container" | ||
|
||
# ------------- | ||
# The generator still needs to have it called api.json at this time... | ||
cp "../pulp_container/api.json" . | ||
./gen-client.sh "api.json" "container" ruby "pulp_container" | ||
# ------------- | ||
|
||
pushd pulp_container-client | ||
gem build pulp_container_client | ||
tar cvf "../../pulp_container/container-ruby-client.tar" "./pulp_container_client-"*".gem" | ||
popd | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.