Skip to content

Commit

Permalink
Remove torch and modularize requirements (#39)
Browse files Browse the repository at this point in the history
* Modularize requirements, remove torch (thanks to changes in common utils)

* Update common_utils ref

* Use requirements ref in pyproject.toml

* Add fix
  • Loading branch information
liam-sbhoo authored Sep 22, 2024
1 parent 2329e70 commit 4b2c1c7
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 22 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
17 changes: 9 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"]
Expand Down
6 changes: 6 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
### additional requirements for development


# lint and format checking
pre-commit
ruff == 0.3.3
4 changes: 4 additions & 0 deletions requirements-test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
### additional requirements to run tests on CI/CD

scikit-learn
respx
16 changes: 4 additions & 12 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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
scikit-learn>=1.5.2
2 changes: 1 addition & 1 deletion tabpfn_client/tabpfn_common_utils

0 comments on commit 4b2c1c7

Please sign in to comment.