Bug 2531861

Summary: Review Request: python-whodap - simple RDAP module for Python
Product: [Fedora] Fedora Reporter: Artur Frenszek-Iwicki <fedora>
Component: Package ReviewAssignee: Nobody's working on this, feel free to take it <nobody>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: mhroncok, package-review
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Artur Frenszek-Iwicki 2026-09-11 12:22:12 UTC
spec: https://suve.fedorapeople.org/review/python-whodap-0.1.16-1/python-whodap.spec
srpm: https://suve.fedorapeople.org/review/python-whodap-0.1.16-1/python-whodap-0.1.16-1.fc45.src.rpm
koji: https://koji.fedoraproject.org/koji/taskinfo?taskID=150133320

Description:
Python RDAP utility for querying and parsing information about Domains, IPv4s, IPv6s, and AS numbers.

Fedora Account System Username: suve

Comment 1 Miro Hrončok 2026-10-12 12:36:45 UTC
I noticed you use: %pyproject_buildrequires -t but then don't use %tox in %check. Is there a reason?

Also, does %pytest work over PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version}?

Comment 2 Artur Frenszek-Iwicki 2026-10-12 12:48:21 UTC
> I noticed you use: %pyproject_buildrequires -t but then don't use %tox in %check. Is there a reason?
Good catch. The reason is that I probably copy-pasted this from another spec that does use tox.

> Also, does %pytest work over PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version}?
Uhh, I don't think I understand your question. Yes, this invocation works and the tests pass.
Dropping the PYTHONPATH bit makes 'em all fail with ModuleNotFoundError.

Unless you're asking about the "pytest-%{python3_version}" bit?
To be honest, this is also copy-pasted from another spec.
Looking through my Python packages, I see others using "%python3 -m pytest tests/" instead.
Would that be preferable?

Comment 3 Miro Hrončok 2026-10-12 13:19:05 UTC
Sorry if I did not phrase it correctly. I meant: Does this change work?:


     %check
    -PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version} -v
    +%pytest -v

And if it does, let's use it (unless you will use %tox, which makes it moot). %pytest sets PYTHONPATH for you.

Comment 4 Artur Frenszek-Iwicki 2026-10-12 13:50:14 UTC
Ah, ok, now I get it. Yes, this change works.

Anyway, I've just noticed that since I first submitted this Review Request, upstream released v0.2.1.
Updated the package and went with %tox for running the tests.

spec: https://suve.fedorapeople.org/review/python-whodap-0.2.1-1/python-whodap.spec
srpm: https://suve.fedorapeople.org/review/python-whodap-0.2.1-1/python-whodap-0.2.1-1.fc45.src.rpm
koji: https://koji.fedoraproject.org/koji/taskinfo?taskID=151204210