From d2bc144c9d64f55a74d74f1e1f02f76d56f10c50 Mon Sep 17 00:00:00 2001 From: Matthias Dellweg Date: Wed, 24 May 2023 10:09:44 +0200 Subject: [PATCH] Compatibility with pulpcore 3.25 to <3.40 fixes #139 --- CHANGES/139.feature | 1 + ...kdistribution_distribution_ptr_and_more.py | 74 +++++++++++++++++++ requirements.txt | 2 +- 3 files changed, 76 insertions(+), 1 deletion(-) create mode 100644 CHANGES/139.feature create mode 100644 pulp_cookbook/app/migrations/0004_alter_cookbookdistribution_distribution_ptr_and_more.py diff --git a/CHANGES/139.feature b/CHANGES/139.feature new file mode 100644 index 0000000..382b405 --- /dev/null +++ b/CHANGES/139.feature @@ -0,0 +1 @@ +Added compatibility for pulpcore 3.25 up to <3.40. diff --git a/pulp_cookbook/app/migrations/0004_alter_cookbookdistribution_distribution_ptr_and_more.py b/pulp_cookbook/app/migrations/0004_alter_cookbookdistribution_distribution_ptr_and_more.py new file mode 100644 index 0000000..a138e70 --- /dev/null +++ b/pulp_cookbook/app/migrations/0004_alter_cookbookdistribution_distribution_ptr_and_more.py @@ -0,0 +1,74 @@ +# Generated by Django 4.2.1 on 2023-05-24 10:00 + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + dependencies = [ + ("core", "0106_alter_artifactdistribution_distribution_ptr_and_more"), + ("cookbook", "0003_json_fields"), + ] + + operations = [ + migrations.AlterField( + model_name="cookbookdistribution", + name="distribution_ptr", + field=models.OneToOneField( + auto_created=True, + on_delete=django.db.models.deletion.CASCADE, + parent_link=True, + primary_key=True, + serialize=False, + to="core.distribution", + ), + ), + migrations.AlterField( + model_name="cookbookpackagecontent", + name="content_ptr", + field=models.OneToOneField( + auto_created=True, + on_delete=django.db.models.deletion.CASCADE, + parent_link=True, + primary_key=True, + serialize=False, + to="core.content", + ), + ), + migrations.AlterField( + model_name="cookbookpublication", + name="publication_ptr", + field=models.OneToOneField( + auto_created=True, + on_delete=django.db.models.deletion.CASCADE, + parent_link=True, + primary_key=True, + serialize=False, + to="core.publication", + ), + ), + migrations.AlterField( + model_name="cookbookremote", + name="remote_ptr", + field=models.OneToOneField( + auto_created=True, + on_delete=django.db.models.deletion.CASCADE, + parent_link=True, + primary_key=True, + serialize=False, + to="core.remote", + ), + ), + migrations.AlterField( + model_name="cookbookrepository", + name="repository_ptr", + field=models.OneToOneField( + auto_created=True, + on_delete=django.db.models.deletion.CASCADE, + parent_link=True, + primary_key=True, + serialize=False, + to="core.repository", + ), + ), + ] diff --git a/requirements.txt b/requirements.txt index 9508269..1c54488 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -pulpcore>=3.16,<3.25 +pulpcore>=3.25,<3.40