Bug 1877318

Summary: *.dist-info/RECORD should be removed
Product: [Fedora] Fedora Reporter: Petr Viktorin (pviktori) <pviktori>
Component: pyproject-rpm-macrosAssignee: Lumír Balhar <lbalhar>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: mhroncok, pkopkan, pviktori, python-sig
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pyproject-rpm-macros-0-30.fc33 pyproject-rpm-macros-0-30.fc32 pyproject-rpm-macros-0-30.fc31 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-05 16:34:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Petr Viktorin (pviktori) 2020-09-09 11:46:40 UTC
Per the newly accepted [PEP 627], we should remove the RECORD file from dist-info, and thus signal that Python tools like pip should keep their hands off RPM-installed projects.

The complication is that we need information from RECORD in %pyproject_save_files.

This will probably be easier if %pyproject_install is ported from shell to Python.


%pyproject_install should:
- as before: install wheel, find the dist-info, switch INSTALLER, generate the ghost file, ...
- classify files (the way %pyproject_save_files does now) and save the result in a well-known location (like for %pyproject_ghost_distinfo)
- delete RECORD

%pyproject_save_files should then use the previously saved info

Comment 1 Petr Viktorin (pviktori) 2020-09-09 11:47:34 UTC
*** Bug 1755955 has been marked as a duplicate of this bug. ***

Comment 2 Lumír Balhar 2020-09-15 07:12:16 UTC
First possible minimal solution: https://src.fedoraproject.org/rpms/pyproject-rpm-macros/pull-request/109

I'm gonna try to rewrite the whole macro to Python.

Comment 3 Fedora Update System 2020-10-01 15:58:23 UTC
FEDORA-2020-20741bd099 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2020-20741bd099

Comment 4 Fedora Update System 2020-10-01 15:58:24 UTC
FEDORA-2020-7d84d3ea99 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-7d84d3ea99

Comment 5 Fedora Update System 2020-10-02 01:48:14 UTC
FEDORA-2020-20741bd099 has been pushed to the Fedora 33 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-20741bd099`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-20741bd099

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

Comment 6 Fedora Update System 2020-10-02 01:53:28 UTC
FEDORA-2020-6b747c26e1 has been pushed to the Fedora 31 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-6b747c26e1`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-6b747c26e1

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

Comment 7 Fedora Update System 2020-10-02 02:10:53 UTC
FEDORA-2020-7d84d3ea99 has been pushed to the Fedora 32 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-7d84d3ea99`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-7d84d3ea99

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

Comment 8 Fedora Update System 2020-10-05 16:34:32 UTC
FEDORA-2020-20741bd099 has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Fedora Update System 2020-10-09 16:13:49 UTC
FEDORA-2020-7d84d3ea99 has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Fedora Update System 2020-10-09 16:27:55 UTC
FEDORA-2020-6b747c26e1 has been pushed to the Fedora 31 stable repository.
If problem still persists, please make note of it in this bug report.