Skip to content

Commit cc735c8

Browse files
authored
Merge pull request #710 from pulp/update-ci/3.12
Update CI files for branch 3.12
2 parents 2c02cf3 + 6126bc6 commit cc735c8

File tree

7 files changed

+11
-17
lines changed

7 files changed

+11
-17
lines changed

.ci/ansible/Containerfile.j2

+5-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ ADD ./{{ item.name }} ./{{ item.name }}
99
# S3 botocore needs to be patched to handle responses from minio during 0-byte uploads
1010
# Hacking botocore (https://github.com/boto/botocore/pull/1990)
1111

12-
RUN pip3 install
12+
RUN pip3 install --upgrade pip setuptools wheel && \
13+
rm -rf /root/.cache/pip && \
14+
pip3 install
1315
{%- if s3_test | default(false) -%}
1416
{{ " " }}git+https://github.com/gerrod3/botocore.git@fix-100-continue
1517
{%- endif -%}
@@ -25,7 +27,8 @@ RUN pip3 install
2527
{{ " " }}-r ./{{ item.name }}/ci_requirements.txt
2628
{%- endif -%}
2729
{%- endfor %}
28-
{{ " " }}-c ./{{ plugins[0].name }}/.ci/assets/ci_constraints.txt
30+
{{ " " }}-c ./{{ plugins[0].name }}/.ci/assets/ci_constraints.txt && \
31+
rm -rf /root/.cache/pip
2932

3033
{% if pulp_env is defined and pulp_env %}
3134
{% for key, value in pulp_env.items() %}

.ci/scripts/calc_constraints.py

+2
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ def to_upper_bound(req):
6262
max_version = f"{version.major}.{version.minor}.{version.micro-1}"
6363
elif version.minor != 0:
6464
max_version = f"{version.major}.{version.minor-1}"
65+
elif version.major != 0:
66+
max_version = f"{version.major-1}.0"
6567
else:
6668
return f"# NO BETTER CONSTRAINT: {req}"
6769
return f"{requirement.name}{operator}{max_version}"

.github/template_gitref

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2021.08.26-354-g82d22de
1+
2021.08.26-362-g5add0ff

.github/workflows/scripts/build_python_client.sh

+1-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ cd "$(dirname "$(realpath -e "$0")")"/../../..
1818
pushd ../pulp-openapi-generator
1919
rm -rf "pulp_python-client"
2020

21-
# We need to copy that over to be visible in the container.
22-
cp "../pulp_python/python-api.json" .
23-
./gen-client.sh "python-api.json" "python" python "pulp_python"
21+
./gen-client.sh "../pulp_python/python-api.json" "python" python "pulp_python"
2422

2523
pushd pulp_python-client
2624
python setup.py sdist bdist_wheel --python-tag py3

.github/workflows/scripts/build_ruby_client.sh

+1-9
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,7 @@ cd "$(dirname "$(realpath -e "$0")")"/../../..
1818
pushd ../pulp-openapi-generator
1919
rm -rf "pulp_python-client"
2020

21-
# We need to copy that over to be visible in the container.
22-
#cp "../pulp_python/python-api.json" .
23-
#./gen-client.sh "python-api.json" "python" ruby "pulp_python"
24-
25-
# -------------
26-
# The generator still needs to have it called api.json at this time...
27-
cp "../pulp_python/api.json" .
28-
./gen-client.sh "api.json" "python" ruby "pulp_python"
29-
# -------------
21+
./gen-client.sh "../pulp_python/python-api.json" "python" ruby "pulp_python"
3022

3123
pushd pulp_python-client
3224
gem build pulp_python_client

.github/workflows/test.yml

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ jobs:
2222
matrix:
2323
env:
2424
- TEST: pulp
25-
- TEST: docs
2625
- TEST: azure
2726
- TEST: s3
2827
- TEST: lowerbounds

template_config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ deploy_to_pypi: true
2222
disabled_redis_runners: []
2323
doc_requirements_from_pulpcore: true
2424
docker_fixtures: false
25-
docs_test: true
25+
docs_test: false
2626
flake8: true
2727
flake8_ignore: []
2828
github_org: pulp

0 commit comments

Comments
 (0)