Bug 2460762 - Review Request: python-aiokafka - Asyncio client for Kafka
Summary: Review Request: python-aiokafka - Asyncio client for Kafka
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Carl George 🤠
QA Contact: Fedora Extras Quality Assurance
URL: https://github.com/aio-libs/aiokafka
Whiteboard: Unretirement
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-04-22 16:39 UTC by Paul Wouters
Modified: 2026-05-06 22:02 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:
carlwgeorge: fedora-review?


Attachments (Terms of Use)
The .spec file difference from Copr build 10356316 to 10356811 (952 bytes, patch)
2026-04-22 20:32 UTC, Fedora Review Service
no flags Details | Diff

Description Paul Wouters 2026-04-22 16:39:55 UTC
Spec URL: https://nohats.ca/ftp/python-aiokafka/python-aiokafka.spec
SRPM URL: https://nohats.ca/ftp/python-aiokafka/python-aiokafka-0.13.0-1.fc45.src.rpm
Description: Asyncio client for Kafka
Fedora Account System Username: pwouters

Comment 1 Fedora Review Service 2026-04-22 16:44:30 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/10356316
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2460762-python-aiokafka/fedora-rawhide-x86_64/10356316-python-aiokafka/fedora-review/review.txt

Found issues:

- python3.14dist(async-timeout) is deprecated, you must not depend on it.
  Read more: https://docs.fedoraproject.org/en-US/packaging-guidelines/deprecating-packages/
- A package with this name already exists. Please check https://src.fedoraproject.org/rpms/python-aiokafka
  Read more: https://docs.fedoraproject.org/en-US/packaging-guidelines/Naming/#_conflicting_package_names

Please know that there can be false-positives.

---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 2 Paul Wouters 2026-04-22 20:26:25 UTC
Spec URL: https://nohats.ca/ftp/python-aiokafka/python-aiokafka.spec
SRPM URL: https://nohats.ca/ftp/python-aiokafka/python-aiokafka-0.13.0-1.fc45.src.rpm
Description: Asyncio client for Kafka
Fedora Account System Username: pwouters

(fixed async-timeout issue)

Comment 3 Fedora Review Service 2026-04-22 20:32:12 UTC
Created attachment 2137952 [details]
The .spec file difference from Copr build 10356316 to 10356811

Comment 4 Fedora Review Service 2026-04-22 20:32:15 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/10356811
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2460762-python-aiokafka/fedora-rawhide-x86_64/10356811-python-aiokafka/fedora-review/review.txt

Found issues:

- python3dist(async-timeout) is deprecated, you must not depend on it.
  Read more: https://docs.fedoraproject.org/en-US/packaging-guidelines/deprecating-packages/
- A package with this name already exists. Please check https://src.fedoraproject.org/rpms/python-aiokafka
  Read more: https://docs.fedoraproject.org/en-US/packaging-guidelines/Naming/#_conflicting_package_names

Please know that there can be false-positives.

---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 5 Carl George 🤠 2026-05-06 22:02:23 UTC
Since your last update v0.14.0 has been tagged upstream.  Please update to that version.

================================================================================

licensecheck turned up some additional licenses that need to be included in the license tag.

./aiokafka/record/_crecords/crc32c.c:                       Zlib
./aiokafka/record/_crecords/crc32c.h:               BSD-2-Clause

================================================================================

Some of the python build requirements are picked up automatically by %pyproject_buildrequires and should not be duplicated.  Also it looks like the tests pass even without the docker one, probably because you're not using the --docker-image flag.  Please remove the following:

* python3dist(cython)
* python3dist(docker)
* python3dist(cramjam)

https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#Automatically-generated-dependencies:~:text=Dependencies%20covered%20by%20the%20generators%20SHOULD%20NOT%20be%20repeated%20in%20the%20%2Espec%20file%2E

================================================================================

The `all` extra covers the rest of the extras, so the %pyproject_buildrequires argument can just be `-x all`.

================================================================================

The license file is automatically included in the dist-info directory and marked appropriately, so the explicit license in %files is a duplicate and should be removed.

/usr/lib64/python3.14/site-packages/aiokafka-0.13.0.dist-info/licenses/LICENSE
/usr/share/licenses/python3-aiokafka/LICENSE

You can add a safety check for this by using the `-l` flag with %pyproject_save_files.

https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#:~:text=%2Dl%3A%20Declare%20that%20a%20missing%20license%20should%20terminate%20the%20build%2E

================================================================================

In %check the ${tests_dir} variable doesn't seem to be defined anywhere, so it should probably be removed.

================================================================================

fedora-review flagged that this package depends on the deprecated python-async-timeout.  Normally new packages are not allowed to be added if they depend on deprecated packages.  In this case, since it is an unretirement of an existing package, I think we can waive that as long as it is noted in a spec file comment (my suggestion would be right above %pyproject_buildrequires).  There is already an upstream issue that can be referenced in the comment.

https://github.com/aio-libs/aiokafka/issues/1123

https://docs.fedoraproject.org/en-US/packaging-guidelines/deprecating-packages/#_consequences_of_a_package_being_deprecated

================================================================================

Optional readability improvements:

* the %{owner} macro is only used once, so I would remove it and just use the value directly
* Source0 can be shortened up by using %{url} (as long as it is moved after the URL tag)


Note You need to log in before you can comment on or make changes to this bug.