Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import validator, version 0.2.0 #56

Merged
merged 3 commits into from
Feb 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ All notable changes to this project will be documented in this file.

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

## [v0.2.0] - 2022-02-02 - 2022-02-20
## [v0.2.0] - 2022-02-02 - 2022-02-19
### Added
- Import main validator as stac-validator was updated to 2.3.0
- Added best practices docuument to repo
- Recommend 'self' link in links
- Check catalogs and collections use 'catalog.json' or 'collection.json' as a file name
Expand Down
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
from setuptools import setup, find_packages

__version__ = "0.1.3"
__version__ = "0.2.0"

with open("README.md", "r") as fh:
long_description = fh.read()
Expand All @@ -19,7 +19,8 @@
"click>=7.1.2",
"requests>=2.19.1",
"jsonschema>=3.1.2b0",
"pytest"
"pytest",
"stac-validator==2.3.0"
],
entry_points={
'console_scripts': ['stac_check=stac_check.cli:main']
Expand Down
6 changes: 3 additions & 3 deletions stac_check/lint.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from .validate import StacValidate
from .utilities import is_valid_url
from stac_validator.validate import StacValidate
from stac_validator.utilities import is_valid_url
import json
import os
from dataclasses import dataclass
Expand All @@ -19,7 +19,7 @@ def __post_init__(self):
self.message = self.validate_file(self.item)
self.asset_type = self.check_asset_type()
self.version = self.check_version()
self.validator_version = "2.4.0"
self.validator_version = "2.3.0"
self.update_msg = self.set_update_message()
self.valid_stac = self.message["valid_stac"]
self.error_type = self.check_error_type()
Expand Down
82 changes: 0 additions & 82 deletions stac_check/utilities.py

This file was deleted.

Loading