Bug 273577 - textproc/py-sphinx: Switch to use flit-core as build system
Summary: textproc/py-sphinx: Switch to use flit-core as build system
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Yasuhiro Kimura
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-05 08:30 UTC by Yasuhiro Kimura
Modified: 2023-09-06 06:20 UTC (History)
0 users

See Also:
sunpoet: maintainer-feedback+


Attachments
Patch file (1.36 KB, patch)
2023-09-05 08:30 UTC, Yasuhiro Kimura
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yasuhiro Kimura freebsd_committer freebsd_triage 2023-09-05 08:30:23 UTC
Created attachment 244653 [details]
Patch file

In Sphinx-5.3.0/pyproject.toml build system is specified as following.

[build-system]
requires = ["flit_core>=3.7"]
build-backend = "flit_core.buildapi"

I confirmed build succeeds with devel/py-flit-core as BUILD_DEPENDS.
And it also reduces the number of packages that are required as build dependencies.
Comment 1 Po-Chuan Hsieh freebsd_committer freebsd_triage 2023-09-05 16:09:32 UTC
Thanks for the catch!
py-flit should not be used as BUILD_DEPENDS. And this port uses the correct one (py-flit-core).

I'm working on the fix for the ports using py-flit or py-poetry as BUILD_DEPENDS.
Comment 2 commit-hook freebsd_committer freebsd_triage 2023-09-06 06:18:46 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c404b33322488974e748f4fa85f1a99f2068f79d

commit c404b33322488974e748f4fa85f1a99f2068f79d
Author:     Yasuhiro Kimura <yasu@FreeBSD.org>
AuthorDate: 2023-09-05 08:22:30 +0000
Commit:     Yasuhiro Kimura <yasu@FreeBSD.org>
CommitDate: 2023-09-06 06:17:14 +0000

    textproc/py-sphinx: Switch to use flit-core as build system

    In Sphinx-5.3.0/pyproject.toml build system is specified as following.

    [build-system]
    requires = ["flit_core>=3.7"]
    build-backend = "flit_core.buildapi"

    I confirmed build succeeds with devel/py-flit-core as BUILD_DEPENDS.
    And it also reduces the number of packages that are required as build
    dependencies.

    PR:             273577
    Approved by:    sunpoet (python, maintainer)

 textproc/py-sphinx/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)