diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index 978792de..1a8eb727 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -36,8 +36,9 @@ jobs: python -m pip install -U pip python -m pip install -U hatch python -m hatch env create default + python -m hatch env find - name: Set PY - run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV + run: echo "PY=$(hatch run gh-cache-sum)" >> $GITHUB_ENV - uses: actions/cache@v4 with: path: ~/.cache/pre-commit diff --git a/pyproject.toml b/pyproject.toml index eec99926..5f135d59 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,7 +38,7 @@ classifiers = [ "Topic :: Software Development :: Libraries :: Application Frameworks", "Topic :: Software Development :: Libraries :: Python Modules", ] -dependencies = ["SQLAlchemy", "snowflake-connector-python<4.0.0"] +dependencies = ["SQLAlchemy", "snowflake-connector-python"] [tool.hatch.version] path = "src/snowflake/sqlalchemy/version.py" @@ -53,7 +53,7 @@ development = [ "pytz", "numpy", ] -pandas = ["snowflake-connector-python[pandas]<4.0.0"] +pandas = ["snowflake-connector-python[pandas]"] [project.entry-points."sqlalchemy.dialects"] snowflake = "snowflake.sqlalchemy:dialect" @@ -89,6 +89,7 @@ check = "pre-commit run --all-files" test-dialect = "pytest -ra -vvv --tb=short --cov snowflake.sqlalchemy --cov-append --junitxml ./junit.xml --ignore=tests/sqlalchemy_test_suite" test-dialect-compatibility = "pytest -ra -vvv --tb=short --cov snowflake.sqlalchemy --cov-append --junitxml ./junit.xml tests/sqlalchemy_test_suite" test-run_v20 = "pytest -ra -vvv --tb=short --cov snowflake.sqlalchemy --cov-append --junitxml ./junit.xml --ignore=tests/sqlalchemy_test_suite --run_v20_sqlalchemy" +gh-cache-sum = "python -VV | sha256sum | cut -d' ' -f1" [tool.ruff] line-length = 88