Fedora Account System
Red Hat Associate
Red Hat Customer
Spec URL: https://miroslav.suchy.cz/fedora/python-google-genai.spec SRPM URL: https://miroslav.suchy.cz/fedora/python-genai-prices-0.2.3-1.fc45.src.rpm Description: Calculate prices for calling LLM inference APIs. Fedora Account System Username: msuchy
Remove this line from spec: # Fill in the actual package description to submit package to Fedora
Updated. Spec URL: https://miroslav.suchy.cz/fedora/python-google-genai.spec SRPM URL: https://miroslav.suchy.cz/fedora/python-genai-prices-0.2.3-1.fc45.src.rpm
Hmm, a bit confused by versions, upstream is at 3.3.0, spec file has 1.56.0, while SRPMS is at 0.2.3?
The link to spec file was incorrect. The correct one: Spec URL: https://miroslav.suchy.cz/fedora/python-genai-prices.spec SRPM URL: https://miroslav.suchy.cz/fedora/python-genai-prices-0.2.3-1.fc45.src.rpm This should make it 0.2.3 everywhere. Including upstream.
Package Review ============== Legend: [x] = Pass, [!] = Fail, [-] = Not applicable, [?] = Not evaluated ===== Issues ===== - Since the genai-prices entry point doesn’t work without the cli extra, consider packaging it in python3-genai-prices+cli. Since the expansion of %pyproject_extras_subpkg -n python3-genai-prices cli ends with the %files section for the metapackage, one way to do this is just by writing %pyproject_extras_subpkg -n python3-genai-prices cli %{_bindir}/genai-prices If you don’t want to do this (because you find it too non-obvious, or because you want to customize the summary and description), then the alternative would be to form the python3-genai-prices+cli package manually. For an example of this, see: https://src.fedoraproject.org/rpms/python-keyring/blob/rawhide/f/python-keyring.spec#_69 https://src.fedoraproject.org/rpms/python-keyring/blob/rawhide/f/python-keyring.spec#_142 - Can you investigate and comment briefly on whether it’s possible to run a significant subset of the tests in the upstream git repository under tests/ ? I can see that some of these are likely to require network access, but it would be nice if we could run some of the tests, even if this means switching to packaging from the GitHub archive. https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_source_files_from_pypi - Version 0.2.4 is available; please update. ===== Notes (no change required for approval) ===== - You don’t need the explicit BuildRequires on python3-devel when you are using %pyproject_buildrequires, either explicitly or implicitly via the pyproject declarative buildsystem. Leaving it in is neither wrong nor harmful. - The “data” modules (genai_prices/data.py, genai_prices/data_units.py) walk a fine line. If we consider these generated code, then per https://docs.fedoraproject.org/pt_PT/packaging-guidelines/what-can-be-packaged/#pregenerated-code we would need to package from the GitHub archive because “It is required that the original source files from which the code was generated be included in the source package.” However, I think there is a fair case to be made that these files are not “code” at all, but simply structured data. They are formulated in terms of Python data structures since this is simple and efficient, but could have just as easily been JSON. Under this interpretation, I think packaing from the sdist is OK. The rust-icu_*_data packages rely on a similar interpretation, e.g. https://src.fedoraproject.org/rpms/rust-icu_locale_data/blob/rawhide/f/rust2rpm.toml. - You may, if you prefer, use long options for pyproject macros: BuildOption(install): --assert-license genai_prices BuildOption(generate_buildrequires): --extras cli %pyproject_extras_subpkg --name python3-genai-prices cli ===== MUST items ===== 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. [x]: License field in the package spec file matches the actual license. Note: Checking patched sources after %prep for licenses. Licenses found: "Unknown or generated", "MIT License", "*No copyright* MIT License". 14 files have unknown license. Detailed output of licensecheck in /home/ben/fedora/review/2571872-python-genai- prices/licensecheck.txt [x]: License file installed when any subpackage combination is installed. [x]: Package must own all directories that it creates. Note: Directories without known owners: /usr/lib/python3.15/site- packages, /usr/lib/python3.15 OK: spurious diagnostic. Owned by python3-libs. [x]: Package contains no bundled libraries or specifies bundled libraries with Provides: bundled(<libname>) if unbundling is not possible. [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 [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]: Package is not known to require an ExcludeArch tag. [x]: Package complies to the Packaging Guidelines [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 requires other packages for directories it uses. [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 0 bytes in 0 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]: Package contains BR: python2-devel or python3-devel [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: [-]: 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-genai-prices , python3-genai-prices+cli [?]: Package functions as described. [!]: Latest version is packaged. Version 0.2.4 is available; please update. [x]: Package does not include license text files separate from upstream. [-]: Sources are verified with gpgverify first in %prep if upstream publishes signatures. Note: gpgverify is not used. [?]: Package should compile and build into binary rpms on all supported architectures. This isn’t the sort of package that is likely to have architecture-dependent build failures, although it’s always possible. [-]: %check is present and all tests pass. Only an import “smoke test” is used. Please investigate whether we can run a substantial portion of the upstream test suite. [x]: Packages should try to preserve timestamps of original installed files. [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]: Spec use %global instead of %define unless justified. ===== EXTRA items ===== Generic: [x]: Rpmlint is run on all installed packages. Note: There are rpmlint messages (see attachment). [x]: Spec file according to URL is the same as in SRPM. Rpmlint ------- Checking: python3-genai-prices-0.2.3-1.fc46.noarch.rpm python3-genai-prices+cli-0.2.3-1.fc46.noarch.rpm python-genai-prices-0.2.3-1.fc46.src.rpm ============================ rpmlint session starts ============================ rpmlint: 2.9.0 configuration: /usr/lib/python3.15/site-packages/rpmlint/configdefaults.toml /etc/xdg/rpmlint/fedora-spdx-licenses.toml /etc/xdg/rpmlint/fedora.toml /etc/xdg/rpmlint/scoring.toml /etc/xdg/rpmlint/users-groups.toml /etc/xdg/rpmlint/warn-on-functions.toml rpmlintrc: [PosixPath('/tmp/tmpsfagomsz')] checks: 32, packages: 3 python3-genai-prices.noarch: W: no-manual-page-for-binary genai-prices python3-genai-prices.noarch: W: no-documentation 3 packages and 0 specfiles checked; 0 errors, 2 warnings, 16 filtered, 0 badness; has taken 0.4 s Rpmlint (installed packages) ---------------------------- ============================ rpmlint session starts ============================ rpmlint: 2.10.0 configuration: /usr/lib/python3.15/site-packages/rpmlint/configdefaults.toml /etc/xdg/rpmlint/fedora-spdx-licenses.toml /etc/xdg/rpmlint/fedora.toml /etc/xdg/rpmlint/scoring.toml /etc/xdg/rpmlint/users-groups.toml /etc/xdg/rpmlint/warn-on-functions.toml checks: 33, packages: 2 python3-genai-prices.noarch: W: no-manual-page-for-binary genai-prices python3-genai-prices.noarch: W: no-documentation 2 packages and 0 specfiles checked; 0 errors, 2 warnings, 12 filtered, 0 badness; has taken 0.1 s Source checksums ---------------- https://files.pythonhosted.org/packages/source/g/genai_prices/genai_prices-0.2.3.tar.gz : CHECKSUM(SHA256) this package : cdee9b0b2e44b1323c477ebe3c84e44ddbcdd1a3feb0ebce5bb2af1bc667d900 CHECKSUM(SHA256) upstream package : cdee9b0b2e44b1323c477ebe3c84e44ddbcdd1a3feb0ebce5bb2af1bc667d900 Requires -------- python3-genai-prices (rpmlib, GLIBC filtered): (python3.15dist(pydantic) >= 2.10 with python3.15dist(pydantic) >= 2.14) /usr/bin/python3 python(abi) python3.15dist(httpx2) python3-genai-prices+cli (rpmlib, GLIBC filtered): python(abi) python3-genai-prices python3.15dist(pydantic-settings) python3.15dist(rich) python3.15dist(rich-argparse) Provides -------- python3-genai-prices: python-genai-prices python3-genai-prices python3.15-genai-prices python3.15dist(genai-prices) python3dist(genai-prices) python3-genai-prices+cli: python-genai-prices+cli python3-genai-prices+cli python3.15-genai-prices+cli python3.15dist(genai-prices[cli]) python3dist(genai-prices[cli]) Generated by fedora-review 0.12.0 (a08f0fc) last change: 2026-09-18 Command line :/usr/bin/fedora-review -b 2571872 Buildroot used: fedora-rawhide-x86_64 Active plugins: Generic, Shell-api, Python Disabled plugins: Perl, Java, SugarActivity, Ocaml, C/C++, fonts, R, Haskell, PHP Disabled flags: EXARCH, EPEL6, EPEL7, DISTTAG, BATCH, UNRETIREMENT
> consider packaging it in python3-genai-prices+cli. ??? It was already there. And it is there now. I addressed all other feedback. But the move to the upstream tarball forced me to rewrite most of the pyproject buildsystem :( At the end, I still think that it is worthy. So here it is: Spec URL: https://miroslav.suchy.cz/fedora/python-genai-prices.spec SRPM URL: https://miroslav.suchy.cz/fedora/python-genai-prices-0.2.4-1.fc45.src.rpm