From cd9a15b7f3be29320327f47a4aadd99e043abd42 Mon Sep 17 00:00:00 2001 From: tlento Date: Thu, 15 Feb 2024 12:39:40 -0800 Subject: [PATCH] Move from ~= to >=,< in python dependencies Due to certain vagaries of how pip resolves ~= dependency listings, we are moving to a consistent >=,< approach instead of the ~= syntax. This commit makes the change across the dbt-semantic-interfaces pyproject.toml in preparation for updating some other dependency versions. --- pyproject.toml | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index fbf6877e..a468b3dd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,14 +23,14 @@ classifiers = [ ] dependencies = [ "pydantic>=1.10,<3", - "jsonschema~=4.0", - "PyYAML~=6.0", + "jsonschema>=4.0,<5", + "PyYAML>=6.0,<7", "more-itertools>=8.0,<11.0", - "Jinja2~=3.0", + "Jinja2>=3.0,<4", "click>=7.0,<9.0", - "python-dateutil~=2.0", - "importlib_metadata~=6.0", - "typing-extensions~=4.4", + "python-dateutil>=2.0,<3", + "importlib_metadata>=6.0,<7", + "typing-extensions>=4.4,<5", ] [build-system] @@ -58,20 +58,20 @@ all = ["pre-commit run --all-files"] [tool.hatch.envs.dev-env] description = "Env for running development commands like pytest / pre-commit" dependencies = [ - "pytest~=7.3", - "pytest-xdist~=3.2", - "httpx~=0.24", - "hypothesis~=6.87", - "pre-commit~=3.2", - "isort~=5.12", - "black~=23.3", + "pytest>=7.3,<8", + "pytest-xdist>=3.2,<4", + "httpx>=0.24,<0.25", + "hypothesis>=6.87,<7", + "pre-commit>=3.2,<4", + "isort>=5.12,<6", + "black>=23.3,<24", "ruff==0.0.260", - "mypy~=1.3", - "pytest~=7.3", - "types-Jinja2~=2.11", - "types-jsonschema~=4.17", - "types-python-dateutil~=2.8", - "types-PyYAML~=6.0", + "mypy>=1.3,<2", + "pytest>=7.3,<8", + "types-Jinja2>=2.11,<3", + "types-jsonschema>=4.17,<5", + "types-python-dateutil>=2.8,<3", + "types-PyYAML>=6.0,<7", ] [tool.ruff]