https://bugzilla.redhat.com/show_bug.cgi?id=2567271

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]



--- Comment #1 from [email protected] ---
Practice review -- this is part of my packager sponsorship process and is
NOT an official review. I am not setting the fedora-review flag.

No blockers found.

Notes:
- fedora-review flagged "Spec file according to URL is not the same as
  in SRPM"; the full diff is only rpmautospec output (%autorelease
  definition and the expanded %autochangelog entry), so I marked it as a
  pass.
- Source0 uses the GitHub tag archive rather than PyPI; the spec comment
  explains the PyPI sdist lacks the tests (upstream #44), which seems
  justified. Checksum matches upstream.
- tests/integrations/i_unittest.py is excluded in %prep with a link to
  upstream #45 -- good that it is documented.
- Upstream publishes no release signatures (no release assets, no .asc/.sig
  files), so gpgverify does not apply.
- docs/assets/icon_attribution notes a CC-BY-SA-3.0 icon in the upstream
  tree; it is not installed, so it does not affect the License field.
- Question (not a blocker): chainmock/_pytest_plugin.py does "import
  pytest" and is registered as a pytest11 plugin, but the package does not
  Require python3-pytest. Since the plugin is only loaded by a running
  pytest, and the core API works without it, this seems fine -- would a
  Recommends/Suggests on pytest be worth adding?


Package Review
==============

Legend:
[x] = Pass, [!] = Fail, [-] = Not applicable, [?] = Not evaluated


===== 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: License: MIT matches upstream LICENSE ("Copyright (c) 2021 Olli
     Paakkunainen") and pyproject.toml. licensecheck reports 56 files with
     no detectable license text (including the src/ library modules, which
     carry no per-file headers). A grep of the full source for license /
     copyright / SPDX markers finds only MIT, except
     docs/assets/icon_attribution (a CC-BY-SA-3.0 docs icon). That file is
     not shipped in the binary RPM, so License: MIT is correct for what is
     packaged.
[x]: Package must own all directories that it creates.
     Note: fedora-review flagged /usr/lib/python3.15 and
     /usr/lib/python3.15/site-packages as "without known owners". These
     are not created by this package: on rawhide both are owned by
     python3-libs (dnf repoquery --file). python3-chainmock requires
     python(abi) = 3.15, which is provided by python3, and python3 pulls
     in python3-libs, so the directories always exist when this package is
     installed. The package itself owns only its own directories:
     site-packages/chainmock/ (+ __pycache__), chainmock-2.0.0.dist-info/
     (+ licenses/) and /usr/share/doc/python3-chainmock (rpm -qlp).
[x]: Package contains no bundled libraries or specifies bundled libraries
     with Provides: bundled(<libname>) if unbundling is not possible.
[x]: Changelog in prescribed format.
     Note: Uses %autochangelog.
[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.
     Note: python-chainmock -> python3-chainmock.
[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.
     Note: Only python(abi) = 3.15 (auto-generated). Upstream declares no
     runtime dependencies. The module chainmock/_pytest_plugin.py imports
     pytest, but it is only loaded via the pytest11 entry point when pytest
     is already running, so not requiring pytest looks reasonable; see the
     question in the summary.
[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.
     Note: BuildArch: noarch.
[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 the Rpmlint section below).
[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 9098 bytes in 2 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.
     Note: %pyproject_wheel runs pip with --no-deps --no-index, and mock
     builds with rpmbuild_networking=False (private network namespace).
[x]: A package which is used by another package via an egg interface should
     provide egg info.
     Note: Ships chainmock-2.0.0.dist-info.
[x]: Package meets the Packaging Guidelines::Python
     Note: Uses pyproject-rpm-macros (%generate_buildrequires,
     %pyproject_wheel, %pyproject_install, %pyproject_save_files -l).
[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

Additional ReviewGuidelines items not printed by fedora-review:
[x]: All build dependencies are listed in BuildRequires.
     Note: Generated via %generate_buildrequires (%pyproject_buildrequires
     -e pytest-latest); mock build without network succeeds.
[-]: Locales handled with %find_lang (no locale files).
[-]: Static libraries in -static / no .la archives (pure Python).
[-]: -devel requires base package with full version (no -devel).
[-]: Shared libraries provide versioned symbols (no shared libraries).
[-]: Scriptlets are sane (no scriptlets).
[-]: Man pages for binaries/scripts (installs no binaries or scripts).

===== 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.
     Note: Upstream ships LICENSE.
[x]: Final provides and requires are sane (see the Requires and Provides
     sections below).
[x]: Package functions as described.
     Note: Not exercised manually; evidence is the upstream suite run in
     %check (263 pytest tests + doctests) against the built module.
[x]: Latest version is packaged.
     Note: 2.0.0 is the latest on PyPI and GitHub.
[x]: Package does not include license text files separate from upstream.
[-]: Sources are verified with gpgverify first in %prep if upstream
     publishes signatures.
     Note: The v2.0.0 GitHub release has no assets and the tag tarball
     contains no .asc/.sig files.
[x]: Package should compile and build into binary rpms on all supported
     architectures.
     Note: noarch.
[x]: %check is present and all tests pass.
     Note: %tox: 263 passed; doctests 398 run, 0 failed.
[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]: Spec file according to URL is the same as in SRPM.
     Note: fedora-review reported a mismatch, but the full diff contains
     only rpmautospec output added when the SRPM was built: the
     %autorelease definition, and %autochangelog expanded into a generated
     changelog entry. No hand-written line differs, so the SRPM was built
     from the posted spec.
[x]: Rpmlint is run on all installed packages.
     Note: There are rpmlint messages (see the Rpmlint section below).


Rpmlint
-------
Checking: python3-chainmock-2.0.0-1.fc46.noarch.rpm
          python-chainmock-2.0.0-1.fc46.src.rpm

python-chainmock.src: E: spelling-error ('pytest', 'Summary(en_US) pytest ->
testes')
python-chainmock.src: E: spelling-error ('pytest', '%description -l en_US
pytest -> testes')
python3-chainmock.noarch: E: spelling-error ('pytest', 'Summary(en_US) pytest
-> testes')
python3-chainmock.noarch: E: spelling-error ('pytest', '%description -l en_US
pytest -> testes')
 2 packages and 0 specfiles checked; 4 errors, 0 warnings, 7 filtered, 4
badness

Only spelling false positives for "pytest".


Requires
--------
python3-chainmock (rpmlib, GLIBC filtered):
    python(abi)


Provides
--------
python3-chainmock:
    python-chainmock
    python3-chainmock
    python3.15-chainmock
    python3.15dist(chainmock)
    python3dist(chainmock)


Source checksums
----------------
https://github.com/ollipa/chainmock/archive/v2.0.0/chainmock-v2.0.0.tar.gz :
  CHECKSUM(SHA256) this package     :
53c9646d1c17c6dda52dcee2f3b159539873b8d77398e3ad3f7516c6f004090e
  CHECKSUM(SHA256) upstream package :
53c9646d1c17c6dda52dcee2f3b159539873b8d77398e3ad3f7516c6f004090e


Generated by fedora-review, completed manually as a practice review.
Command line: fedora-review -b 2567271
Buildroot used: fedora-rawhide-x86_64
Active plugins: Python, Generic, Shell-api


-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
https://bugzilla.redhat.com/show_bug.cgi?id=2567271

Report this comment as SPAM: 
https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202567271%23c1

-- 
_______________________________________________
package-review mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://forge.fedoraproject.org/infra/tickets/issues/new

Reply via email to