Skip to content

Commit fb3e297

Browse files
committed
Prep pulpcore 3.25 compatible release
fixes: #605
1 parent 91e126f commit fb3e297

File tree

10 files changed

+63
-12
lines changed

10 files changed

+63
-12
lines changed

.ci/scripts/check_requirements.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,12 @@
4242
else:
4343
errors.append(f"{filename}:{nr}: Unreadable requirement {line}")
4444
else:
45-
if check_prereleases and req.specifier.prereleases:
46-
if req.name != "pulp-python-client":
47-
errors.append(f"{filename}:{nr}: Prerelease versions found in {line}.")
45+
if not line.startswith("opentelemetry"):
46+
if check_prereleases and req.specifier.prereleases:
47+
if req.name != "pulp-python-client":
48+
errors.append(
49+
f"{filename}:{nr}: Prerelease versions found in {line}."
50+
)
4851
ops = [op for op, ver in req.specs]
4952
spec = str(req.specs)
5053
if "~=" in ops:

.github/template_gitref

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2021.08.26-212-g18b9346
1+
2021.08.26-214-gf2ffaa4

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
---
99
name: Python CI
1010
on: {pull_request: {branches: ['*']}}
11+
12+
concurrency:
13+
group: ${{ github.ref_name }}-${{ github.workflow }}
14+
cancel-in-progress: true
15+
1116
jobs:
1217

1318
ready-to-ship:

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
schedule:
1212
- cron: '37 1 * * 6'
1313

14+
concurrency:
15+
group: ${{ github.ref_name }}-${{ github.workflow }}
16+
cancel-in-progress: true
17+
1418
jobs:
1519
analyze:
1620
name: Analyze

.github/workflows/nightly.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ on:
1414
- cron: '00 3 * * *'
1515
workflow_dispatch:
1616

17+
concurrency:
18+
group: ${{ github.ref_name }}-${{ github.workflow }}
19+
cancel-in-progress: true
20+
1721
jobs:
1822
test:
1923
runs-on: ubuntu-latest

.github/workflows/scripts/script.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,17 +123,11 @@ else
123123
cmd_user_prefix bash -c "pytest -v -r sx --color=yes --pyargs pulp_python.tests.functional -m 'not parallel' --nightly"
124124

125125

126-
cmd_user_prefix bash -c "pytest -v -r sx --color=yes --suppress-no-test-exit-code --pyargs pulpcore.tests.functional -m 'from_pulpcore_for_all_plugins and parallel' -n 8 --nightly"
127-
cmd_user_prefix bash -c "pytest -v -r sx --color=yes --suppress-no-test-exit-code --pyargs pulpcore.tests.functional -m 'from_pulpcore_for_all_plugins and not parallel' --nightly"
128-
129126
else
130127
cmd_user_prefix bash -c "pytest -v -r sx --color=yes --suppress-no-test-exit-code --pyargs pulp_python.tests.functional -m parallel -n 8"
131128
cmd_user_prefix bash -c "pytest -v -r sx --color=yes --pyargs pulp_python.tests.functional -m 'not parallel'"
132129

133130

134-
cmd_user_prefix bash -c "pytest -v -r sx --color=yes --suppress-no-test-exit-code --pyargs pulpcore.tests.functional -m 'from_pulpcore_for_all_plugins and parallel' -n 8"
135-
cmd_user_prefix bash -c "pytest -v -r sx --color=yes --suppress-no-test-exit-code --pyargs pulpcore.tests.functional -m 'from_pulpcore_for_all_plugins and not parallel'"
136-
137131
fi
138132

139133
fi

CHANGES/605.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Added compatibility for pulpcore 3.25, pulpcore support is now >=3.25,<3.40.
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Generated by Django 4.2.1 on 2023-05-15 20:04
2+
3+
from django.db import migrations, models
4+
import django.db.models.deletion
5+
6+
7+
class Migration(migrations.Migration):
8+
9+
dependencies = [
10+
('core', '0106_alter_artifactdistribution_distribution_ptr_and_more'),
11+
('python', '0010_update_json_field'),
12+
]
13+
14+
operations = [
15+
migrations.AlterField(
16+
model_name='pythondistribution',
17+
name='distribution_ptr',
18+
field=models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='core.distribution'),
19+
),
20+
migrations.AlterField(
21+
model_name='pythonpackagecontent',
22+
name='content_ptr',
23+
field=models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='core.content'),
24+
),
25+
migrations.AlterField(
26+
model_name='pythonpublication',
27+
name='publication_ptr',
28+
field=models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='core.publication'),
29+
),
30+
migrations.AlterField(
31+
model_name='pythonremote',
32+
name='remote_ptr',
33+
field=models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='core.remote'),
34+
),
35+
migrations.AlterField(
36+
model_name='pythonrepository',
37+
name='repository_ptr',
38+
field=models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='core.repository'),
39+
),
40+
]

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pulpcore>=3.22.0,<3.25
1+
pulpcore>=3.25.0,<3.40
22
pkginfo>=1.8.2,<1.9.7
33
bandersnatch>=6.1,<6.2
44
pypi-simple>=0.9.0,<1.0.0

template_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ pypi_username: pulp
5858
python_version: '3.8'
5959
release_email: [email protected]
6060
release_user: pulpbot
61-
run_pulpcore_tests_for_plugins: true
61+
run_pulpcore_tests_for_plugins: false
6262
single_commit_check: true
6363
stalebot: true
6464
stalebot_days_until_close: 30

0 commit comments

Comments
 (0)