Skip to content

Commit d334d62

Browse files
authored
Merge pull request #180 from sparkgeo/dev
2.3.0 version to Main branch and push to pypi
2 parents 91b2dd7 + fcb905a commit d334d62

32 files changed

+3487
-1374
lines changed

.github/workflows/test-runner.yml

+5-1
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

@@ -14,7 +18,7 @@ jobs:
1418
runs-on: ubuntu-latest
1519
strategy:
1620
matrix:
17-
python-version: [3.6, 3.7, 3.8, 3.9]
21+
python-version: [3.7, 3.8, 3.9]
1822

1923
steps:
2024

.pre-commit-config.yaml

+1
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

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

Makefile

+2-2
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

+9-4
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
```

setup.py

+6-6
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,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.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",
36-
"pystac==0.5.6",
37-
"click==7.1.2",
35+
"jsonschema>=3.2.0",
36+
"pystac[validation]==1.1.0",
37+
"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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.2.0"
1+
__version__ = "2.3.0"

0 commit comments

Comments
 (0)