Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove torch and modularize requirements #39

Merged
merged 5 commits into from
Sep 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading