Skip to content

Lightweight core library #1993

Closed
Closed

Description

@sdispater

Currently, to build a Poetry project via the PEP-517 build mechanism, you need this section:

[build-system]
requires = ["poetry>=1.0.3"]
build-backend = "poetry.masonry.api"

This works but this has the undesirable side-effect of pulling the full Poetry stack and its dependencies. Most of them are not needed to build the project and expose the metadata.

To prevent that, we need to extract parts of the Poetry stack into a more lightweight library with the sole purpose of building projects.

Ideally, this core library should not have any dependency to avoid errors to to circular build dependencies when using pip install --no-binary :all:.

Activity

  1. added this to the 1.1 milestone on Feb 7, 2020
  2. self-assigned this
    on Feb 7, 2020
  3. pradyunsg commented on Mar 2, 2020

    @pradyunsg
    Contributor

    Just to be sure, this core would be analogous to flit_core, correct?

  4. sdispater commented on Mar 20, 2020

    @sdispater
    MemberAuthor

    @pradyunsg Yes, the idea is to not require the full Poetry stack just to build projects.

    And it will help fix the issue with pip when there are cyclic dependencies between the build backend and its own dependencies.

  5. ulgens commented on Apr 30, 2020

    @ulgens

    @sdispater Isn't this resolved by #2212 ? Not sure why this one is not automatically closed. Also, we can mark it as done on #1856 .

  6. github-actions commented on Mar 3, 2024

    @github-actions

    This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  7. locked as resolved and limited conversation to collaborators on Mar 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/build-systemRelated to PEP 517 packaging (see poetry-core)kind/featureFeature requests/implementations

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions