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

            Bug ID: 2545828
           Summary: Review Request: python-pfzy - Python port of the fzy
                    fuzzy string matching algorithm
           Product: Fedora
           Version: rawhide
          Hardware: All
                OS: Linux
            Status: NEW
         Component: Package Review
          Severity: medium
          Priority: medium
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected]
  Target Milestone: ---
    Classification: Fedora



pec URL:   https://cverna.fedorapeople.org/rpms/python-pfzy/python-pfzy.spec
SRPM URL:  
https://cverna.fedorapeople.org/rpms/python-pfzy/python-pfzy-0.3.4-1.fc46.src.rpm
rpmlint:    https://cverna.fedorapeople.org/rpms/python-pfzy/rpmlint.txt
Source URL: https://github.com/kazhala/pfzy/archive/0.3.4/pfzy-0.3.4.tar.gz
            https://github.com/kazhala/pfzy

Fedora Account System Username: cverna

Package Name:    python-pfzy
Version:         0.3.4
Release:         1%{?dist}
License:         MIT
URL:             https://github.com/kazhala/pfzy
BuildArch:       noarch
Binary RPM:      python3-pfzy

Description:
Python port of the fzy fuzzy string matching algorithm.
It provides an asynchronous fuzzy match function, the fzy scoring algorithm
and a simple exact-match scorer, all of them returning the matched positions.

Why it is being packaged:
python-pfzy is a runtime dependency of python-inquirerpy, which in turn is a
runtime dependency of lola (https://github.com/LobsterTrap/lola). Neither
exists in Fedora today.

Source checksums (sha256):
4a36126e045da6471c53e9ea36424296307a1841bd828a41574d7a4aa58dbcea 
pfzy-0.3.4.tar.gz

The archive of the release tag is used rather than the PyPI sdist, as the
Python packaging guidelines ask ("Source files from PyPI"): the sdist omits
the test suite that the tag archive ships.

Build:
mock -r fedora-rawhide-aarch64 (aarch64), Fedora Rawhide (f46): builds clean.
%check runs upstream's pytest suite from tests/: 6 tests pass, two of them
async (hence BuildRequires: python3dist(pytest-asyncio)).

The suite is invoked as "%pytest tests" so that the --doctest-modules option
upstream sets in pyproject.toml does not collect the legacy setup.py at the
repository root.

The tag archive is used as Source precisely because it carries these tests,
which the PyPI sdist omits (Python packaging guidelines, "Source files from
PyPI").

rpmlint output (also attached, python-pfzy-rpmlint.txt):
  spec:    0 errors, 0 warnings
  srpm:    0 errors, 0 warnings
  binary:  0 errors, 0 warnings

Self-review against ReviewGuidelines.adoc:
- rpmlint: run on spec, srpm and binary rpm, output above.
- naming: python-* prefix for a library, source name is the canonical project
  name with the python- prefix (Python guidelines, "Library naming").
- spec file name matches %{name}: python-pfzy.spec.
- spec written in American English, summary <= 80 columns, no trailing period.
- license: MIT, matches the LICENSE file in the sdist; installed as %license
  through %pyproject_save_files -l (a missing license file fails the build).
- sources match upstream (sha256 above).
- builds successfully on aarch64.
- BuildRequires: python3-devel (plus pyproject-rpm-macros, setuptools/poetry
  backend pulled in by %pyproject_buildrequires).
- no locales, no bundled libraries, no shared libraries, no scriptlets.
- %files: %{pyproject_files} (modules, dist-info, license) plus %doc README.md;
  the package owns only directories under %{python3_sitelib}.
- man page: not applicable, the package ships no executables.


-- 
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=2545828

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

-- 
_______________________________________________
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