Repository: pulp/pulpcore

Issue:
[noissue]: Update whitenoise requirement from <6.6.0,>=5.0 to >=5.0,<6.7.0
Updates the requirements on [whitenoise](https://github.com/evansd/whitenoise) to permit the latest version.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/evansd/whitenoise/blob/main/docs/changelog.rst">whitenoise's changelog</a>.</em></p>
<blockquote>
<h2>6.6.0 (2023-10-11)</h2>
<ul>
<li>
<p>Support Django 5.0.</p>
</li>
<li>
<p>Drop Python 3.7 support.</p>
</li>
</ul>
<h2>6.5.0 (2023-06-16)</h2>
<ul>
<li>
<p>Support Python 3.12.</p>
</li>
<li>
<p>Changed documentation site URL from <code>https://whitenoise.evans.io/</code> to <code>https://whitenoise.readthedocs.io/</code>.</p>
</li>
</ul>
<h2>6.4.0 (2023-02-25)</h2>
<ul>
<li>
<p>Support Django 4.2.</p>
</li>
<li>
<p>Remove further support for byte strings from the <code>root</code> and <code>prefix</code> arguments to <code>WhiteNoise</code>, and Django’s <code>STATIC_ROOT</code> setting.
Like in the previous release, this seems to be a remnant of Python 2 support.
Again, this change may be backwards incompatible for a small number of projects, but it’s unlikely.
Django does not support <code>STATIC_ROOT</code> being a byte string.</p>
</li>
</ul>
<h2>6.3.0 (2023-01-03)</h2>
<ul>
<li>
<p>Add some video file extensions to be ignored during compression.
Since such files are already heavily compressed, further compression rarely helps.</p>
<p>Thanks to Jon Ribbens in <code>PR [#431](https://github.com/evansd/whitenoise/issues/431) &lt;https://github.com/evansd/whitenoise/pull/431&gt;</code>__.</p>
</li>
<li>
<p>Remove the behaviour of decoding byte strings passed for settings that take strings.
This seemed to be left around from supporting Python 2.
This change may be backwards incompatible for a small number of projects.</p>
</li>
<li>
<p>Document “hidden” feature of setting <code>max_age</code> to <code>None</code> to disable the <code>Cache-Control</code> header.</p>
</li>
<li>
<p>Drop support for working as old-style Django middleware, as support was <code>removed in Django 2.0 &lt;https://docs.djangoproject.com/en/dev/releases/2.0/#features-removed-in-2-0&gt;</code>__.</p>
</li>
</ul>
<h2>6.2.0 (2022-06-05)</h2>
<ul>
<li>
<p>Support Python 3.11.</p>
</li>
<li>
<p>Support Django 4.1.</p>
</li>
</ul>
<h2>6.1.0 (2022-05-10)</h2>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/evansd/whitenoise/commit/dbfd5f262f3390bd2304113a1b4eefa521056ef4"><code>dbfd5f2</code></a> Version 6.6.0</li>
<li><a href="https://github.com/evansd/whitenoise/commit/7119a17da8983e5f83ed0cc1e022cc673c01f553"><code>7119a17</code></a> Add changelog entry for Django 5.0 support</li>
<li><a href="https://github.com/evansd/whitenoise/commit/bcd0b785429efe87f18b6ce73ef69d3d1b6efd6d"><code>bcd0b78</code></a> [pre-commit.ci] pre-commit autoupdate (<a href="https://redirect.github.com/evansd/whitenoise/issues/534">#534</a>)</li>
<li><a href="https://github.com/evansd/whitenoise/commit/59348bad08fcb184f91552ac688c9e3ac5c7da89"><code>59348ba</code></a> [pre-commit.ci] pre-commit autoupdate (<a href="https://redirect.github.com/evansd/whitenoise/issues/532">#532</a>)</li>
<li><a href="https://github.com/evansd/whitenoise/commit/8b8770db03fe4cd043eaba3cd98c9f8c19831f3a"><code>8b8770d</code></a> [pre-commit.ci] pre-commit autoupdate (<a href="https://redirect.github.com/evansd/whitenoise/issues/530">#530</a>)</li>
<li><a href="https://github.com/evansd/whitenoise/commit/6034700b74c167bfb087ae7151b193e7591a31ca"><code>6034700</code></a> Upgrade requirements (<a href="https://redirect.github.com/evansd/whitenoise/issues/529">#529</a>)</li>
<li><a href="https://github.com/evansd/whitenoise/commit/776fbc8d65d8ad9e40c8343f43ccd4dea652bb18"><code>776fbc8</code></a> Standardize requirements section in docs (<a href="https://redirect.github.com/evansd/whitenoise/issues/528">#528</a>)</li>
<li><a href="https://github.com/evansd/whitenoise/commit/1929d89bb6aa42450b9227e2da26588c35a90adb"><code>1929d89</code></a> Use only absolute imports (<a href="https://redirect.github.com/evansd/whitenoise/issues/527">#527</a>)</li>
<li><a href="https://github.com/evansd/whitenoise/commit/803d3df22cd810f02372a19c5343db3140c34e7e"><code>803d3df</code></a> Support Django 5.0 (<a href="https://redirect.github.com/evansd/whitenoise/issues/526">#526</a>)</li>
<li><a href="https://github.com/evansd/whitenoise/commit/bcbf50f5c9e3b944d81d625155cddca60a8f3f5a"><code>bcbf50f</code></a> [pre-commit.ci] pre-commit autoupdate (<a href="https://redirect.github.com/evansd/whitenoise/issues/525">#525</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/evansd/whitenoise/compare/v5.0...6.6.0">compare view</a></li>
</ul>
</details>
<br />


Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>


Discussion:

Resolving patch:
diff --git a/pulpcore/app/migrations/0011_relative_path.py b/pulpcore/app/migrations/0011_relative_path.py
new file mode 100644
--- /dev/null
+++ b/pulpcore/app/migrations/0011_relative_path.py
@@ -0,0 +1,28 @@
+# Generated by Django 2.2.6 on 2019-10-11 17:29
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('core', '0010_pulp_fields'),
+    ]
+
+    operations = [
+        migrations.AlterField(
+            model_name='contentartifact',
+            name='relative_path',
+            field=models.TextField(),
+        ),
+        migrations.AlterField(
+            model_name='publishedartifact',
+            name='relative_path',
+            field=models.TextField(),
+        ),
+        migrations.AlterField(
+            model_name='publishedmetadata',
+            name='relative_path',
+            field=models.TextField(),
+        ),
+    ]
diff --git a/pulpcore/app/models/content.py b/pulpcore/app/models/content.py
--- a/pulpcore/app/models/content.py
+++ b/pulpcore/app/models/content.py
@@ -289,7 +289,7 @@ class ContentArtifact(Model, QueryMixin):
     """
     artifact = models.ForeignKey(Artifact, on_delete=models.PROTECT, null=True)
     content = models.ForeignKey(Content, on_delete=models.CASCADE)
-    relative_path = models.CharField(max_length=255)
+    relative_path = models.TextField()
 
     objects = BulkCreateManager()
 
diff --git a/pulpcore/app/models/publication.py b/pulpcore/app/models/publication.py
--- a/pulpcore/app/models/publication.py
+++ b/pulpcore/app/models/publication.py
@@ -143,7 +143,7 @@ class PublishedArtifact(Model):
         content_artifact (models.ForeignKey): The referenced content artifact.
         publication (models.ForeignKey): The publication in which the artifact is included.
     """
-    relative_path = models.CharField(max_length=255)
+    relative_path = models.TextField()
 
     content_artifact = models.ForeignKey('ContentArtifact', on_delete=models.CASCADE)
     publication = models.ForeignKey(Publication, on_delete=models.CASCADE)
@@ -169,7 +169,7 @@ class PublishedMetadata(Content):
 
     TYPE = 'publishedmetadata'
 
-    relative_path = models.CharField(max_length=255)
+    relative_path = models.TextField()
 
     publication = models.ForeignKey(Publication, on_delete=models.CASCADE)
 


Test patch: