зеркало из https://github.com/microsoft/torchgeo.git
Move requirements-min.txt, split deps in multiple files (#605)
This commit is contained in:
Родитель
8c5e4d21cd
Коммит
959a23beb1
|
@ -36,7 +36,8 @@ jobs:
|
|||
python-version: '3.10'
|
||||
- name: Install pip dependencies
|
||||
run: |
|
||||
pip install -r requirements/requirements.txt
|
||||
pip install --pre 'rasterio>=1.0.16'
|
||||
pip install .[datasets,tests]
|
||||
pip list
|
||||
- name: Run integration checks
|
||||
run: pytest -m slow
|
||||
|
@ -52,7 +53,8 @@ jobs:
|
|||
python-version: '3.10'
|
||||
- name: Install pip dependencies
|
||||
run: |
|
||||
pip install -r requirements/requirements.txt
|
||||
pip install --pre 'rasterio>=1.0.16'
|
||||
pip install .[datasets,docs,tests]
|
||||
pip list
|
||||
- name: Run notebook checks
|
||||
env:
|
||||
|
|
|
@ -21,7 +21,7 @@ jobs:
|
|||
python-version: '3.10'
|
||||
- name: Install pip dependencies
|
||||
run: |
|
||||
pip install -r requirements/requirements.txt
|
||||
pip install -r requirements/style.txt
|
||||
pip list
|
||||
- name: Run black checks
|
||||
run: black . --check --diff
|
||||
|
@ -37,7 +37,7 @@ jobs:
|
|||
python-version: '3.10'
|
||||
- name: Install pip dependencies
|
||||
run: |
|
||||
pip install -r requirements/requirements.txt
|
||||
pip install -r requirements/style.txt
|
||||
pip list
|
||||
- name: Run flake8 checks
|
||||
run: flake8
|
||||
|
@ -53,7 +53,7 @@ jobs:
|
|||
python-version: '3.10'
|
||||
- name: Install pip dependencies
|
||||
run: |
|
||||
pip install -r requirements/requirements.txt
|
||||
pip install -r requirements/style.txt
|
||||
pip list
|
||||
- name: Run isort checks
|
||||
run: isort . --check --diff
|
||||
|
@ -69,7 +69,7 @@ jobs:
|
|||
python-version: '3.10'
|
||||
- name: Install pip dependencies
|
||||
run: |
|
||||
pip install -r requirements/requirements.txt
|
||||
pip install -r requirements/style.txt
|
||||
pip list
|
||||
- name: Run pydocstyle checks
|
||||
run: pydocstyle
|
||||
|
@ -85,7 +85,7 @@ jobs:
|
|||
python-version: '3.10'
|
||||
- name: Install pip dependencies
|
||||
run: |
|
||||
pip install -r requirements/requirements.txt
|
||||
pip install -r requirements/style.txt
|
||||
pip list
|
||||
- name: Run pyupgrade checks
|
||||
run: pyupgrade --py37-plus $(find . -name "*.py")
|
||||
|
|
|
@ -21,7 +21,7 @@ jobs:
|
|||
python-version: '3.10'
|
||||
- name: Install pip dependencies
|
||||
run: |
|
||||
pip install -r requirements/requirements.txt
|
||||
pip install -r requirements/required.txt -r requirements/datasets.txt -r requirements/tests.txt
|
||||
pip list
|
||||
- name: Run mypy checks
|
||||
run: mypy .
|
||||
|
@ -62,7 +62,7 @@ jobs:
|
|||
if: ${{ runner.os == 'Windows' }}
|
||||
- name: Install pip dependencies
|
||||
run: |
|
||||
pip install -r requirements/requirements.txt
|
||||
pip install -r requirements/required.txt -r requirements/datasets.txt -r requirements/tests.txt
|
||||
pip list
|
||||
- name: Run pytest checks
|
||||
run: pytest --cov=torchgeo --cov-report=xml
|
||||
|
@ -85,7 +85,7 @@ jobs:
|
|||
- name: Install pip dependencies
|
||||
run: |
|
||||
pip install cython numpy==1.17.2 # needed by pycocotools
|
||||
pip install -r requirements/requirements-min.txt
|
||||
pip install -r requirements/min/all.txt
|
||||
pip list
|
||||
- name: Run pytest checks
|
||||
run: pytest --cov=torchgeo --cov-report=xml
|
||||
|
|
|
@ -13,7 +13,7 @@ build:
|
|||
# Configuration of the Python environment to be used
|
||||
python:
|
||||
install:
|
||||
- requirements: requirements/requirements.txt
|
||||
- requirements: requirements/docs.txt
|
||||
- requirements: docs/requirements.txt
|
||||
- method: pip
|
||||
path: .
|
||||
|
|
|
@ -1 +1,9 @@
|
|||
# This dependency must be installed in "editable mode" in this directory,
|
||||
# otherwise Sphinx is unable to find static files like fonts:
|
||||
#
|
||||
# https://github.com/pytorch/pytorch_sphinx_theme/issues/143
|
||||
#
|
||||
# All other documentation dependencies can be found in
|
||||
# setup.cfg and requirements/docs.txt
|
||||
|
||||
-e git+https://github.com/pytorch/pytorch_sphinx_theme.git#egg=pytorch_sphinx_theme
|
||||
|
|
|
@ -135,6 +135,7 @@ All of our documentation is hosted on `Read the Docs <https://readthedocs.org/>`
|
|||
|
||||
.. code-block:: console
|
||||
|
||||
$ pip install .[docs]
|
||||
$ cd docs
|
||||
$ pip install -r requirements.txt
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@ dependencies:
|
|||
- pip:
|
||||
- black[jupyter]>=21.8
|
||||
- flake8>=3.8
|
||||
- ipywidgets>=7
|
||||
- isort[colors]>=5.8
|
||||
- kornia>=0.6.4
|
||||
- laspy>=2
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
# This file is managed by dependabot and should not be manually edited unless you need
|
||||
# to add or remove a dependency. It documents the version of our dependencies used in
|
||||
# CI, these are not hard requirements for using TorchGeo.
|
||||
|
||||
# datasets
|
||||
h5py==3.6.0
|
||||
laspy==2.1.2
|
||||
open3d==0.14.1;python_version<'3.10'
|
||||
opencv-python==4.6.0.66
|
||||
pandas==1.4.2;python_version>='3.8'
|
||||
pandas==1.3.5;python_version=='3.7'
|
||||
pycocotools==2.0.4
|
||||
radiant-mlhub==0.5.1;python_version>='3.8'
|
||||
radiant-mlhub==0.4.1;python_version=='3.7'
|
||||
rarfile==4.0
|
||||
scipy==1.8.1;python_version>='3.8'
|
||||
scipy==1.7.3;python_version=='3.7'
|
||||
zipfile-deflate64==0.2.0
|
|
@ -0,0 +1,8 @@
|
|||
# This file is managed by dependabot and should not be manually edited unless you need
|
||||
# to add or remove a dependency. It documents the version of our dependencies used in
|
||||
# CI, these are not hard requirements for using TorchGeo.
|
||||
|
||||
# docs
|
||||
ipywidgets==7.7.0
|
||||
nbsphinx==0.8.9
|
||||
sphinx==5.0.2
|
|
@ -37,6 +37,7 @@ scipy==1.2.0
|
|||
zipfile-deflate64==0.2.0
|
||||
|
||||
# docs
|
||||
ipywidgets==7.0.0
|
||||
nbsphinx==0.8.5
|
||||
sphinx==4.0.0
|
||||
|
|
@ -29,35 +29,3 @@ timm==0.4.12
|
|||
torch==1.11.0
|
||||
torchmetrics==0.9.1
|
||||
torchvision==0.12.0
|
||||
|
||||
# datasets
|
||||
h5py==3.6.0
|
||||
laspy==2.1.2
|
||||
open3d==0.14.1;python_version<'3.10'
|
||||
opencv-python==4.6.0.66
|
||||
pandas==1.4.2;python_version>='3.8'
|
||||
pandas==1.3.5;python_version=='3.7'
|
||||
pycocotools==2.0.4
|
||||
radiant-mlhub==0.5.1;python_version>='3.8'
|
||||
radiant-mlhub==0.4.1;python_version=='3.7'
|
||||
rarfile==4.0
|
||||
scipy==1.8.1;python_version>='3.8'
|
||||
scipy==1.7.3;python_version=='3.7'
|
||||
zipfile-deflate64==0.2.0
|
||||
|
||||
# docs
|
||||
nbsphinx==0.8.9
|
||||
sphinx==5.0.2
|
||||
|
||||
# style
|
||||
black[jupyter]==22.3.0
|
||||
flake8==4.0.1;python_version=='3.10'
|
||||
isort[colors]==5.10.1
|
||||
pydocstyle[toml]==6.1.1
|
||||
pyupgrade==2.34.0
|
||||
|
||||
# tests
|
||||
mypy==0.961
|
||||
nbmake==1.3.0
|
||||
pytest==7.1.2
|
||||
pytest-cov==3.0.0
|
|
@ -0,0 +1,10 @@
|
|||
# This file is managed by dependabot and should not be manually edited unless you need
|
||||
# to add or remove a dependency. It documents the version of our dependencies used in
|
||||
# CI, these are not hard requirements for using TorchGeo.
|
||||
|
||||
# style
|
||||
black[jupyter]==22.3.0
|
||||
flake8==4.0.1;python_version=='3.10'
|
||||
isort[colors]==5.10.1
|
||||
pydocstyle[toml]==6.1.1
|
||||
pyupgrade==2.34.0
|
|
@ -0,0 +1,9 @@
|
|||
# This file is managed by dependabot and should not be manually edited unless you need
|
||||
# to add or remove a dependency. It documents the version of our dependencies used in
|
||||
# CI, these are not hard requirements for using TorchGeo.
|
||||
|
||||
# tests
|
||||
mypy==0.961
|
||||
nbmake==1.3.0
|
||||
pytest==7.1.2
|
||||
pytest-cov==3.0.0
|
|
@ -96,6 +96,8 @@ datasets =
|
|||
# https://github.com/brianhelba/zipfile-deflate64/issues/19
|
||||
zipfile-deflate64>=0.2,<0.3
|
||||
docs =
|
||||
# ipywidgets 7+ required by nbsphinx
|
||||
ipywidgets>=7,<8
|
||||
# nbsphinx 0.8.5 fixes bug with nbformat attributes
|
||||
nbsphinx>=0.8.5,<0.9
|
||||
# release versions missing files, must install from master
|
||||
|
|
Загрузка…
Ссылка в новой задаче