No description
  • Python 99.8%
  • C 0.1%
Find a file
2022-04-27 06:35:48 +02:00
.github CI (python matrix): Update to 3.10 (#265) 2022-02-05 21:07:24 +01:00
src/poetry/core fix: replace removed DependencyTypes type (#332) 2022-04-27 06:35:48 +02:00
tests factory: respect python/platform constraints 2022-04-26 23:33:02 +02:00
vendors vendors: fix jsonschema patch file 2022-02-08 18:38:16 -07:00
.flake8 Use flake8-type-checking (#317) 2022-04-03 21:26:53 -04:00
.gitattributes Add initial .gitattributes file 2020-08-27 09:49:57 +02:00
.gitignore Initial commit 2020-02-07 17:20:48 +01:00
.pre-commit-config.yaml [pre-commit.ci] pre-commit autoupdate 2022-04-12 18:48:39 +02:00
CHANGELOG.md bump to version 1.1.0a7 (#289) 2022-03-05 20:23:10 +01:00
LICENSE Initial commit 2020-02-07 17:20:48 +01:00
Makefile use src layout 2021-11-18 08:05:33 -07:00
poetry.lock tests: replace deprecated pep517 interface (#303) 2022-03-25 01:36:42 -06:00
pyproject.toml Misc typechecking (#331) 2022-04-26 21:44:56 -04:00
README.md Add initial README.md content 2020-08-16 09:31:44 +02:00
tox.ini tests: replace deprecated pep517 interface (#303) 2022-03-25 01:36:42 -06:00

Poetry Core

PyPI version Python Versions License: MIT Code style: black

A PEP 517 build backend implementation developed for Poetry. This project is intended to be a light weight, fully compliant, self-contained package allowing PEP 517 compatible build frontends to build Poetry managed projects.

Usage

In most cases, the usage of this package is transparent to the end-user as it is either made use by Poetry itself or a PEP 517 frontend (eg: pip).

In order to enable the use poetry-core as your build backend, the following snippet must be present in your project's pyproject.toml file.

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

Once this is present, a PEP 517 frontend like pip can build and install your project from source without the need for Poetry or any of it's dependencies.

# install to current environment
pip install /path/to/poetry/managed/project

# build a wheel package
pip wheel /path/to/poetry/managed/project

Why is this required?

Prior to the release of version 1.1.0, Poetry was a build as a project management tool that included a PEP 517 build backend. This was inefficient and time consuming in majority cases a PEP 517 build was required. For example, both pip and tox (with isolated builds) would install Poetry and all dependencies it required. Most of these dependencies are not required when the objective is to simply build either a source or binary distribution of your project.

In order to improve the above situation, poetry-core was created. Shared functionality pertaining to PEP 517 build backends, including reading lock file, pyproject.toml and building wheel/sdist, were implemented in this package. This makes PEP 517 builds extremely fast for Poetry managed packages.