Skip to content
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
6 changes: 5 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: "pip"
directory: "/"
schedule:
Expand All @@ -8,4 +12,4 @@ updates:
open-pull-requests-limit: 2
allow:
- dependency-name: "timm"
dependency-type: "all"
dependency-type: "all"
10 changes: 5 additions & 5 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.7'
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine mock
python -m pip install --upgrade pip uv
python -m uv pip install setuptools wheel twine mock
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff==0.4.6
python -m pip install --upgrade pip uv
python -m uv pip install ruff==0.5.2
# Update output format to enable automatic inline annotations.
- name: Run Ruff Linter
run: ruff check --output-format=github
Expand All @@ -34,15 +34,15 @@ jobs:
runs-on: ubuntu-latest
needs: [style]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.7
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install torch==1.9.0+cpu torchvision==0.10.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
python -m pip install --upgrade pip uv
python -m uv pip install torch==2.3.1+cpu torchvision==0.18.1+cpu -f https://download.pytorch.org/whl/torch_stable.html
make install_dev
- name: Test with pytest
run: make test
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
URL = "https://github.com/qubvel/segmentation_models.pytorch"
EMAIL = "[email protected]"
AUTHOR = "Pavel Iakubovskii"
REQUIRES_PYTHON = ">=3.7.0"
REQUIRES_PYTHON = ">=3.9.0"
VERSION = None

# The rest you shouldn't have to touch too much :)
Expand All @@ -35,7 +35,7 @@
REQUIRED = []

# What packages are optional?
EXTRAS = {"test": ["pytest", "mock", "ruff==0.4.6"]}
EXTRAS = {"test": ["pytest", "mock", "ruff==0.5.2"]}

# Import the README and use it as the long-description.
# Note: this will only work if 'README.md' is present in your MANIFEST.in file!
Expand Down