From 870e7d81d7dd66afca28b84b899d15f88d9705f0 Mon Sep 17 00:00:00 2001 From: fleimgruber Date: Tue, 3 May 2022 14:31:50 +0200 Subject: [PATCH] build: add poetry tooling --- pyproject.toml | 56 +++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 53 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 520c5a652..c946e50c8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,53 @@ -[tool.pyright] -include = [ "pandera", "tests" ] -exclude = [".nox/**", ".nox-*/**"] +[tool.pyright] +include = [ "pandera", "tests" ] +exclude = [".nox/**", ".nox-*/**"] + +[tool.poetry] +name = "pandera" +version = "0.11.0" +description = "A light-weight and flexible data validation and testing tool for dataframes." +authors = ["Niels Bantilan "] + +[tool.poetry.dependencies] +python = "^3.8" +pandas = "^1.4.1" +pydantic = "^1.9.0" +wrapt = "^1.14.1" +pyarrow = "^7.0.0" +typing-inspect = "^0.7.1" + +scipy = { version = "*", optional = true } +frictionless = { version = "*", optional = true } +pyspark = { version = "*", optional = true } +dask = { version = "*", optional = true } +modin = { version = "^0.13.3", optional = true } +ray = { version = "<=1.7.0", optional = true } +pandas-stubs = { version = "*", optional = true } +fastapi = { version = "*", optional = true } +shapely = { version = "*", optional = true } +geopandas = { version = "^0.10.1", optional = true } + +[tool.poetry.dev-dependencies] +pytest = "^7.1.2" +Sphinx = "^4.5.0" +hypothesis = "^6.46.1" +PyYAML = "^6.0" +mypy = "^0.950" +types-PyYAML = "^6.0.7" +pre-commit = "^2.18.1" + +[tool.poetry.extras] +hypotheses = ["scipy"] +io = ["frictionless"] +pyspark = ["pyspark"] +modin = ["modin", "ray", "dask"] +modin-ray = ["modin", "ray"] +modin-dask = ["modin", "dask"] +dask = ["dask"] +mypy = ["pandas-stubs"] +fastapi = ["fastapi"] +geopandas = ["geopandas", "shapely"] + +[build-system] +requires = ["poetry-core>=1.0.0"] +build-backend = "poetry.core.masonry.api"