Skip to content

Commit

Permalink
split deps
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgatis committed Jun 19, 2023
1 parent 8f24b57 commit 7ba60e8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/lint_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: 3.11
- run: pip install --upgrade pip wheel
- run: pip install --upgrade setuptools
- run: pip install bandit black flake8 flake8-bugbear flake8-comprehensions isort safety mypy
- name: Install dependencies
run: pip install .[cli,dev]
- run: mypy --install-types --non-interactive --ignore-missing-imports ./rembg
- run: bandit --recursive --skip B101,B104,B310,B311,B303,B110 --exclude ./rembg/_version.py ./rembg
- run: black --force-exclude rembg/_version.py --check --diff ./rembg
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/publish_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: 3.11
- name: "Installs dependencies"
run: |
python3 -m pip install --upgrade pip
python3 -m pip install setuptools wheel twine
- name: "Builds and uploads to PyPI"
- name: Install dependencies
run: pip install .[cli,dev]
- name: Builds and uploads to PyPI
run: |
python3 setup.py sdist bdist_wheel
python3 -m twine upload dist/*
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/test-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install package
run: |
python -m pip install --upgrade pip
pip install .[cli,dev]
- name: Install dependencies
run: pip install .[cli,dev]
- name: Test installation with pytest
run: |
pytest
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
"imagehash",
"isort",
"mypy",
"setuptools",
"twine",
"wheel",
],
"gpu": ["onnxruntime-gpu"],
"cli": [
Expand Down

0 comments on commit 7ba60e8

Please sign in to comment.