migra/pyproject.toml
Tad Lispy 74a43be2c5
Add build-system section to pyproject.toml (PEP-517) (#176)
According to this document <https://python-poetry.org/docs/pyproject/#poetry-and-pep-517> a `build-system` section is required in `pyproject.toml` file.

Lack of this section is part of the trouble discussed here: <https://discourse.nixos.org/t/preparing-a-nix-flake-for-a-python-program-migra-using-poetry/12030/1>
2021-03-22 09:38:14 +11:00

44 lines
1021 B
TOML

[tool.poetry]
name = "migra"
version = "3.0"
authors = [ "Robert Lechte <robertlechte@gmail.com>",]
license = "Unlicense"
readme = "README.md"
description = "Like `diff` but for PostgreSQL schemas"
repository = "https://github.com/djrobstep/migra"
homepage = "https://databaseci.com/docs/migra"
[tool.poetry.dependencies]
python = ">=3.6,<4"
sqlbag = "*"
six = "*"
# schemainspect = {path="../schemainspect"}
schemainspect = ">=3"
psycopg2-binary = { version="*", optional = true }
[tool.poetry.dev-dependencies]
sqlbag = "*"
pytest = {version="*", python=">=3.5,<4"}
pytest-cov = "*"
pytest-clarity = {version=">=0.3.0-alpha.0", python=">=3.5,<4"}
psycopg2-binary = "*"
flake8 = "*"
isort = "*"
black = { version = ">=19.10b0", python=">=3.6" }
[tool.poetry.scripts]
migra = 'migra:do_command'
[tool.poetry.extras]
pg = ["psycopg2-binary"]
[tool.isort]
multi_line_output = 3
include_trailing_comma = true
line_length = 88
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"