Bug 2539211
| Summary: | Review Request: python-pytorch-tokenizers - C++ implementations for various tokenizers | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Peter Robinson <pbrobinson> |
| Component: | Package Review | Assignee: | Javier Martinez Canillas <javierm> |
| Status: | ON_QA --- | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | javierm, msuchy, package-review |
| Target Milestone: | --- | Flags: | javierm:
fedora-review+
|
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| 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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 2547877 | ||
|
Description
Peter Robinson
2026-09-23 08:38:39 UTC
SPEC: https://pbrobinson.fedorapeople.org/python-pytorch-tokenizers.spec SRPM: https://pbrobinson.fedorapeople.org/python-pytorch-tokenizers-1.4.1-2.fc44.src.rpm koji: https://koji.fedoraproject.org/koji/taskinfo?taskID=150999283 Although cmake is transitively loaded, the guidelines https://docs.fedoraproject.org/en-US/packaging-guidelines/CMake/ say: You MUST add following BuildRequires: BuildRequires: cmake Please include at least minimalistict %check using %pyproject_check_import https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#pyproject_check_import > Source0: https://github.com/meta-pytorch/tokenizers/archive/1.4.1.tar.gz#/tokenizers-1.4.1.tar.gz 404 not found SPEC: https://pbrobinson.fedorapeople.org/python-pytorch-tokenizers.spec SRPM: https://pbrobinson.fedorapeople.org/python-pytorch-tokenizers-1.4.1-3.fc44.src.rpm koji: https://koji.fedoraproject.org/koji/taskinfo?taskID=151070415 > You MUST add following BuildRequires: > BuildRequires: cmake Yep, that was an oversight I thought had fixed. > Please include at least minimalistict %check using %pyproject_check_import Yes, going through and adding/testing this on all the packages I have now I'm aware of it. > > Source0: https://github.com/meta-pytorch/tokenizers/archive/1.4.1.tar.gz#/tokenizers-1.4.1.tar.gz Fixed I've run fedora-review and the following is the report (NOTE: it failed to
build in rawhide so I did a `fedora-review -b 2539211 -m fedora-45-x86_64`).
Following is the report:
Package Review
==============
Legend:
[x] = Pass, [!] = Fail, [-] = Not applicable, [?] = Not evaluated
Issues:
=======
- [!] License field is BSD-3-Clause. But sources contain Apache-2.0
(base64.h, tiktoken.cpp) and MIT (third-party/llama.cpp-unicode/).
License tag should be: BSD-3-Clause AND Apache-2.0 AND MIT
- [!] Header files (.h) installed inside the main python3-pytorch-tokenizers
package under site-packages/pytorch_tokenizers/include/. These should be
excluded from the wheel or moved to the -devel subpackage, unless they are
needed at runtime.
- [!] Static libraries in python3-pytorch-tokenizers-devel but package
does not Provides: python3-pytorch-tokenizers-devel-static.
- [!] Missing versioned dependency: python3-pytorch-tokenizers-devel should
have Requires: python3-pytorch-tokenizers%{?_isa} = %{version}-%{release}
- [!] /usr/include/pytorch is not owned by any existing package. The -devel
subpackage should own it.
- [!] %define with_tests 1 should be %global with_tests 1
- [?] third-party/llama.cpp-unicode/ is present in the source. If these files
are bundled, a Provides: bundled(llama-cpp-unicode) is needed.
===== MUST items =====
C/C++:
[x]: Package does not contain kernel modules.
[x]: Development (unversioned) .so files in -devel subpackage, if present.
Note: Unversioned so-files in private %_libdir subdirectory
(pybind11 extension module). Not in ld path — OK.
[x]: If your application is a C or C++ application you must list a
BuildRequires against gcc, gcc-c++ or clang.
[x]: Package does not contain any libtool archives (.la)
[x]: Package contains no static executables.
[x]: Rpath absent or only used for internal libs.
Generic:
[x]: Package is licensed with an open-source compatible license and meets
other legal requirements as defined in the legal section of Packaging
Guidelines.
[!]: License field in the package spec file matches the actual license.
Note: Spec says BSD-3-Clause. Sources also contain Apache-2.0 and MIT.
Should be: BSD-3-Clause AND Apache-2.0 AND MIT
[x]: License file installed when any subpackage combination is installed.
[!]: Package requires other packages for directories it uses.
Note: No known owner of /usr/include/pytorch
[!]: Package must own all directories that it creates.
Note: Directories without known owners: /usr/include/pytorch
(/usr/lib64/python3.15 and site-packages are owned by python3)
[x]: %build honors applicable compiler flags or justifies otherwise.
[?]: Package contains no bundled libraries or specifies bundled libraries
with Provides: bundled(<libname>) if unbundling is not possible.
Note: third-party/llama.cpp-unicode/ present in sources. Verify whether
-DTOKENIZERS_USE_SYSTEM_LIBS=ON unbundles it or if it is still compiled in.
[x]: Changelog in prescribed format.
[x]: Sources contain only permissible code or content.
[-]: Package contains desktop file if it is a GUI application.
[!]: Development files must be in a -devel package
Note: .h files in main python3-pytorch-tokenizers package under site-packages.
[x]: Package uses nothing in %doc for runtime.
[x]: Package consistently uses macros (instead of hard-coded directory names).
[x]: Package is named according to the Package Naming Guidelines.
[x]: Package does not generate any conflict.
[x]: Package obeys FHS, except libexecdir and /usr/target.
[-]: If the package is a rename of another package, proper Obsoletes and
Provides are present.
[x]: Requires correct, justified where necessary.
[x]: Spec file is legible and written in American English.
[-]: Package contains systemd file(s) if in need.
[x]: Useful -debuginfo package or justification otherwise.
[x]: Package is not known to require an ExcludeArch tag.
Note: ExclusiveArch: aarch64 x86_64 — appropriate for this package.
[ ]: Package complies to the Packaging Guidelines
Note: Contingent on resolving the issues listed above.
[x]: Package successfully compiles and builds into binary rpms on at least
one supported primary architecture.
[x]: Package installs properly.
[x]: Rpmlint is run on all rpms the build produces.
Note: There are rpmlint messages (see attachment).
[x]: If (and only if) the source package includes the text of the
license(s) in its own file, then that file, containing the text of the
license(s) for the package is included in %license.
[x]: The License field must be a valid SPDX expression.
[x]: Package does not own files or directories owned by other packages.
[x]: Package uses either %{buildroot} or $RPM_BUILD_ROOT
[x]: Package does not run rm -rf %{buildroot} (or $RPM_BUILD_ROOT) at the
beginning of %install.
[x]: Macros in Summary, %description expandable at SRPM build time.
[x]: Dist tag is present.
[x]: Package does not contain duplicates in %files.
[x]: Permissions on files are set properly.
[x]: Package must not depend on deprecated() packages.
[x]: Package use %makeinstall only when make install DESTDIR=... doesn't
work.
[x]: Package is named using only allowed ASCII characters.
[x]: Package does not use a name that already exists.
[x]: Package is not relocatable.
[x]: Sources used to build the package match the upstream source, as
provided in the spec URL.
[x]: Spec file name must match the spec package %{name}, in the format
%{name}.spec.
[x]: File names are valid UTF-8.
[x]: Large documentation must go in a -doc subpackage. Large could be size
(~1MB) or number of files.
Note: Documentation size is 1537 bytes in 1 files.
[x]: Packages must not store files under /srv, /opt or /usr/local
Python:
[x]: Python eggs must not download any dependencies during the build
process.
[x]: A package which is used by another package via an egg interface should
provide egg info.
[x]: Package meets the Packaging Guidelines::Python
[x]: Packages MUST NOT have dependencies (either build-time or runtime) on
packages named with the unversioned python- prefix unless no properly
versioned package exists. Dependencies on Python packages instead MUST
use names beginning with python2- or python3- as appropriate.
[x]: Python packages must not contain %{pythonX_site(lib|arch)}/* in %files
[x]: Binary eggs must be removed in %prep
===== SHOULD items =====
Generic:
[x]: If the source package does not include license text(s) as a separate
file from upstream, the packager SHOULD query upstream to include it.
[x]: Final provides and requires are sane (see attachments).
[!]: Fully versioned dependency in subpackages if applicable.
Note: No Requires: %{name}%{?_isa} = %{version}-%{release} in
python3-pytorch-tokenizers-devel
[x]: Package functions as described.
[x]: Latest version is packaged.
[x]: Package does not include license text files separate from upstream.
[x]: Patches link to upstream bugs/comments/lists or are otherwise
justified.
[-]: Sources are verified with gpgverify first in %prep if upstream
publishes signatures.
Note: Upstream does not publish signatures.
[?]: %check is present and all tests pass.
Note: Only %pyproject_check_import is run. No pytest / upstream test
suite execution.
[x]: Packages should try to preserve timestamps of original installed
files.
[!]: Spec use %global instead of %define unless justified.
Note: %define with_tests 1 should be %global with_tests 1
[x]: Reviewer should test that the package builds in mock.
[x]: Buildroot is not present
[x]: Package has no %clean section with rm -rf %{buildroot} (or
$RPM_BUILD_ROOT)
[x]: No file requires outside of /etc, /bin, /sbin, /usr/bin, /usr/sbin.
[x]: Packager, Vendor, PreReq, Copyright tags should not be in spec file
[x]: Sources can be downloaded from URI in Source: tag
[x]: SourceX is a working URL.
[x]: Package should compile and build into binary rpms on all supported
architectures.
===== EXTRA items =====
Generic:
[x]: Rpmlint is run on all installed packages.
Note: There are rpmlint messages (see attachment).
[x]: Large data in /usr/share should live in a noarch subpackage if package
is arched.
[x]: Spec file according to URL is the same as in SRPM.
Rpmlint
-------
Checking: python3-pytorch-tokenizers-1.4.1-3.fc45.x86_64.rpm
python3-pytorch-tokenizers-devel-1.4.1-3.fc45.x86_64.rpm
python-pytorch-tokenizers-1.4.1-3.fc45.src.rpm
6 errors (all spelling error false positives: sentencepiece, tiktoken,
torchchat are project names), 23 warnings (devel-file-in-non-devel-package
for .h files in site-packages, no-documentation on -devel).
Source checksums
----------------
https://github.com/meta-pytorch/tokenizers/archive/v1.4.1.tar.gz#/tokenizers-1.4.1.tar.gz :
CHECKSUM(SHA256) this package : c3095b5269e970863a952e6d5c0ee640388fff8219aa3112307f722304194cbd
CHECKSUM(SHA256) upstream package : c3095b5269e970863a952e6d5c0ee640388fff8219aa3112307f722304194cbd
Generated by fedora-review 0.11.0 (05c5b26) last change: 2025-11-29
Command line :/usr/bin/fedora-review -b 2539211 -m fedora-45-x86_64
Buildroot used: fedora-45-x86_64
Active plugins: Generic, Python, Shell-api, C/C++
Disabled plugins: R, Java, PHP, Haskell, fonts, SugarActivity, Perl, Ocaml
Disabled flags: EXARCH, EPEL6, EPEL7, DISTTAG, BATCH
(In reply to Javier Martinez Canillas from comment #5) > I've run fedora-review and the following is the report (NOTE: it failed to > build in rawhide so I did a `fedora-review -b 2539211 -m fedora-45-x86_64`). Yes, I believe that's due to pytorch bumps/moving targets, will work out the matching revs when I push and coord the diff vers for different releases at that point. > Issues: > ======= > - [!] License field is BSD-3-Clause. But sources contain Apache-2.0 > (base64.h, tiktoken.cpp) and MIT (third-party/llama.cpp-unicode/). > License tag should be: BSD-3-Clause AND Apache-2.0 AND MIT > - [!] Header files (.h) installed inside the main python3-pytorch-tokenizers > package under site-packages/pytorch_tokenizers/include/. These should be > excluded from the wheel or moved to the -devel subpackage, unless they are > needed at runtime. > - [!] Static libraries in python3-pytorch-tokenizers-devel but package > does not Provides: python3-pytorch-tokenizers-devel-static. > - [!] Missing versioned dependency: python3-pytorch-tokenizers-devel should > have Requires: python3-pytorch-tokenizers%{?_isa} = %{version}-%{release} > - [!] /usr/include/pytorch is not owned by any existing package. The -devel > subpackage should own it. > - [!] %define with_tests 1 should be %global with_tests 1 All of those are addressed. > - [?] third-party/llama.cpp-unicode/ is present in the source. If these files > are bundled, a Provides: bundled(llama-cpp-unicode) is needed. It includes in the build a couple of headers (`unicode.h` and `unicode-data.h`) that are included from the upstream llama.cpp project, so it's not bundled per-se but I can add that provides if necessary (it wasn't clear to me as it's not a bundled library). SPEC: https://pbrobinson.fedorapeople.org/python-pytorch-tokenizers.spec SRPM: https://pbrobinson.fedorapeople.org/python-pytorch-tokenizers-1.4.1-4.fc44.src.rpm koji: https://koji.fedoraproject.org/koji/taskinfo?taskID=151582430 The package looks good to me now and I could not spot any issues. Approved. The Pagure repository was created at https://src.fedoraproject.org/rpms/python-pytorch-tokenizers Monitoring: Wasn't able to create project in Anitya. You can create it manually on: `https://release-monitoring.org` FEDORA-2026-ba2f2a1515 (python-pytorch-tokenizers-1.4.1-4.fc45) has been submitted as an update to Fedora 45. https://bodhi.fedoraproject.org/updates/FEDORA-2026-ba2f2a1515 FEDORA-2026-ba2f2a1515 has been pushed to the Fedora 45 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf install --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-ba2f2a1515 \*` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-ba2f2a1515 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. |