pulp-python 3.11.0__tar.gz → 3.11.1__tar.gz

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.
Files changed (75) hide show
  1. {pulp-python-3.11.0 → pulp-python-3.11.1}/CHANGES.rst +13 -1
  2. {pulp-python-3.11.0 → pulp-python-3.11.1}/PKG-INFO +11 -11
  3. {pulp-python-3.11.0 → pulp-python-3.11.1}/functest_requirements.txt +1 -1
  4. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/__init__.py +1 -1
  5. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/tasks/sync.py +28 -5
  6. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python.egg-info/PKG-INFO +11 -11
  7. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python.egg-info/entry_points.txt +0 -1
  8. {pulp-python-3.11.0 → pulp-python-3.11.1}/setup.py +1 -1
  9. pulp-python-3.11.1/unittest_requirements.txt +2 -0
  10. pulp-python-3.11.0/unittest_requirements.txt +0 -2
  11. {pulp-python-3.11.0 → pulp-python-3.11.1}/COMMITMENT +0 -0
  12. {pulp-python-3.11.0 → pulp-python-3.11.1}/COPYRIGHT +0 -0
  13. {pulp-python-3.11.0 → pulp-python-3.11.1}/LICENSE +0 -0
  14. {pulp-python-3.11.0 → pulp-python-3.11.1}/MANIFEST.in +0 -0
  15. {pulp-python-3.11.0 → pulp-python-3.11.1}/README.md +0 -0
  16. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/__init__.py +0 -0
  17. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/migrations/0001_initial.py +0 -0
  18. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/migrations/0002_pythonpackagecontent_python_version.py +0 -0
  19. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/migrations/0003_new_sync_filters.py +0 -0
  20. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/migrations/0004_DATA_swap_distribution_model.py +0 -0
  21. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/migrations/0005_pythonpackagecontent_sha256.py +0 -0
  22. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/migrations/0006_pythonrepository_autopublish.py +0 -0
  23. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/migrations/0007_pythonpackagecontent_mv-2-1.py +0 -0
  24. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/migrations/0008_pythonpackagecontent_unique_sha256.py +0 -0
  25. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/migrations/0009_pythondistribution_allow_uploads.py +0 -0
  26. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/migrations/0010_update_json_field.py +0 -0
  27. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/migrations/0011_alter_pythondistribution_distribution_ptr_and_more.py +0 -0
  28. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/migrations/__init__.py +0 -0
  29. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/modelresource.py +0 -0
  30. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/models.py +0 -0
  31. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/pypi/__init__.py +0 -0
  32. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/pypi/serializers.py +0 -0
  33. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/pypi/views.py +0 -0
  34. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/serializers.py +0 -0
  35. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/settings.py +0 -0
  36. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/tasks/__init__.py +0 -0
  37. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/tasks/publish.py +0 -0
  38. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/tasks/upload.py +0 -0
  39. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/urls.py +0 -0
  40. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/utils.py +0 -0
  41. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/viewsets.py +0 -0
  42. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/webserver_snippets/__init__.py +0 -0
  43. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/webserver_snippets/apache.conf +0 -0
  44. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/webserver_snippets/nginx.conf +0 -0
  45. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/__init__.py +0 -0
  46. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/functional/__init__.py +0 -0
  47. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/functional/api/__init__.py +0 -0
  48. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/functional/api/test_auto_publish.py +0 -0
  49. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/functional/api/test_consume_content.py +0 -0
  50. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/functional/api/test_crud_content_unit.py +0 -0
  51. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/functional/api/test_crud_publications.py +0 -0
  52. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/functional/api/test_crud_remotes.py +0 -0
  53. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/functional/api/test_download_content.py +0 -0
  54. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/functional/api/test_export_import.py +0 -0
  55. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/functional/api/test_full_mirror.py +0 -0
  56. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/functional/api/test_pypi_apis.py +0 -0
  57. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/functional/api/test_sync.py +0 -0
  58. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/functional/conftest.py +0 -0
  59. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/functional/constants.py +0 -0
  60. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/functional/utils.py +0 -0
  61. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/unit/__init__.py +0 -0
  62. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/unit/test_models.py +0 -0
  63. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/upgrade/__init__.py +0 -0
  64. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/upgrade/post/__init__.py +0 -0
  65. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/upgrade/post/test_publish.py +0 -0
  66. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/upgrade/pre/__init__.py +0 -0
  67. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/upgrade/pre/test_publish.py +0 -0
  68. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python.egg-info/SOURCES.txt +0 -0
  69. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python.egg-info/dependency_links.txt +0 -0
  70. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python.egg-info/requires.txt +0 -0
  71. {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python.egg-info/top_level.txt +0 -0
  72. {pulp-python-3.11.0 → pulp-python-3.11.1}/pyproject.toml +0 -0
  73. {pulp-python-3.11.0 → pulp-python-3.11.1}/requirements.txt +0 -0
  74. {pulp-python-3.11.0 → pulp-python-3.11.1}/setup.cfg +0 -0
  75. {pulp-python-3.11.0 → pulp-python-3.11.1}/test_requirements.txt +0 -0
@@ -13,6 +13,19 @@ Changelog
13
13
 
14
14
  .. towncrier release notes start
15
15
 
16
+ 3.11.1 (2024-04-11)
17
+ ===================
18
+
19
+ Bugfixes
20
+ --------
21
+
22
+ - Fixed tls_validation not being disabled when set to false on the remote.
23
+ `#653 <https://github.com/pulp/pulp_python/issues/653>`__
24
+
25
+
26
+ ----
27
+
28
+
16
29
  3.11.0 (2023-11-08)
17
30
  ===================
18
31
 
@@ -21,7 +34,6 @@ Features
21
34
  --------
22
35
 
23
36
  - Added pulpcore 3.40 compatibility.
24
- `#40 <https://github.com/pulp/pulp_python/issues/40>`__
25
37
  - Added import export support of python content.
26
38
  `#579 <https://github.com/pulp/pulp_python/issues/579>`__
27
39
 
@@ -1,21 +1,11 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulp-python
3
- Version: 3.11.0
3
+ Version: 3.11.1
4
4
  Summary: pulp-python plugin for the Pulp Project
5
5
  Home-page: https://www.pulpproject.org
6
6
  Author: Pulp Project Developers
7
7
  Author-email: pulp-list@redhat.com
8
8
  License: GPLv2+
9
- Description: # pulp_python
10
-
11
- ![Pulp Nightly CI/CD](https://github.com/pulp/pulp_python/actions/workflows/nightly.yml/badge.svg)
12
-
13
- A Pulp plugin to support hosting your own pip compatible Python packages.
14
-
15
- For more information, please see the [documentation](https://docs.pulpproject.org/pulp_python/) or the
16
- [Pulp project page](https://pulpproject.org).
17
-
18
- Platform: UNKNOWN
19
9
  Classifier: License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)
20
10
  Classifier: Operating System :: POSIX :: Linux
21
11
  Classifier: Development Status :: 5 - Production/Stable
@@ -26,3 +16,13 @@ Classifier: Programming Language :: Python :: 3.8
26
16
  Classifier: Programming Language :: Python :: 3.9
27
17
  Requires-Python: >=3.8
28
18
  Description-Content-Type: text/markdown
19
+ License-File: LICENSE
20
+
21
+ # pulp_python
22
+
23
+ ![Pulp Nightly CI/CD](https://github.com/pulp/pulp_python/actions/workflows/nightly.yml/badge.svg)
24
+
25
+ A Pulp plugin to support hosting your own pip compatible Python packages.
26
+
27
+ For more information, please see the [documentation](https://docs.pulpproject.org/pulp_python/) or the
28
+ [Pulp project page](https://pulpproject.org).
@@ -1,5 +1,5 @@
1
1
  git+https://github.com/pulp/pulp-smash.git#egg=pulp-smash
2
- pytest
2
+ pytest<8
3
3
  lxml
4
4
  twine
5
5
  pypi-simple
@@ -8,5 +8,5 @@ class PulpPythonPluginAppConfig(PulpPluginAppConfig):
8
8
 
9
9
  name = "pulp_python.app"
10
10
  label = "python"
11
- version = "3.11.0"
11
+ version = "3.11.1"
12
12
  python_package_name = "pulp-python"
@@ -1,9 +1,12 @@
1
1
  import logging
2
+ import tempfile
3
+ from typing import Optional, Any, AsyncGenerator
2
4
 
5
+ import aiohttp
3
6
  from aiohttp import ClientResponseError, ClientError
4
7
  from lxml.etree import LxmlError
5
8
  from gettext import gettext as _
6
- from os import environ, path
9
+ from os import environ
7
10
 
8
11
  from rest_framework import serializers
9
12
 
@@ -111,9 +114,10 @@ class PythonBanderStage(Stage):
111
114
  """
112
115
  If includes is specified, then only sync those,else try to sync all other packages
113
116
  """
114
- # Prevent bandersnatch from reading actual .netrc file, set to nonexistent file
117
+ # Prevent bandersnatch from reading actual .netrc file, set to empty file
115
118
  # See discussion on https://github.com/pulp/pulp_python/issues/581
116
- environ["NETRC"] = f"{path.curdir}/.fake-netrc"
119
+ fake_netrc = tempfile.NamedTemporaryFile(dir=".", delete=False)
120
+ environ["NETRC"] = fake_netrc.name
117
121
  # TODO Change Bandersnatch internal API to take proxy settings in from config parameters
118
122
  if proxy_url := self.remote.proxy_url:
119
123
  if self.remote.proxy_username or self.remote.proxy_password:
@@ -126,7 +130,7 @@ class PythonBanderStage(Stage):
126
130
  # Bandersnatch includes leading slash when forming API urls
127
131
  url = self.remote.url.rstrip("/")
128
132
  # local & global timeouts defaults to 10secs and 5 hours
129
- async with Master(url) as master:
133
+ async with PulpMaster(url, tls=self.remote.tls_validation) as master:
130
134
  deferred_download = self.remote.policy != Remote.IMMEDIATE
131
135
  workers = self.remote.download_concurrency or self.remote.DEFAULT_DOWNLOAD_CONCURRENCY
132
136
  async with ProgressReport(
@@ -148,6 +152,25 @@ class PythonBanderStage(Stage):
148
152
  await pmirror.synchronize(packages_to_sync)
149
153
 
150
154
 
155
+ class PulpMaster(Master):
156
+ """
157
+ Pulp Master Class for Pulp specific overrides
158
+ """
159
+
160
+ def __init__(self, *args, tls=True, **kwargs):
161
+ self.tls = tls
162
+ super().__init__(*args, **kwargs)
163
+
164
+ async def get(
165
+ self, path: str, required_serial: Optional[int], **kw: Any
166
+ ) -> AsyncGenerator[aiohttp.ClientResponse, None]:
167
+ """Support tls=false"""
168
+ if not self.tls:
169
+ kw["ssl"] = False
170
+ async for r in super().get(path, required_serial, **kw):
171
+ yield r
172
+
173
+
151
174
  class PulpMirror(Mirror):
152
175
  """
153
176
  Pulp Mirror Class to perform syncing using Bandersnatch
@@ -257,4 +280,4 @@ class PulpMirror(Mirror):
257
280
  TODO
258
281
  This should have some error checking
259
282
  """
260
- pass
283
+ logger.error("Sync encountered an error: ", exc_info=exception)
@@ -1,21 +1,11 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulp-python
3
- Version: 3.11.0
3
+ Version: 3.11.1
4
4
  Summary: pulp-python plugin for the Pulp Project
5
5
  Home-page: https://www.pulpproject.org
6
6
  Author: Pulp Project Developers
7
7
  Author-email: pulp-list@redhat.com
8
8
  License: GPLv2+
9
- Description: # pulp_python
10
-
11
- ![Pulp Nightly CI/CD](https://github.com/pulp/pulp_python/actions/workflows/nightly.yml/badge.svg)
12
-
13
- A Pulp plugin to support hosting your own pip compatible Python packages.
14
-
15
- For more information, please see the [documentation](https://docs.pulpproject.org/pulp_python/) or the
16
- [Pulp project page](https://pulpproject.org).
17
-
18
- Platform: UNKNOWN
19
9
  Classifier: License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)
20
10
  Classifier: Operating System :: POSIX :: Linux
21
11
  Classifier: Development Status :: 5 - Production/Stable
@@ -26,3 +16,13 @@ Classifier: Programming Language :: Python :: 3.8
26
16
  Classifier: Programming Language :: Python :: 3.9
27
17
  Requires-Python: >=3.8
28
18
  Description-Content-Type: text/markdown
19
+ License-File: LICENSE
20
+
21
+ # pulp_python
22
+
23
+ ![Pulp Nightly CI/CD](https://github.com/pulp/pulp_python/actions/workflows/nightly.yml/badge.svg)
24
+
25
+ A Pulp plugin to support hosting your own pip compatible Python packages.
26
+
27
+ For more information, please see the [documentation](https://docs.pulpproject.org/pulp_python/) or the
28
+ [Pulp project page](https://pulpproject.org).
@@ -1,3 +1,2 @@
1
1
  [pulpcore.plugin]
2
2
  pulp_python = pulp_python:default_app_config
3
-
@@ -10,7 +10,7 @@ with open("README.md") as f:
10
10
 
11
11
  setup(
12
12
  name="pulp-python",
13
- version="3.11.0",
13
+ version="3.11.1",
14
14
  description="pulp-python plugin for the Pulp Project",
15
15
  long_description=long_description,
16
16
  long_description_content_type="text/markdown",
@@ -0,0 +1,2 @@
1
+ mock
2
+ pytest<8
@@ -1,2 +0,0 @@
1
- mock
2
- pytest
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes