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

Make CPU and GPU installs separate and remove dev setup #216

Merged
merged 3 commits into from
Aug 2, 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
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ jobs:
cache: 'pip'
- name: Install dependencies
run: |
pip install .
pip install .[dev]
pip install .[cpu]
pip install .[gpu]
- name: Verify installation
run: |
python -m pip check
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: pip install .[dev]
run: pip install .[cpu]
- name: Run isort
run: isort --check .
- name: Run flake8
Expand Down
14 changes: 8 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ requires-python = ">= 3.9"
dependencies = [
"flatbuffers>=2.0",
"numpy>=1.23.5,<2",
"onnxruntime-gpu>=1.18.0",
"Pillow>=10.1.0",
"protobuf>=3.20.3",
"scipy>=1.13.1",
Expand All @@ -25,16 +24,19 @@ dependencies = [
"requests>=2.25.1",
"av",
"tqdm",
]

[project.optional-dependencies]
dev = [
"opencv-python==4.10.0.84",
"pre-commit==3.5.0",
"black==24.4.0",
"flake8==7.0.0",
"isort==5.13.2",
"pylint==3.1.0",
"opencv-python==4.10.0.84",
]
[project.optional-dependencies]
cpu = [
"onnxruntime>=1.18.0"
]
gpu = [
"onnxruntime-gpu>=1.18.0",
]

[tool.black]
Expand Down