Skip to content

Replace "poetry" dependency with "poetry-core" #2

@enpaul

Description

@enpaul

poetry-core is a project to produce a lighter weight version of core poetry functionality specifically to better support PEP-517 build systems.

However (based on reading the published goals as of the 1.0 RC1 release) I believe it will also contain all the functionality necessary for this plugin to function.

Using the poetry-core package instead of poetry would give this project two main advantages:

  1. By design the poetry-core dependencies are considerably lighter than those of poetry. This was done to speed up the creation of PEP-517 build environments, but here it would reduce the size of this project's dependency chain. Since this is supposed to be a minimalist, lightweight plugin that just bridges the functionality of Tox and Poetry it would be nice if it did not need to install a huge number of dependencies to function.
  2. The poetry-core package will provide the poetry.core module namespace and replace a decent amount of functionality currently in the main poetry module. This means, at minimum, this plugin will need to be updated to be compatible with Poetry 1.1.0+ (which will use poetry-core). However due to the design goals of poetry-core it will, by necessity, have a more stable API than some of the more esoteric elements of poetry that this plugin currently imports. Using poetry.core instead of poetry will reduce the likelihood of future updates to Poetry breaking this plugin.

I need to confirm what- if any- functionality of poetry that this plugin needs is not included in poetry-core and determine how to work around those limitations. At minimum I suspect some of the types that are currently imported will not be available, but I have not confirmed this yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or requestroadmap-stableRequired for stable status

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions