pulp-ansible 0.28.1__py3-none-any.whl → 0.28.2__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.
@@ -8,6 +8,6 @@ class PulpAnsiblePluginAppConfig(PulpPluginAppConfig):
8
8
 
9
9
  name = "pulp_ansible.app"
10
10
  label = "ansible"
11
- version = "0.28.1"
11
+ version = "0.28.2"
12
12
  python_package_name = "pulp-ansible"
13
13
  domain_compatible = True
@@ -8,7 +8,7 @@ from pulpcore.plugin.migrations import RequireVersion
8
8
  def migrate_missing_tags_up(apps, schema):
9
9
  CollectionVersion = apps.get_model("ansible", "CollectionVersion")
10
10
  cv_to_update = []
11
- for cv in CollectionVersion.objects.filter(new_tags=None).prefetch_related("tags"):
11
+ for cv in CollectionVersion.objects.filter(new_tags=None).only("new_tags").prefetch_related("tags"):
12
12
  cv.new_tags = [t.name for t in cv.tags.all()]
13
13
  cv_to_update.append(cv)
14
14
  if len(cv_to_update) >= 100:
@@ -23,7 +23,7 @@ def migrate_missing_tags_down(apps, schema):
23
23
  # Also it's not optimized.
24
24
  Tag = apps.get_model("ansible", "Tag")
25
25
  CollectionVersion = apps.get_model("ansible", "CollectionVersion")
26
- for cv in CollectionVersion.objects.filter(new_tags__len__gt=0):
26
+ for cv in CollectionVersion.objects.filter(new_tags__len__gt=0).only("new_tags"):
27
27
  for tag_name in cv.new_tags:
28
28
  tag, created = Tag.objects.get_or_create(name=tag_name)
29
29
  cv.tags.add(tag)
@@ -126,13 +126,15 @@ async def declarative_content_from_git_repo(remote, url, git_ref=None, metadata_
126
126
  if git_ref:
127
127
  try:
128
128
  gitrepo = Repo.clone_from(
129
- url, uuid4(), depth=1, branch=git_ref, multi_options=["--recurse-submodules"]
129
+ url, str(uuid4()), depth=1, branch=git_ref, multi_options=["--recurse-submodules"]
130
130
  )
131
131
  except GitCommandError:
132
- gitrepo = Repo.clone_from(url, uuid4(), multi_options=["--recurse-submodules"])
132
+ gitrepo = Repo.clone_from(url, str(uuid4()), multi_options=["--recurse-submodules"])
133
133
  gitrepo.git.checkout(git_ref)
134
134
  else:
135
- gitrepo = Repo.clone_from(url, uuid4(), depth=1, multi_options=["--recurse-submodules"])
135
+ gitrepo = Repo.clone_from(
136
+ url, str(uuid4()), depth=1, multi_options=["--recurse-submodules"]
137
+ )
136
138
  commit_sha = gitrepo.head.commit.hexsha
137
139
  metadata, artifact_path = sync_collection(gitrepo.working_dir, ".")
138
140
  artifact = Artifact.init_and_validate(artifact_path)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pulp-ansible
3
- Version: 0.28.1
3
+ Version: 0.28.2
4
4
  Summary: Pulp plugin to manage Ansible content, e.g. roles
5
5
  Author-email: Pulp Ansible Plugin Project Developers <pulp-dev@redhat.com>
6
6
  Project-URL: Homepage, https://pulpproject.org
@@ -1,6 +1,6 @@
1
1
  pulp_ansible/__init__.py,sha256=WXL3JyOZzh4tALN4OBNgqj412O2LXVr8iYSn14Av0_o,67
2
2
  pulp_ansible/pytest_plugin.py,sha256=hi9crI7QGghXCItNx27pW6KoXMzZqhAqAUstpJrsmlA,9105
3
- pulp_ansible/app/__init__.py,sha256=fWVAEE6eDIn22Kvy7rtYgrIGgNQ3esEpVdawce8Ion4,308
3
+ pulp_ansible/app/__init__.py,sha256=ACi_3Kos2rCKIQ3FaqkfO5_Cu6w5zqIf7xpNyTChCWg,308
4
4
  pulp_ansible/app/constants.py,sha256=cRrWMbJU-v1nCY2CjmGTOFGzz5aggn4ZKIs4-zeYADQ,78
5
5
  pulp_ansible/app/downloaders.py,sha256=0xrAXzhTMJ6ywvs6XyYNAKvRzYb_UZR6A5_WgaHvuiE,8331
6
6
  pulp_ansible/app/fields.py,sha256=yV3FL-47K-nxbiBxgzWi1hk3tfLsRdgic59LiwT2Fvs,624
@@ -89,7 +89,7 @@ pulp_ansible/app/migrations/0058_fix_0056_regression.py,sha256=VTmiG_VlpC6wXb4R2
89
89
  pulp_ansible/app/migrations/0059_collectionversion_unique_sha256.py,sha256=_4MAElCkv5OUjv7v9eL43h9PhtLl85vOfMiTZKEGD-Q,1291
90
90
  pulp_ansible/app/migrations/0060_remove_collectionversion_unique_is_highest_and_more.py,sha256=GDaBq6YPznAxjObBmP3YRHsdUtUjTAHpnShpkICe9J8,586
91
91
  pulp_ansible/app/migrations/0061_collectionversion_new_tags.py,sha256=Hkf5oaJU7N-LQGi7IFXIx_SSx-FatS1kKYOfFEMCzlc,655
92
- pulp_ansible/app/migrations/0062_pivot_collectionversion_tags.py,sha256=Jn8PElX_f8x_5VYc525Kj-cd-17_GHPdop8-65rYPBk,4875
92
+ pulp_ansible/app/migrations/0062_pivot_collectionversion_tags.py,sha256=qHy66lf9nWlMBFmZj9BrJaxpfXMZ7SyOtnlPwE2-1RM,4909
93
93
  pulp_ansible/app/migrations/0063_domain_support.py,sha256=jms2LMvIvF7dXbIIoSH3u5XNMbRn8aK5Kkc3CQznem8,4044
94
94
  pulp_ansible/app/migrations/0064_alter_collection_unique_together_and_more.py,sha256=sXzRG3BGVHuDcfuPjHIKIbmDqMgGDs5tCpkmKwY-JL8,2158
95
95
  pulp_ansible/app/migrations/0065_collectionversion_ansible_col_namespa_ea6f75_idx.py,sha256=MCqN5w59xqke3z7Kq7elvG_JWFvE5GP5K2whyECxpoQ,483
@@ -97,7 +97,7 @@ pulp_ansible/app/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMp
97
97
  pulp_ansible/app/schema/__init__.py,sha256=eGi2QVJ0kJgXwiDNjQsvqWDSr3EA8TFqFZATTY8xwT8,207
98
98
  pulp_ansible/app/schema/copy_config.json,sha256=AJz8riON7_rh-L7jM5iev2Imc5UKjlNvGfwF7KrFH7Y,568
99
99
  pulp_ansible/app/tasks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
100
- pulp_ansible/app/tasks/collections.py,sha256=aP0o-DTzlkHXZMn-uASwHrld6pVBztErTR-ErKeid6g,50672
100
+ pulp_ansible/app/tasks/collections.py,sha256=J8cC9zLJYRvYEkl6n4sAePLKrvoDrS9s4aibNxSTxEA,50709
101
101
  pulp_ansible/app/tasks/collectionversion_index.py,sha256=_cnQeWRpFXrreTJM9aaEc2HuknTksZa0lLZ7XUfmQ_c,9401
102
102
  pulp_ansible/app/tasks/copy.py,sha256=dO_DnLT5hck6GpZomEHurrDHJM0Wkh2B0_wgHHOtbuY,5563
103
103
  pulp_ansible/app/tasks/deletion.py,sha256=f-VNTMzDMQiJpCLN34fY5gwhAGlh3RACj4VWc_tOaP0,3579
@@ -167,9 +167,9 @@ pulp_ansible/tests/unit/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQe
167
167
  pulp_ansible/tests/unit/migrations/conftest.py,sha256=61n56aJuwEuAcUS27xnmnEDx6Ie7M5zxh851doWm7Ok,438
168
168
  pulp_ansible/tests/unit/migrations/test_0057_collection_version_sha256_migrate.py,sha256=NmU-frZNO1qHvhdxfw-bwPTEkqN4Wdc3dEs9dWME47o,2174
169
169
  pulp_ansible/tests/unit/migrations/test_x_repo_search_migration.py,sha256=IrC_V_Gss4nqhkdL-60upcEzGcz8IsiI2d-MfUtFY-g,657
170
- pulp_ansible-0.28.1.dist-info/licenses/LICENSE,sha256=2ylvL381vKOhdO-w6zkrOxe9lLNBhRQpo9_0EbHC_HM,18046
171
- pulp_ansible-0.28.1.dist-info/METADATA,sha256=4D1uj12SJ7hS60hxgGxODb-6_C44NytkLEA7OMgkkoc,3125
172
- pulp_ansible-0.28.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
173
- pulp_ansible-0.28.1.dist-info/entry_points.txt,sha256=6PFqCdT7Yn7U5MlioYRsyyWbJDcZI2aAJuzc7yXHqGk,119
174
- pulp_ansible-0.28.1.dist-info/top_level.txt,sha256=5Rrg5DSM_F9wH8vu8Fxjb5EmroC-I8RVKp05fhXH6kQ,13
175
- pulp_ansible-0.28.1.dist-info/RECORD,,
170
+ pulp_ansible-0.28.2.dist-info/licenses/LICENSE,sha256=2ylvL381vKOhdO-w6zkrOxe9lLNBhRQpo9_0EbHC_HM,18046
171
+ pulp_ansible-0.28.2.dist-info/METADATA,sha256=px7YGxFFEZea1rBPvo_mIkOvt7pHhLqIqJ08U13EapY,3125
172
+ pulp_ansible-0.28.2.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
173
+ pulp_ansible-0.28.2.dist-info/entry_points.txt,sha256=6PFqCdT7Yn7U5MlioYRsyyWbJDcZI2aAJuzc7yXHqGk,119
174
+ pulp_ansible-0.28.2.dist-info/top_level.txt,sha256=5Rrg5DSM_F9wH8vu8Fxjb5EmroC-I8RVKp05fhXH6kQ,13
175
+ pulp_ansible-0.28.2.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.9.0)
2
+ Generator: setuptools (80.10.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5