Skip to content

Conversation

@jonhealy1
Copy link
Collaborator

@jonhealy1 jonhealy1 commented Nov 16, 2025

#267

Fixed

  • Added validation for STAC version format to provide clear error messages when stac_version field is missing, empty, or incorrectly formatted (e.g., "1.1" instead of "1.1.0"). #268

Changed

  • Migrated from setup.py to modern pyproject.toml packaging (PEP 621), removing legacy requirements-dev.txt file. #268

…bool, str, str]

- Change tuple[bool, str, str] to Tuple[bool, str, str] for validate_stac_version_field
- This fixes the TypeError in Python 3.8 where tuple subscript notation is not supported
- Change 'tuple[bool, str, str]' to 'Tuple[bool, str, str]' in validate_stac_version_field docstring
- Change 'tuple[bool, str]' to 'Tuple[bool, str]' in validate_version_format docstring
- Keep docstrings consistent with actual type annotations
@jonhealy1 jonhealy1 marked this pull request as ready for review November 16, 2025 05:04
@jonhealy1 jonhealy1 merged commit 5b922d8 into stac-utils:main Nov 16, 2025
8 checks passed
@jonhealy1 jonhealy1 deleted the fix-bad-stac-version branch November 16, 2025 05:07
@jonhealy1 jonhealy1 changed the title Check stac version format, v3.10.1, update to pyproject.toml Check stac version format, v3.10.2, update to pyproject.toml Nov 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant