-
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
9 changed files
with
228 additions
and
98 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-345-g747bcf8 |
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_ostree' 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_ostree-client" | ||
|
||
# We need to copy that over to be visible in the container. | ||
cp "../pulp_ostree/ostree-api.json" . | ||
./gen-client.sh "ostree-api.json" "ostree" python "pulp_ostree" | ||
|
||
pushd pulp_ostree-client | ||
python setup.py sdist bdist_wheel --python-tag py3 | ||
|
||
twine check "dist/pulp_ostree_client-"*"-py3-none-any.whl" | ||
twine check "dist/pulp_ostree-client-"*".tar.gz" | ||
|
||
tar cvf "../../pulp_ostree/ostree-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: PulpOstree Client | ||
site_description: Ostree bindings | ||
site_author: Pulp Team | ||
site_url: https://docs.pulpproject.org/pulp_ostree_client/ | ||
repo_name: pulp/pulp_ostree | ||
repo_url: https://github.com/pulp/pulp_ostree | ||
theme: readthedocs | ||
DOCSYAML | ||
|
||
# Building the bindings docs | ||
mkdocs build | ||
|
||
# Pack the built site. | ||
tar cvf ../../pulp_ostree/ostree-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_ostree' 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_ostree-client" | ||
|
||
# We need to copy that over to be visible in the container. | ||
#cp "../pulp_ostree/ostree-api.json" . | ||
#./gen-client.sh "ostree-api.json" "ostree" ruby "pulp_ostree" | ||
|
||
# ------------- | ||
# The generator still needs to have it called api.json at this time... | ||
cp "../pulp_ostree/api.json" . | ||
./gen-client.sh "api.json" "ostree" ruby "pulp_ostree" | ||
# ------------- | ||
|
||
pushd pulp_ostree-client | ||
gem build pulp_ostree_client | ||
tar cvf "../../pulp_ostree/ostree-ruby-client.tar" "./pulp_ostree_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.