Skip to content

Commit

Permalink
change various install version for packages and loosen python version…
Browse files Browse the repository at this point in the history
… to >=3.7.1
  • Loading branch information
ThomasHepworth committed Sep 25, 2023
1 parent f94d771 commit b8e7190
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 11 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

!tests/
!splink/
!scripts/
!pyproject.toml
!poetry.lock
!README.md
Expand Down
32 changes: 21 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,29 @@ repository = "https://github.com/moj-analytical-services/splink"
readme = "README.md"

[tool.poetry.dependencies]
python = ">=3.8,<4.0.0"
python = ">=3.7.1,<4.0.0"
jsonschema = ">=3.2,<5.0"
pandas = ">=1.2.0"
# 1.3.5 is the last version supporting py 3.7.1
pandas = ">1.3.0"
duckdb = ">=0.8.0"
pyspark = {version="^3.2.1", optional=true}
awswrangler = {version=">=3.0.0,<4.0.0", optional=true}
psycopg2-binary = {version=">=2.8.0", optional=true}
# sqlalchemy >= 2.0.0 not working well with older pandas
sqlalchemy = ">=1.4.0,<2.0.0"
# normalize issue in sqlglot - temporarily exclude updates
sqlglot = ">=7.0.0,<11.4.2"
altair = "^5.0.1"
Jinja2 = ">=3.0.3"
phonetics = "^1.0.5"

# Optional installs
pyspark = {version="^3.2.1", optional=true}

awswrangler = [
{version = "2.18.0,<3.0.0", python = ">=3.7.1,<3.8", optional=true},
{version=">=3.0.0,<4.0.0", python = "^3.8", optional=true}
]

# sqlalchemy >= 2.0.0 not working well with older pandas
sqlalchemy = {version=">=1.4.0,<2.0.0", optional=true}
psycopg2-binary = {version=">=2.8.0", optional=true}

[tool.poetry.group.dev]
[tool.poetry.group.dev.dependencies]
tabulate = "0.8.9"
Expand All @@ -40,15 +48,16 @@ ruff = "0.0.257"

[tool.poetry.group.testing]
[tool.poetry.group.testing.dependencies]
pytest = "^7.0"
# pin to reduce dependencies
pytest = "7.3"
pyarrow = ">=7.0.0"
networkx = "2.5.1"
rapidfuzz = "^2.0.3"
rapidfuzz = "2.0.3"

[tool.poetry.group.benchmarking]
optional = true
[tool.poetry.group.benchmarking.dependencies]
pytest-benchmark = "^4"
pytest-benchmark = "4.0.0"
lzstring = "1.0.4"

[tool.poetry.group.demos]
Expand All @@ -58,7 +67,8 @@ jupyterlab = "3.6.1"
pyarrow = ">=7.0.0"
ipywidgets = "8.0.4"
nbmake = "1.3.4"
pytest = "^7.0"
# pin to reduce dependencies
pytest = "7.3"
pyspark = "^3.2.1"

[tool.poetry.extras]
Expand Down

0 comments on commit b8e7190

Please sign in to comment.