Bug 30736 - Update python-flit to allow building local python packages following PEP621
Summary: Update python-flit to allow building local python packages following PEP621
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 8
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA8-64-OK
Keywords: advisory, validated_update
Depends on: 30734
Blocks:
  Show dependency treegraph
 
Reported: 2022-08-11 13:13 CEST by Jani Välimaa
Modified: 2022-08-25 23:22 CEST (History)
4 users (show)

See Also:
Source RPM: python-flit-3.0.0-1.mga8
CVE:
Status comment:


Attachments

Description Jani Välimaa 2022-08-11 13:13:15 CEST
Sync mga8's python-flit with cauldron's python-flit 3.7.1 [1] to allow to build local packages using for example PEP 621 [2].

Some newer packages already have 'requires = ["flit_core >=3.2,<4"  in the [build-system] table in pyproject.toml file and thus the build fails using pyproject RPM macros. See also bug 30734, which is slightly related.

[1] https://flit.pypa.io/en/latest/history.html#version-3-7-1
[2] https://peps.python.org/pep-0621/
Jani Välimaa 2022-08-11 13:13:39 CEST

Depends on: (none) => 30734

Jani Välimaa 2022-08-11 13:17:15 CEST

Summary: Update python-flit to allow building local python packages followin PEP621 => Update python-flit to allow building local python packages following PEP621

Comment 1 Jani Välimaa 2022-08-11 14:01:17 CEST Comment hidden (obsolete)
Comment 2 Jani Välimaa 2022-08-11 14:06:26 CEST
python-flit itself depends directly or indirectly on python-tomli and python-tomli-w and they needs python-flit when building, so it's already kind of proofed that python-flit is working. A couple of build rounds was needed to bootstrap pkgs.

From python-tomli build.log:
+ /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /home/iurt/rpmbuild/BUILD/tomli-2.0.1/pyproject-wheeldir -r
Handling flit_core>=3.2.0,<4 from build-system.requires
Requirement satisfied: flit_core>=3.2.0,<4
   (installed: flit_core 3.7.1)

And from python-tomli-w build.log:
+ /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /home/iurt/rpmbuild/BUILD/tomli-w-0.4.0/pyproject-wheeldir
Handling flit_core>=3.2.0,<4 from build-system.requires
Requirement satisfied: flit_core>=3.2.0,<4
   (installed: flit_core 3.7.1)
Comment 3 Jani Välimaa 2022-08-11 14:35:17 CEST
SRPMS:
python-tomli-2.0.1-1.mga8
python-tomli-w-0.4.0-1.mga8
python-flit-3.7.1-1.mga8

RPMS:
python3-tomli-2.0.1-1.mga8
python3-tomli-w-0.4.0-1.mga8
python3-flit-3.7.1-1.mga8
python3-flit-core-3.7.1-1.mga8
Jani Välimaa 2022-08-11 15:06:20 CEST

Assignee: jani.valimaa => qa-bugs

Comment 4 Len Lawrence 2022-08-16 13:00:34 CEST
mga8, x64
Installed python3-flit* packages before updating but could not find python3-tomli*.  Fed the whole list to qarepo then tried MageiaUpdate.  No problem - all four packages listed for update.
$ rpm -qa | egrep "tomli|flit"
python3-flit-3.7.1-1.mga8
python3-tomli-w-0.4.0-1.mga8
python3-flit-core-3.7.1-1.mga8
python3-tomli-2.0.1-1.mga8

So, all installed OK.
No idea how to test this generally but it looks like it works fine according to Jani's comment 2.

CC: (none) => tarazed25
Whiteboard: (none) => MGA8-64-OK

Comment 5 Thomas Andrews 2022-08-17 14:36:34 CEST
Validating.

Keywords: (none) => validated_update
CC: (none) => andrewsfarm, sysadmin-bugs

Dave Hodgins 2022-08-20 03:12:26 CEST

Keywords: (none) => advisory
CC: (none) => davidwhodgins

Comment 6 Jani Välimaa 2022-08-24 15:36:08 CEST
Bug 30734 still blocks this update.
Comment 7 Mageia Robot 2022-08-25 23:22:32 CEST
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2022-0116.html

Resolution: (none) => FIXED
Status: NEW => RESOLVED


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