Skip to content

Commit c2cd206

Browse files
committed
Delete sample-rpm pkg used for verification purposes
1 parent f5ad6f7 commit c2cd206

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

MANIFEST.in

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@ include functest_requirements.txt
66
include LICENSE
77
include pulp_rpm/app/schema/*
88
include pulp_rpm/tests/functional/sign-metadata.sh
9-
include pulp_rpm/tests/sample-rpm-0-0.x86_64.rpm
109
include pyproject.toml
1110
include test_requirements.txt
1211
include unittest_requirements.txt
1312
exclude releasing.md
1413
exclude AGENTS.md
1514
exclude CLAUDE.md
16-
exclude .gitleaks.toml
15+
exclude .gitleaks.toml

pulp_rpm/app/shared_utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import rpm_rs
1111
from django.conf import settings
1212
from django.utils.dateparse import parse_datetime
13-
from importlib_resources import files
1413

1514
from pulpcore.plugin.exceptions import InvalidSignatureError
1615

@@ -237,9 +236,10 @@ def parse_time(value):
237236

238237

239238
def _get_datapkg_sample_rpm_copy(basedir: str):
240-
sample_rpm = files("pulp_rpm").joinpath("tests/sample-rpm-0-0.x86_64.rpm")
241-
copy_rpm = shutil.copy(sample_rpm, basedir)
242-
return Path(copy_rpm)
239+
path = Path(basedir) / "sample-rpm-0-0.x86_64.rpm"
240+
pkg = rpm_rs.PackageBuilder("sample-rpm", "0", "Public Domain", "x86_64").build()
241+
pkg.write_file(str(path))
242+
return path
243243

244244

245245
class RpmTool:
-5.93 KB
Binary file not shown.

0 commit comments

Comments
 (0)