-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: switch from poetry to uv (#2324)
* feat: switch from poetry to uv Signed-off-by: Luka Peschke <[email protected]> * refactor: uv version as env var Signed-off-by: Luka Peschke <[email protected]> --------- Signed-off-by: Luka Peschke <[email protected]>
- Loading branch information
1 parent
962e8de
commit 49014f8
Showing
8 changed files
with
2,322 additions
and
3,788 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
version: 2 | ||
updates: | ||
# poetry | ||
# uv | ||
- package-ecosystem: "pip" | ||
directory: "/server" | ||
schedule: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
[build-system] | ||
requires = ["poetry-core>=1.0.0"] | ||
build-backend = "poetry.core.masonry.api" | ||
|
||
[tool.poetry] | ||
[project] | ||
authors = [{ name = "Toucan Toco", email = "[email protected]" }] | ||
license = { text = "BSD-3-Clause" } | ||
requires-python = "<3.13,>=3.11" | ||
name = "weaverbird" | ||
version = "0.48.7" | ||
description = "A visual data pipeline builder with various backends" | ||
authors = ["Toucan Toco <[email protected]>"] | ||
keywords = [ | ||
"builder", | ||
"data", | ||
|
@@ -17,83 +15,61 @@ keywords = [ | |
"query", | ||
"sql", | ||
] | ||
license = "BSD-3-Clause" | ||
readme = "README.md" | ||
|
||
[tool.poetry.dependencies] | ||
python = ">=3.11, <3.13" | ||
pydantic = "^2.4.2" | ||
dependencies = ["pydantic<3.0.0,>=2.4.2", "python-dateutil<3.0.0,>=2.8.2"] | ||
|
||
[tool.uv] | ||
package = true | ||
|
||
# Dependencies for extras | ||
## Pandas | ||
[project.optional-dependencies] | ||
pandas = [ | ||
{ version = "^1.2.5", optional = true, python = "<3.12" }, | ||
{ version = "^2", optional = true, python = ">=3.12" }, | ||
"numpy<2.0.0,>=1.2.5; python_version < \"3.12\"", | ||
"numpy>=2,<3; python_version >= \"3.12\"", | ||
"pandas<2.0.0,>=1.2.5; python_version < \"3.12\"", | ||
"pandas<3,>=2; python_version >= \"3.12\"", | ||
"geopandas<2", | ||
] | ||
geopandas = { version = "<2", optional = true } | ||
## PyPika | ||
PyPika = { version = "^0.48.9", optional = true } | ||
## Playground | ||
quart = { version = ">=0.17,<0.21", optional = true } | ||
Quart-CORS = { version = ">=0.5,<0.8", optional = true } | ||
hypercorn = { version = ">=0.13,<0.18", optional = true } | ||
pymongo = { version = ">=4.2.0", optional = true, extras = ["srv", "tls"] } | ||
psycopg = { optional = true, version = "^3.0.15" } | ||
toucan-connectors = { version = "^6.3.0", optional = true, extras = [ | ||
"awsathena", | ||
"google_big_query", | ||
"mongo", | ||
"mysql", | ||
"Redshift", | ||
"snowflake", | ||
] } | ||
python-dateutil = "^2.8.2" | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
pytest-cov = ">=4.1,<7.0" | ||
pytest-mock = "^3.11.1" | ||
pytest-asyncio = ">=0.21,<0.26" | ||
# required so we can use nosql_apply_parameters_to_query during tests | ||
toucan-connectors = { version = "^6.3.0", extras = [ | ||
"awsathena", | ||
"google_big_query", | ||
"mongo", | ||
"mysql", | ||
"Redshift", | ||
"snowflake", | ||
] } | ||
pytest-benchmark = ">=4,<6" | ||
snowflake-sqlalchemy = "^1.6.1" | ||
types-python-dateutil = "^2.8.19" | ||
pytest = ">=7.4.1,<9.0.0" | ||
pytest-xdist = ">=2.5,<4.0" | ||
mypy = ">=0.990,<2" | ||
docker = ">=6.1.3,<8.0.0" | ||
sqlalchemy = "^2" | ||
pymysql = "^1.1.0" | ||
psycopg2 = "^2.9.7" | ||
pymongo = ">=4.2.0" | ||
PyYAML = "^6.0" | ||
redshift-connector = "^2.1.3" | ||
ruff = ">=0.5.0,<0.10" | ||
pre-commit = ">=3.4,<5.0" | ||
tenacity = ">=8.4.2,<10.0.0" | ||
|
||
[tool.poetry.extras] | ||
# Lib | ||
pandas = ["pandas", "geopandas"] | ||
pypika = ["pypika"] | ||
all = ["pandas", "geopandas", "pypika"] | ||
# playground | ||
playground = [ | ||
"hypercorn", | ||
"pandas", | ||
"psycopg", | ||
"pymongo", | ||
"quart", | ||
"Quart-CORS", | ||
"toucan-connectors", | ||
"quart<0.21,>=0.17", | ||
"Quart-CORS<0.8,>=0.5", | ||
"hypercorn<0.18,>=0.13", | ||
"pymongo>=4.2.0", | ||
"psycopg<4.0.0,>=3.0.15", | ||
"toucan-connectors[Redshift,awsathena,google_big_query,mongo,mysql,snowflake]<7.0.0,>=6.3.0", | ||
] | ||
pypika = ["pypika>=0.48.9"] | ||
all = [ | ||
"pandas<2.0.0,>=1.2.5; python_version < \"3.12\"", | ||
"pandas<3,>=2; python_version >= \"3.12\"", | ||
"geopandas<2", | ||
"pypika>=0.48.9", | ||
] | ||
|
||
[dependency-groups] | ||
dev = [ | ||
"pytest-cov<7.0,>=4.1", | ||
"pytest-mock<4.0.0,>=3.11.1", | ||
"pytest-asyncio<0.26,>=0.21", | ||
"toucan-connectors[Redshift,awsathena,google_big_query,mongo,mysql,snowflake]<7.0.0,>=6.3.0", | ||
"pytest-benchmark<6,>=4", | ||
"snowflake-sqlalchemy<2.0.0,>=1.6.1", | ||
"types-python-dateutil<3.0.0,>=2.8.19", | ||
"pytest<9.0.0,>=7.4.1", | ||
"pytest-xdist<4.0,>=2.5", | ||
"mypy<2,>=0.990", | ||
"docker<8.0.0,>=6.1.3", | ||
"sqlalchemy<3,>=2", | ||
"pymysql<2.0.0,>=1.1.0", | ||
"psycopg2<3.0.0,>=2.9.7", | ||
"pymongo>=4.2.0", | ||
"PyYAML<7.0,>=6.0", | ||
"redshift-connector<3.0.0,>=2.1.3", | ||
"ruff<0.10,>=0.5.0", | ||
"pre-commit<5.0,>=3.4", | ||
"tenacity<10.0.0,>=8.4.2", | ||
] | ||
|
||
|
||
[tool.mypy] | ||
files = "src/" | ||
|
Oops, something went wrong.