diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 6c93570..34b96bf 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -25,7 +25,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.7", "3.8", "3.9"] + python-version: ["3.8", "3.9", "3.10", "3.11"] defaults: run: shell: bash -l {0} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e70edc5..ee2abb3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,32 +3,32 @@ repos: - repo: https://github.com/psf/black - rev: 22.3.0 + rev: 23.7.0 hooks: - id: black - repo: https://github.com/codespell-project/codespell - rev: v2.1.0 + rev: v2.2.5 hooks: - id: codespell args: [--ignore-words=.codespellignore] types_or: [jupyter, markdown, python, shell] - repo: https://github.com/PyCQA/doc8 - rev: 0.11.1 + rev: v1.1.1 hooks: - id: doc8 - repo: https://github.com/PyCQA/flake8 - rev: 4.0.1 + rev: 6.1.0 hooks: - id: flake8 - repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.950 + rev: v1.4.1 hooks: - id: mypy additional_dependencies: - click - - stactools + - stactools>=0.5 - repo: https://github.com/pycqa/isort - rev: 5.10.1 + rev: 5.12.0 hooks: - id: isort name: isort diff --git a/environment.yml b/environment.yml index fdada77..5dc8980 100644 --- a/environment.yml +++ b/environment.yml @@ -3,4 +3,7 @@ channels: - conda-forge - defaults dependencies: - - gdal + - conda-forge::gdal>=3.3 + - conda-forge::geos>=3.3 + - conda-forge::rasterio>=1.3 + - conda-forge::libstdcxx-ng # gdal dependency. Make sure it's from the same channel as gdal diff --git a/setup.cfg b/setup.cfg index 16bce7b..148c49a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -18,7 +18,6 @@ keywords = classifiers = Development Status :: 4 - Beta License :: OSI Approved :: Apache Software License - Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 @@ -27,7 +26,7 @@ package_dir = = src packages = find_namespace: install_requires = - stactools >= 0.3.0 + stactools >= 0.5.0 boto3 >= 1.17 [options.packages.find] diff --git a/src/stactools/threedep/stac.py b/src/stactools/threedep/stac.py index dc384bb..303d43d 100644 --- a/src/stactools/threedep/stac.py +++ b/src/stactools/threedep/stac.py @@ -38,7 +38,7 @@ def create_item_from_metadata( ) -> Item: """Creates a STAC item from Metadata.""" href = metadata.asset_href_with_extension(base, "tif") - item = create.item(href, read_href_modifier) + item = create.item(href, read_href_modifier=read_href_modifier) item.id = metadata.stac_id end_datetime = metadata.end_datetime item.datetime = end_datetime