Skip to content

Commit 85c6c55

Browse files
authored
Merge pull request #181 from sparkgeo/update_pystac_120
Update pystac to 1.1.0
2 parents bb1ed87 + e839ccc commit 85c6c55

File tree

6 files changed

+15
-8
lines changed

6 files changed

+15
-8
lines changed

.github/workflows/test-runner.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ubuntu-latest
1919
strategy:
2020
matrix:
21-
python-version: [3.6, 3.7, 3.8, 3.9]
21+
python-version: [3.7, 3.8, 3.9]
2222

2323
steps:
2424

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
44

55
The format is (loosely) based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
## [v2.4.0] - 2021-11-28
8+
### Changed
9+
10+
- Upgraded pystac to 1.1.0 from 0.5.6
11+
712
## [v2.3.0] - 2021-08-31
813
### Added
914

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ test: ## Run the tests
1717
pytest --mypy stac_validator
1818

1919
build-docker: ## Build a Docker container
20-
docker build -t stac_validator:2.3.0 .
20+
docker build -t stac_validator:2.4.0 .
2121

2222
build-tox: ## Test stac_validator on multiple Python versions
2323
docker build -f tox/Dockerfile-tox -t stac_tox .
2424

2525
run: ## Run the Docker Container and enter into bash
26-
docker run -it --entrypoint /bin/bash stac_validator:2.3.0
26+
docker run -it --entrypoint /bin/bash stac_validator:2.4.0

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from setuptools import setup
44

5-
__version__ = "2.3.0"
5+
__version__ = "2.4.0"
66

77
with open("README.md", "r") as fh:
88
long_description = fh.read()
@@ -29,17 +29,17 @@
2929
long_description=long_description,
3030
long_description_content_type="text/markdown",
3131
url="https://github.com/sparkgeo/stac-validator",
32-
download_url="https://github.com/sparkgeo/stac-validator/archive/v2.3.0.tar.gz",
32+
download_url="https://github.com/sparkgeo/stac-validator/archive/v2.4.0.tar.gz",
3333
install_requires=[
3434
"requests>=2.19.1",
3535
"jsonschema>=3.2.0",
36-
"pystac==0.5.6",
36+
"pystac[validation]==1.1.0",
3737
"click>=8.0.0",
3838
],
3939
packages=["stac_validator"],
4040
entry_points={
4141
"console_scripts": ["stac_validator = stac_validator.stac_validator:main"]
4242
},
43-
python_requires=">=3.6",
43+
python_requires=">=3.7",
4444
tests_require=["pytest"],
4545
)

stac_validator/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.2.0"
1+
__version__ = "2.4.0"

stac_validator/utilities.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ def is_valid_url(url: str) -> bool:
3434
def get_stac_type(stac_content) -> str:
3535
try:
3636
content_types = ["Item", "Catalog", "Collection"]
37+
if "type" in stac_content and stac_content["type"] == "Feature":
38+
return "Item"
3739
if "type" in stac_content and stac_content["type"] in content_types:
3840
return stac_content["type"]
3941
stac_object = identify_stac_object(stac_content)

0 commit comments

Comments
 (0)