Skip to content

Commit bb1ed87

Browse files
authored
Merge pull request #178 from sparkgeo/173_validate_links
173 validate links
2 parents aa68b69 + d18b4fd commit bb1ed87

32 files changed

+3484
-1369
lines changed

.github/workflows/test-runner.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
branches:
66
- main
77
- dev
8+
pull_request:
9+
branches:
10+
- main
11+
- dev
812

913
jobs:
1014

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ repos:
77
rev: 5.8.0
88
hooks:
99
- id: isort
10+
args: ["--profile", "black"]
1011
- repo: https://github.com/psf/black
1112
rev: 20.8b1
1213
hooks:

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,21 @@ 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.3.0] - 2021-08-31
8+
### Added
9+
10+
- Added --links option to validate links on format and a valid response
11+
- Added --assets option to validate assets on format and and a valid response
12+
- Added test_links.py
13+
- Added v1.0.0 STAC examples from radiant earth github
14+
- Added v1.0.0 examples to tests
15+
16+
### Changed
17+
18+
- Moved tests for cli options out of test_stac_validator into individual files
19+
- Moved utilities to utilities.py
20+
- Moved backend to validate.py
21+
722
## [v2.2.0] - 2021-05-25
823
### Added
924

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.2.0 .
20+
docker build -t stac_validator:2.3.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.2.0
26+
docker run -it --entrypoint /bin/bash stac_validator:2.3.0

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,19 @@ stac_validator --help
100100
Usage: stac_validator [OPTIONS] STAC_FILE
101101

102102
Options:
103-
--core Validate core stac object without extensions.
103+
--core Validate core stac object only without extensions.
104104
--extensions Validate extensions only.
105-
-c, --custom TEXT Validate against a custom schema (local filepath or remote schema).
105+
--links Additionally validate links. Only works with
106+
default mode.
107+
--assets Additionally validate assets. Only works with
108+
default mode.
109+
-c, --custom TEXT Validate against a custom schema (local filepath or
110+
remote schema).
106111
-r, --recursive INTEGER Recursively validate all related stac objects. A
107112
depth of -1 indicates full recursion.
108-
109113
-v, --verbose Enables verbose output for recursive mode.
110-
-l, --log_file TEXT Save full recursive output to log file. (local filepath)
114+
--log_file TEXT Save full recursive output to log file (local
115+
filepath).
111116
--version Show the version and exit.
112117
--help Show this message and exit.
113118
```

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ requires = [
44
"jsonschema",
55
"pystac",
66
"click",
7+
"setuptools"
78
]
89
build-backend = "setuptools.build_meta"

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.2.0"
5+
__version__ = "2.3.0"
66

77
with open("README.md", "r") as fh:
88
long_description = fh.read()
@@ -29,12 +29,12 @@
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.2.0.tar.gz",
32+
download_url="https://github.com/sparkgeo/stac-validator/archive/v2.3.0.tar.gz",
3333
install_requires=[
3434
"requests>=2.19.1",
35-
"jsonschema==3.2.0",
35+
"jsonschema>=3.2.0",
3636
"pystac==0.5.6",
37-
"click==7.1.2",
37+
"click>=8.0.0",
3838
],
3939
packages=["stac_validator"],
4040
entry_points={

0 commit comments

Comments
 (0)