pulp-python 3.11.7__py3-none-any.whl → 3.11.8__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pulp_python/app/__init__.py +1 -1
- pulp_python/app/models.py +2 -2
- pulp_python/app/utils.py +2 -3
- pulp_python/tests/functional/api/test_consume_content.py +1 -0
- pulp_python/tests/functional/constants.py +8 -5
- {pulp_python-3.11.7.dist-info → pulp_python-3.11.8.dist-info}/METADATA +2 -2
- {pulp_python-3.11.7.dist-info → pulp_python-3.11.8.dist-info}/RECORD +11 -11
- {pulp_python-3.11.7.dist-info → pulp_python-3.11.8.dist-info}/WHEEL +1 -1
- {pulp_python-3.11.7.dist-info → pulp_python-3.11.8.dist-info}/entry_points.txt +0 -0
- {pulp_python-3.11.7.dist-info → pulp_python-3.11.8.dist-info}/licenses/LICENSE +0 -0
- {pulp_python-3.11.7.dist-info → pulp_python-3.11.8.dist-info}/top_level.txt +0 -0
pulp_python/app/__init__.py
CHANGED
pulp_python/app/models.py
CHANGED
|
@@ -4,7 +4,6 @@ from aiohttp.web import json_response
|
|
|
4
4
|
from django.contrib.postgres.fields import ArrayField
|
|
5
5
|
from django.core.exceptions import ObjectDoesNotExist
|
|
6
6
|
from django.db import models
|
|
7
|
-
from django.conf import settings
|
|
8
7
|
from pulpcore.plugin.models import (
|
|
9
8
|
Content,
|
|
10
9
|
Publication,
|
|
@@ -13,6 +12,7 @@ from pulpcore.plugin.models import (
|
|
|
13
12
|
Repository,
|
|
14
13
|
)
|
|
15
14
|
from pulpcore.plugin.responses import ArtifactResponse
|
|
15
|
+
from pulpcore.plugin.util import get_domain
|
|
16
16
|
|
|
17
17
|
from pathlib import PurePath
|
|
18
18
|
from .utils import (
|
|
@@ -77,7 +77,7 @@ class PythonDistribution(Distribution):
|
|
|
77
77
|
elif len(path.parts) and path.parts[0] == "simple":
|
|
78
78
|
# Temporary fix for PublishedMetadata not being properly served from remote storage
|
|
79
79
|
# https://github.com/pulp/pulp_python/issues/413
|
|
80
|
-
if
|
|
80
|
+
if get_domain().storage_class != "pulpcore.app.models.storage.FileSystem":
|
|
81
81
|
if self.publication or self.repository:
|
|
82
82
|
try:
|
|
83
83
|
publication = self.publication or Publication.objects.filter(
|
pulp_python/app/utils.py
CHANGED
|
@@ -3,7 +3,6 @@ import shutil
|
|
|
3
3
|
import tempfile
|
|
4
4
|
import json
|
|
5
5
|
from collections import defaultdict
|
|
6
|
-
from django.core.files.storage import default_storage as storage
|
|
7
6
|
from django.conf import settings
|
|
8
7
|
from jinja2 import Template
|
|
9
8
|
from packaging.utils import canonicalize_name
|
|
@@ -144,8 +143,8 @@ def get_project_metadata_from_artifact(filename, artifact):
|
|
|
144
143
|
# because pkginfo validates that the filename has a valid extension before
|
|
145
144
|
# reading it
|
|
146
145
|
with tempfile.NamedTemporaryFile('wb', dir=".", suffix=filename) as temp_file:
|
|
147
|
-
|
|
148
|
-
shutil.copyfileobj(
|
|
146
|
+
artifact.file.seek(0)
|
|
147
|
+
shutil.copyfileobj(artifact.file, temp_file)
|
|
149
148
|
temp_file.flush()
|
|
150
149
|
metadata = DIST_TYPES[packagetype](temp_file.name)
|
|
151
150
|
metadata.packagetype = packagetype
|
|
@@ -144,19 +144,22 @@ PYTHON_LG_PROJECT_SPECIFIER = [
|
|
|
144
144
|
"aiohttp", # matches 7
|
|
145
145
|
"bcrypt", # matches 8
|
|
146
146
|
"celery", # matches 13
|
|
147
|
+
"crane", # matches 0
|
|
147
148
|
"Django", # matches 31
|
|
149
|
+
"pulp-2to3-migration", # matches 2
|
|
148
150
|
"pytz", # matches 6
|
|
149
151
|
"scipy", # matches 23
|
|
150
152
|
"setuptools", # matches 2
|
|
151
153
|
"shelf-reader", # matches 2
|
|
154
|
+
"twine", # matches 14
|
|
152
155
|
]
|
|
153
|
-
PYTHON_LG_PACKAGE_COUNT =
|
|
156
|
+
PYTHON_LG_PACKAGE_COUNT = 108
|
|
154
157
|
PYTHON_LG_FIXTURE_SUMMARY = {PYTHON_CONTENT_NAME: PYTHON_LG_PACKAGE_COUNT}
|
|
155
158
|
PYTHON_LG_FIXTURE_COUNTS = {
|
|
156
|
-
"latest_3":
|
|
157
|
-
"sdist":
|
|
158
|
-
"bdist_wheel":
|
|
159
|
-
"multi":
|
|
159
|
+
"latest_3": 59,
|
|
160
|
+
"sdist": 36,
|
|
161
|
+
"bdist_wheel": 72,
|
|
162
|
+
"multi": 36, # keep_latest=1, package_types="bdist_wheel", prereleases=False
|
|
160
163
|
}
|
|
161
164
|
|
|
162
165
|
DJANGO_LATEST_3 = 4 # latest version has 2 dists, each other has 1
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pulp-python
|
|
3
|
-
Version: 3.11.
|
|
3
|
+
Version: 3.11.8
|
|
4
4
|
Summary: pulp-python plugin for the Pulp Project
|
|
5
5
|
Home-page: https://www.pulpproject.org
|
|
6
6
|
Author: Pulp Project Developers
|
|
@@ -17,7 +17,7 @@ Classifier: Programming Language :: Python :: 3.9
|
|
|
17
17
|
Requires-Python: >=3.8
|
|
18
18
|
Description-Content-Type: text/markdown
|
|
19
19
|
License-File: LICENSE
|
|
20
|
-
Requires-Dist: pulpcore<3.55,>=3.
|
|
20
|
+
Requires-Dist: pulpcore<3.55,>=3.49.0
|
|
21
21
|
Requires-Dist: pkginfo<1.13.0,>=1.12.0
|
|
22
22
|
Requires-Dist: bandersnatch<6.2,>=6.1
|
|
23
23
|
Requires-Dist: pypi-simple<1.0.0,>=0.9.0
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
pulp_python/__init__.py,sha256=BfGFMACxdZWJMiAhkn0BW-k_iKULe-nVCcQ6g0sX89k,65
|
|
2
|
-
pulp_python/app/__init__.py,sha256=
|
|
2
|
+
pulp_python/app/__init__.py,sha256=4RkPBjemr4bBDq2tCuhBueNp9uz4lnBsijpx7PsBn38,274
|
|
3
3
|
pulp_python/app/fields.py,sha256=i_c5NX37j9gkUVFfwjhb9ZcBqkHteY_PkaupZEYYxFI,447
|
|
4
4
|
pulp_python/app/modelresource.py,sha256=miikSAR2IltDvnCdkCeHyp8_1VNU9MQBecGZSbAxJLQ,1155
|
|
5
|
-
pulp_python/app/models.py,sha256=
|
|
5
|
+
pulp_python/app/models.py,sha256=W_rPPn1F1JKoq1HJonx6jLWZFCB7O_aL_Bx3XJGufOc,9545
|
|
6
6
|
pulp_python/app/serializers.py,sha256=t3aT1kk04qW8GqG7J2mFe0WDIkMWYOGU9SIJ6XDFSsI,14984
|
|
7
7
|
pulp_python/app/settings.py,sha256=Gcj9wVPe8l05ffm1RqzxUI0d82KjS2PqysNZmIDe6AA,94
|
|
8
8
|
pulp_python/app/urls.py,sha256=KJ8_DleMOf3GuRdZIQswHjxlA8LT6qS40YjAgKu1dVo,957
|
|
9
|
-
pulp_python/app/utils.py,sha256=
|
|
9
|
+
pulp_python/app/utils.py,sha256=KPdOdqnwl3gB8FUc1dKxIqS7S7y8ODdtC8FzrmG8cN8,11548
|
|
10
10
|
pulp_python/app/viewsets.py,sha256=MpKsUG45Js6JvfhZJmnR_S3-mtTLkhlkFDsmw_5HKnE,9366
|
|
11
11
|
pulp_python/app/migrations/0001_initial.py,sha256=H14jFFSaP45WxsfrE0mc-wzzYumMiR27o6jZ7WmRLbc,5066
|
|
12
12
|
pulp_python/app/migrations/0002_pythonpackagecontent_python_version.py,sha256=bTAhH-D6to2kohCfl5U1VDglzh5codHo27-qB93Opug,427
|
|
@@ -33,11 +33,11 @@ pulp_python/app/webserver_snippets/nginx.conf,sha256=gMqZGFefsTJVVx9YRxpHVS7NMEl
|
|
|
33
33
|
pulp_python/tests/__init__.py,sha256=4Yz43a8s-KyhdHFb5eEhIIvH72807Y84uAHnG5bO5y0,31
|
|
34
34
|
pulp_python/tests/functional/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
35
35
|
pulp_python/tests/functional/conftest.py,sha256=3k97u5f5Im7U7zbokXwNwvvRLXrHyTvRD5BidV5mjZI,7004
|
|
36
|
-
pulp_python/tests/functional/constants.py,sha256=
|
|
36
|
+
pulp_python/tests/functional/constants.py,sha256=kDM2IttfcPHKN2uRumslGIptwFTC_DkOlS9_IQzMxis,12910
|
|
37
37
|
pulp_python/tests/functional/utils.py,sha256=-DVOSvZS8T5DTZhlLEdErsfDnvGW4A6g_F3hAqty7Bw,14366
|
|
38
38
|
pulp_python/tests/functional/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
39
39
|
pulp_python/tests/functional/api/test_auto_publish.py,sha256=n8qCp9GScph_2F-A4WJu66nWTbM555__KAQ7fRzA7kg,2928
|
|
40
|
-
pulp_python/tests/functional/api/test_consume_content.py,sha256=
|
|
40
|
+
pulp_python/tests/functional/api/test_consume_content.py,sha256=gez-MvmwEk2dcd9eEGLhRJmjaWmP0JW1tByp3kyYX2Y,5175
|
|
41
41
|
pulp_python/tests/functional/api/test_crud_content_unit.py,sha256=uDRKefh0CcUNNfVESvp8HDoJzZuc6dFsOitNzajnU3c,10648
|
|
42
42
|
pulp_python/tests/functional/api/test_crud_publications.py,sha256=6jtwuQUZ_Fdu8kgpl2JpzucbDCY_soenMxUw-c3CvYA,11495
|
|
43
43
|
pulp_python/tests/functional/api/test_crud_remotes.py,sha256=mmUbIyHmPVYDU8yKEzj38D-MM5kUEBxsKe0lxjF1ybU,15216
|
|
@@ -53,9 +53,9 @@ pulp_python/tests/upgrade/post/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5
|
|
|
53
53
|
pulp_python/tests/upgrade/post/test_publish.py,sha256=NSV58e0e9LKc8oldeCzP-wHeii30x4lg8lM7tV5_OPk,5013
|
|
54
54
|
pulp_python/tests/upgrade/pre/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
55
55
|
pulp_python/tests/upgrade/pre/test_publish.py,sha256=CeQgdgefKfq_x_9NNSRkMStTQ0qnu-uNyodm243G5ZI,4913
|
|
56
|
-
pulp_python-3.11.
|
|
57
|
-
pulp_python-3.11.
|
|
58
|
-
pulp_python-3.11.
|
|
59
|
-
pulp_python-3.11.
|
|
60
|
-
pulp_python-3.11.
|
|
61
|
-
pulp_python-3.11.
|
|
56
|
+
pulp_python-3.11.8.dist-info/licenses/LICENSE,sha256=2ylvL381vKOhdO-w6zkrOxe9lLNBhRQpo9_0EbHC_HM,18046
|
|
57
|
+
pulp_python-3.11.8.dist-info/METADATA,sha256=v4x3QQ5g2QvKtHBmUNCdLvQmX2bypyUkTTbpV5nO9yY,1457
|
|
58
|
+
pulp_python-3.11.8.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
59
|
+
pulp_python-3.11.8.dist-info/entry_points.txt,sha256=z3wMI868tIKPTgFwiJQxG9JFY_9pCZd_K2T3g3AtOZg,63
|
|
60
|
+
pulp_python-3.11.8.dist-info/top_level.txt,sha256=X0hXgXc_bpbiKqVrkt8jD5_QEiQviKbHDwveQcOcJjo,12
|
|
61
|
+
pulp_python-3.11.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|