Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI files for branch 3.18 #4819

Merged
merged 1 commit into from
Dec 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/template_gitref
Original file line number Diff line number Diff line change
@@ -1 +1 @@
unknown
2021.08.26-290-g4d54366
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ jobs:
- name: "Install python dependencies"
run: |
echo ::group::PYDEPS
pip install towncrier twine wheel httpie docker netaddr boto3 ansible
pip install towncrier twine wheel httpie docker netaddr boto3 ansible mkdocs
echo "HTTPIE_CONFIG_DIR=$GITHUB_WORKSPACE/pulpcore/.ci/assets/httpie/" >> $GITHUB_ENV
echo ::endgroup::

Expand Down
19 changes: 17 additions & 2 deletions .github/workflows/scripts/install_python_client.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ rm -rf pulpcore-client
pushd pulpcore-client
python setup.py sdist bdist_wheel --python-tag py3

twine check "dist/pulpcore_client-$VERSION-py3-none-any.whl" || exit 1
twine check "dist/pulpcore-client-$VERSION.tar.gz" || exit 1
twine check "dist/pulpcore_client-$VERSION-py3-none-any.whl"
twine check "dist/pulpcore-client-$VERSION.tar.gz"

cmd_prefix pip3 install "/root/pulp-openapi-generator/pulpcore-client/dist/pulpcore_client-${VERSION}-py3-none-any.whl"
tar cvf ../../pulpcore/core-python-client.tar ./dist
Expand All @@ -37,6 +37,21 @@ 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: Pulpcore Client
site_description: Core bindings
site_author: Pulp Team
site_url: https://docs.pulpproject.org/pulpcore_client/
repo_name: pulp/pulpcore
repo_url: https://github.com/pulp/pulpcore
theme: readthedocs
DOCSYAML

# Building the bindings docs
mkdocs build

tar cvf ../../pulpcore/core-python-client-docs.tar ./docs
popd
popd
13 changes: 0 additions & 13 deletions .github/workflows/scripts/publish_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,6 @@ fi
mkdir -p ../core-bindings
tar -xvf core-python-client-docs.tar --directory ../core-bindings
pushd ../core-bindings
cat >> mkdocs.yml << DOCSYAML
---
site_name: Pulpcore Client
site_description: Core bindings
site_author: Pulp Team
site_url: https://docs.pulpproject.org/pulpcore_client/
repo_name: pulp/pulpcore
repo_url: https://github.com/pulp/pulpcore
theme: readthedocs
DOCSYAML

# Building the bindings docs
mkdocs build

# publish to docs.pulpproject.org/pulpcore_client
rsync -avzh site/ [email protected]:/var/www/docs.pulpproject.org/pulpcore_client/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
- name: "Install python dependencies"
run: |
echo ::group::PYDEPS
pip install towncrier twine wheel httpie docker netaddr boto3 ansible
pip install towncrier twine wheel httpie docker netaddr boto3 ansible mkdocs
echo "HTTPIE_CONFIG_DIR=$GITHUB_WORKSPACE/pulpcore/.ci/assets/httpie/" >> $GITHUB_ENV
echo ::endgroup::

Expand Down
14 changes: 13 additions & 1 deletion CHANGES/.TEMPLATE.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
{# TOWNCRIER TEMPLATE #}
{% if render_title %}
{% if versiondata.name %}
{{ versiondata.name }} {{ versiondata.version }} ({{ versiondata.date }})
{{ top_underline * ((versiondata.name + versiondata.version + versiondata.date)|length + 4)}}
{% else %}
{{ versiondata.version }} ({{ versiondata.date }})
{{ top_underline * ((versiondata.version + versiondata.date)|length + 3)}}
{% endif %}
{% endif %}
{% for section, _ in sections.items() %}
{% set underline = underlines[0] %}{% if section %}{{section}}
{{ underline * section|length }}{% set underline = underlines[1] %}
Expand Down Expand Up @@ -33,3 +41,7 @@ No significant changes.

{% endif %}
{% endfor %}
----



1 change: 0 additions & 1 deletion CHANGES/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
!.gitignore

Loading