Skip to content

Commit 8d55651

Browse files
pulpbotmdellweg
authored andcommitted
Update CI files
[noissue]
1 parent 6271a05 commit 8d55651

File tree

5 files changed

+10
-15
lines changed

5 files changed

+10
-15
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-361-gcd6f9f0

.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_npm-client"
2020

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

2523
pushd pulp_npm-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_npm-client"
2020

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

3123
pushd pulp_npm-client
3224
gem build pulp_npm_client

0 commit comments

Comments
 (0)