From 0e6975d5b3c0b768232bb9f4d612fa7072b8fb26 Mon Sep 17 00:00:00 2001 From: Kai Harder Date: Mon, 18 Aug 2025 10:43:16 +0000 Subject: [PATCH 1/2] Migrate to dependency-groups --- .github/workflows/main.yml | 4 ++-- README.rst | 2 +- pyproject.toml | 4 +++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e976605..9f95714 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -34,7 +34,7 @@ jobs: with: python-version: '3.13' - name: Install project - run: pip install -e .[dev,test,alembic] + run: pip install --group test --group dev -e .[alembic] - name: run pre-commit run: pre-commit run --all ci-test: @@ -56,7 +56,7 @@ jobs: with: python-version: ${{ matrix.python-version }} - name: Install project - run: pip install -e .[test,alembic] + run: pip install --group test -e .[alembic] - name: Install sqlalchemy run: pip install sqlalchemy==${{ matrix.sqlalchemy-version }} - name: run tests (with coverage) diff --git a/README.rst b/README.rst index e5d79c4..c117567 100644 --- a/README.rst +++ b/README.rst @@ -421,7 +421,7 @@ We recommend the usage of ``pyenv`` to install a proper 3.13 python version for * ``python311 -m venv venv`` * ``source venv/bin/activate`` * ``pip install -U pip`` -* ``pip install -e .[dev,test,alembic]`` +* ``pip install --group dev --group test -e .[alembic]`` To execute the tests, use ``pyenv``. The linters and formatters can be executed using ``pre-commit``: ``pre-commit run -a``. diff --git a/pyproject.toml b/pyproject.toml index 6e5fcaf..756b626 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,6 +36,9 @@ license = "Apache-2.0" license-files = ["LICENSE"] [project.optional-dependencies] +alembic = ["alembic~=1.12"] + +[dependency-groups] dev = [ "isort==6.0.1", "black==25.1.0", @@ -55,7 +58,6 @@ test = [ "coverage[toml]==7.10.2", "diff-cover[toml]==9.6.0", ] -alembic = ["alembic~=1.12"] [project.entry-points."sqlalchemy.dialects"] hana = "sqlalchemy_hana.dialect:HANAHDBCLIDialect" From cfb7a1f7cae60cc999403173cd67cbdc60b75e4b Mon Sep 17 00:00:00 2001 From: Kai Harder Date: Tue, 16 Sep 2025 13:14:43 +0000 Subject: [PATCH 2/2] Fix --- README.rst | 2 +- pyproject.toml | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index c117567..e5d79c4 100644 --- a/README.rst +++ b/README.rst @@ -421,7 +421,7 @@ We recommend the usage of ``pyenv`` to install a proper 3.13 python version for * ``python311 -m venv venv`` * ``source venv/bin/activate`` * ``pip install -U pip`` -* ``pip install --group dev --group test -e .[alembic]`` +* ``pip install -e .[dev,test,alembic]`` To execute the tests, use ``pyenv``. The linters and formatters can be executed using ``pre-commit``: ``pre-commit run -a``. diff --git a/pyproject.toml b/pyproject.toml index 756b626..6175087 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,6 +37,25 @@ license-files = ["LICENSE"] [project.optional-dependencies] alembic = ["alembic~=1.12"] +dev = [ + "isort==6.0.1", + "black==25.1.0", + "pre-commit==4.3.0", + "flake8==7.3.0", + "flake8-tergeo==25.7.9.0", + "pylint==3.3.8", + "mypy==1.17.1", + "types-hdbcli==2.25.0.20250809", + "typing-extensions==4.14.1", + "yesqa==1.5.0", + "pyupgrade==3.20.0", +] +test = [ + "pytest==8.4.1", + "pytest-cov==6.2.1", + "coverage[toml]==7.10.2", + "diff-cover[toml]==9.6.0", +] [dependency-groups] dev = [