diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 9eb3f6e..f50449c 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -36,9 +36,12 @@ jobs: python-version: ${{ matrix.python-version }} architecture: x64 - - name: Install dependencies + - name: Install user's dependencies run: pip install -r requirements.txt + - name: Install test dependencies + run: pip install -r requirements-test.txt + - name: Initialize submodules run: git submodule update --init --recursive diff --git a/pyproject.toml b/pyproject.toml index 2394dcc..01b3536 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,17 +1,18 @@ [build-system] -requires = ["hatchling"] +requires = ["hatchling", "hatch-requirements-txt"] build-backend = "hatchling.build" [project] name = "tabpfn-client" -version = "0.0.21" +version = "0.0.23" requires-python = ">=3.10" -dependencies = [ - "httpx>=0.24.1", - "pandas>=1.3.0", - "omegaconf>=2.3.0", - "password_strength", -] +dynamic = ["dependencies", "optional-dependencies"] + +[tool.hatch.metadata.hooks.requirements_txt] +files = ["requirements.txt"] + +[tool.hatch.metadata.hooks.requirements_txt.optional-dependencies] +dev = ["requirements-dev.txt", "requirements-test.txt"] [tool.hatch.build.targets.wheel] exclude = ["tabpfn_client/.tabpfn", "models_diff"] diff --git a/requirements-dev.txt b/requirements-dev.txt new file mode 100644 index 0000000..203ebca --- /dev/null +++ b/requirements-dev.txt @@ -0,0 +1,6 @@ +### additional requirements for development + + +# lint and format checking +pre-commit +ruff == 0.3.3 \ No newline at end of file diff --git a/requirements-test.txt b/requirements-test.txt new file mode 100644 index 0000000..a4d789c --- /dev/null +++ b/requirements-test.txt @@ -0,0 +1,4 @@ +### additional requirements to run tests on CI/CD + +scikit-learn +respx diff --git a/requirements.txt b/requirements.txt index bf57ffc..20032e7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,13 +1,5 @@ -httpx -omegaconf -pandas +httpx>=0.27.2 +omegaconf>=2.3.0 +pandas>=1.3.0 password-strength -scikit-learn -torch - -# for testing -respx - -# development tool -pre-commit -ruff == 0.3.3 \ No newline at end of file +scikit-learn>=1.5.2 \ No newline at end of file diff --git a/tabpfn_client/tabpfn_common_utils b/tabpfn_client/tabpfn_common_utils index c26d6d9..ca5488c 160000 --- a/tabpfn_client/tabpfn_common_utils +++ b/tabpfn_client/tabpfn_common_utils @@ -1 +1 @@ -Subproject commit c26d6d928fdd7600f20a5700b25c75edad573c61 +Subproject commit ca5488ca2cc37080e9c681e297eedfedadff38c6