Bug 1877318 - *.dist-info/RECORD should be removed
Summary: *.dist-info/RECORD should be removed
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: pyproject-rpm-macros
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lumír Balhar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1755955 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-09-09 11:46 UTC by Petr Viktorin (pviktori)
Modified: 2020-10-09 16:27 UTC (History)
4 users (show)

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:
Clone Of:
Environment:
Last Closed: 2020-10-05 16:34:32 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.