Bug 2050434

Summary: Review Request: python-accept-types - Determine the best content to send in an HTTP response
Product: [Fedora] Fedora Reporter: Paul Wouters <paul.wouters>
Component: Package ReviewAssignee: Roman Inflianskas <rominf>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: package-review, rominf
Target Milestone: ---Keywords: Reopened
Target Release: ---Flags: rominf: fedora-review+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-03-15 17:25:08 UTC 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: 201449    

Description Paul Wouters 2022-02-03 23:27:03 UTC
Spec URL: https://download.nohats.ca/python-accept-types/python-accept-types.spec
SRPM URL: https://download.nohats.ca/python-accept-types/python-accept-types-0.4.1-1.fc35.src.rpm
Description: accept-types - Use the correct accept type for a request accept-types helps
your application respond to a HTTP request in a way that a client prefers. The
Accept header of an HTTP request informs the server which MIME types the client
is expecting back from this request, with weighting to indicate the most
prefered. If your server can respond in multiple formats (e.g.: JSON, XML,
HTML)

Fedora Account System Username: pwouters

Comment 1 Paul Wouters 2022-02-07 23:27:41 UTC
Spec URL: https://download.nohats.ca/python-accept-types/python-accept-types.spec
SRPM URL: https://download.nohats.ca/python-accept-types/python-accept-types-0.4.1-2.fc35.src.rpm

Updated to use modern python macros and upstream test suite. Since the test suite is stripped from pypi, i had to switch to the bitbucket upstream, which required some ugly versioning
Now also runs test suite with tox

Comment 2 Roman Inflianskas 2022-02-09 07:21:08 UTC
Fixes required:

1. License is MIT, not BSD!

2. First line of the description is corrupted. Missing dot between "request" and "accept-types"?

3. https://download.nohats.ca/python-accept-types/python-accept-types-0.4.1-2.fc35.src.rpm — 404.


Suggestions:

1. Use macro for description:

```
%global _description %{expand:
...}

%description %_description

...

%description -n python3-... %_description
```

2. Reword summary:

"Determine the best content to send in an HTTP response"

"best" is vague, I think there should be something about Accept header.


Questions:

1. Is `BuildRequires:  python3-tox-current-env` necessary? I think it's installed automatically by `%pyproject_buildrequires -t`

Comment 3 Package Review 2022-03-12 00:45:24 UTC
This is an automatic action taken by review-stats script.

The ticket submitter failed to clear the NEEDINFO flag in a month.
As per https://fedoraproject.org/wiki/Policy_for_stalled_package_reviews
we consider this ticket as DEADREVIEW and proceed to close it.

Comment 4 Paul Wouters 2022-03-15 00:48:57 UTC
Spec URL: https://download.nohats.ca/python-accept-types/python-accept-types.spec
SRPM URL: https://download.nohats.ca/python-accept-types/python-accept-types-0.4.1-3.fc35.src.rpm


* Tue Mar 15 2022 Paul Wouters <paul.wouters> - 0.4.1-3
- Fix license, description and summary, cleanup BuildRequires:

Comment 5 Roman Inflianskas 2022-03-15 06:45:59 UTC
APPROVED

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

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



===== 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". 6 files have unknown license. Detailed output of
     licensecheck in /home/rominf/dev/fedora-scm/review/2050434-python-
     accept-types/licensecheck.txt
[-]: Package contains no bundled libraries without FPC exception.
[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.
[-]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
     Note: Documentation size is 10240 bytes in 1 files.
[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]: Package requires other packages for directories it uses.
[x]: Package must own all directories that it creates.
[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]: 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).
[x]: Package functions as described.
[x]: Latest version is packaged.
[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.
[-]: Description and summary sections in the package spec file contains
     translations for supported Non-English languages, if available.
[x]: Package should compile and build into binary rpms on all supported
     architectures.
[x]: %check is present and all tests pass.
[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-accept-types-0.4.1-3.fc37.noarch.rpm
          python-accept-types-0.4.1-3.fc37.src.rpm
python3-accept-types.noarch: W: spelling-error %description -l en_US prefered -> preferred, prefer ed, prefer-ed
python3-accept-types.noarch: W: spelling-error %description -l en_US json -> son, j son, soon
python-accept-types.src: W: spelling-error %description -l en_US prefered -> preferred, prefer ed, prefer-ed
python-accept-types.src: W: spelling-error %description -l en_US json -> son, j son, soon
2 packages and 0 specfiles checked; 0 errors, 4 warnings.




Rpmlint (installed packages)
----------------------------
Cannot parse rpmlint output:


Source checksums
----------------
https://bitbucket.org/tim_heap/python-accept-types/get/0.4.1.tar.gz :
  CHECKSUM(SHA256) this package     : a07313b2d2b4240ccdc88f82577807cf85063d53f7ddd9be00db43469e6f7fa7
  CHECKSUM(SHA256) upstream package : a07313b2d2b4240ccdc88f82577807cf85063d53f7ddd9be00db43469e6f7fa7


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



Provides
--------
python3-accept-types:
    python-accept-types
    python3-accept-types
    python3.10-accept-types
    python3.10dist(accept-types)
    python3dist(accept-types)



Generated by fedora-review 0.7.6 (b083f91) last change: 2020-11-10
Command line :/usr/bin/fedora-review -b 2050434
Buildroot used: fedora-rawhide-x86_64
Active plugins: Python, Shell-api, Generic
Disabled plugins: Java, Perl, PHP, C/C++, fonts, Ocaml, Haskell, SugarActivity, R
Disabled flags: EPEL6, EPEL7, DISTTAG, BATCH, EXARCH

Comment 6 Tomas Hrcka 2022-03-15 15:04:35 UTC
(fedscm-admin):  The Pagure repository was created at https://src.fedoraproject.org/rpms/python-accept-types

Comment 7 Fedora Update System 2022-03-15 17:22:42 UTC
FEDORA-2022-7159d0887b has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-7159d0887b

Comment 8 Fedora Update System 2022-03-15 17:25:08 UTC
FEDORA-2022-7159d0887b has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Fedora Update System 2022-03-21 12:18:34 UTC
FEDORA-2022-97cd3f0b35 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-97cd3f0b35

Comment 10 Fedora Update System 2022-03-21 12:28:01 UTC
FEDORA-2022-5fe86cd690 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2022-5fe86cd690

Comment 11 Fedora Update System 2022-03-21 12:36:02 UTC
FEDORA-2022-01f28dcff5 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2022-01f28dcff5

Comment 12 Fedora Update System 2022-03-21 15:50:10 UTC
FEDORA-2022-97cd3f0b35 has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf install --enablerepo=updates-testing --advisory=FEDORA-2022-97cd3f0b35 \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-97cd3f0b35

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 13 Fedora Update System 2022-03-22 04:14:02 UTC
FEDORA-2022-5fe86cd690 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf install --enablerepo=updates-testing --advisory=FEDORA-2022-5fe86cd690 \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-5fe86cd690

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 14 Fedora Update System 2022-03-22 04:30:34 UTC
FEDORA-2022-01f28dcff5 has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf install --enablerepo=updates-testing --advisory=FEDORA-2022-01f28dcff5 \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-01f28dcff5

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 15 Fedora Update System 2022-03-26 15:28:02 UTC
FEDORA-2022-97cd3f0b35 has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 16 Fedora Update System 2022-03-30 01:10:49 UTC
FEDORA-2022-01f28dcff5 has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 17 Fedora Update System 2022-03-30 01:28:10 UTC
FEDORA-2022-5fe86cd690 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.