diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index f232e669..be19f1f1 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -45,9 +45,34 @@ jobs: - name: Run lint checks run: hatch run check + build-install: + name: Test package build and installation + runs-on: ubuntu-latest + needs: lint + steps: + - uses: actions/checkout@v4 + with: + persist-credentials: false + - name: Setup up Python + uses: actions/setup-python@v5 + with: + python-version: '3.8' + - name: Upgrade and install tools + run: | + python -m pip install -U pip + python -m pip install -U hatch + - name: Build package + run: | + python -m hatch clean + python -m hatch build + - name: Install and check import + run: | + python -m pip install dist/snowflake_sqlalchemy-*.whl + python -c "import snowflake.sqlalchemy; print(snowflake.sqlalchemy.__version__)" + test-dialect: name: Test dialect ${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.cloud-provider }} - needs: lint + needs: [ lint, build-install ] runs-on: ${{ matrix.os }} strategy: fail-fast: false @@ -93,7 +118,7 @@ jobs: test-dialect-compatibility: name: Test dialect compatibility ${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.cloud-provider }} - needs: lint + needs: [ lint, build-install ] runs-on: ${{ matrix.os }} strategy: fail-fast: false @@ -139,7 +164,7 @@ jobs: test-dialect-run-v20: name: Test dialect run v20 ${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.cloud-provider }} - needs: lint + needs: [ lint, build-install ] runs-on: ${{ matrix.os }} strategy: fail-fast: false diff --git a/DESCRIPTION.md b/DESCRIPTION.md index f41ee797..e826b42a 100644 --- a/DESCRIPTION.md +++ b/DESCRIPTION.md @@ -9,6 +9,10 @@ Source code is also available at: # Release Notes +- v1.5.3(Unrelased) + + - Limit SQLAlchemy to < 2.0.0 before releasing version compatible with 2.0 + - v1.5.2(April 11, 2024) - Bump min SQLAlchemy to 1.4.19 for outer lateral join diff --git a/pyproject.toml b/pyproject.toml index 8707fae3..d0c31cb8 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 = ["snowflake-connector-python", "SQLAlchemy"] +dependencies = ["snowflake-connector-python<4.0.0", "SQLAlchemy>=1.4.19,<2.0.0"] [tool.hatch.version] path = "src/snowflake/sqlalchemy/version.py" @@ -73,14 +73,9 @@ exclude = ["/.github"] packages = ["src/snowflake"] [tool.hatch.envs.default] -extra-dependencies = ["SQLAlchemy<2.0.0,>=1.4.19"] features = ["development", "pandas"] python = "3.8" -[tool.hatch.envs.sa20] -extra-dependencies = ["SQLAlchemy>=2.0.0"] -python = "3.8" - [tool.hatch.envs.default.env-vars] COVERAGE_FILE = "coverage.xml" SQLACHEMY_WARN_20 = "1" diff --git a/src/snowflake/sqlalchemy/version.py b/src/snowflake/sqlalchemy/version.py index 24f188c2..61c9fc41 100644 --- a/src/snowflake/sqlalchemy/version.py +++ b/src/snowflake/sqlalchemy/version.py @@ -3,4 +3,4 @@ # # Update this for the versions # Don't change the forth version number from None -VERSION = "1.5.2" +VERSION = "1.5.3"