-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #111 from stac-utils/update-1.4.0
Update 1.4.0
- Loading branch information
Showing
12 changed files
with
458 additions
and
306 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Publish | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*.*.*" # Triggers when a tag starting with 'v' followed by version numbers is pushed | ||
|
||
jobs: | ||
build-and-publish: | ||
name: Build and Publish to PyPI | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel twine | ||
- name: Build package | ||
run: | | ||
python setup.py sdist bdist_wheel | ||
- name: Publish package to PyPI | ||
env: | ||
TWINE_USERNAME: "__token__" | ||
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} | ||
run: | | ||
twine upload dist/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,24 +11,50 @@ on: | |
- dev | ||
|
||
jobs: | ||
pre-commit: | ||
name: Run pre-commit checks | ||
runs-on: ubuntu-latest | ||
|
||
test: | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install '.[dev]' | ||
- name: Run pre-commit checks | ||
uses: pre-commit/[email protected] | ||
with: | ||
extra_args: --all-files | ||
env: | ||
PRE_COMMIT_HOME: ~/.cache/pre-commit | ||
|
||
test: | ||
needs: pre-commit # This ensures tests run after pre-commit checks | ||
name: Execute tests | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10", "3.11"] | ||
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@main | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Run unit tests | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install '.[dev]' | ||
pytest -v | ||
- name: Run unit tests | ||
run: pytest -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
repos: | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 7.0.0 | ||
hooks: | ||
- id: flake8 | ||
args: | ||
- --ignore=E501,E712,W503 | ||
- repo: https://github.com/timothycrosley/isort | ||
rev: 5.13.2 | ||
hooks: | ||
- id: isort | ||
args: ["--profile", "black"] | ||
- repo: https://github.com/psf/black | ||
rev: 24.1.1 | ||
hooks: | ||
- id: black | ||
language_version: python3.10 | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v1.8.0 | ||
hooks: | ||
- id: mypy | ||
exclude: /tests/ | ||
# --strict | ||
args: | ||
[ | ||
--no-strict-optional, | ||
--ignore-missing-imports, | ||
--implicit-reexport, | ||
--explicit-package-bases, | ||
] | ||
additional_dependencies: | ||
["types-attrs", "types-requests", "types-setuptools", "types-PyYAML"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
"""stac-check setup.py | ||
""" | ||
from setuptools import setup, find_packages | ||
|
||
__version__ = "1.3.3" | ||
from setuptools import find_packages, setup | ||
|
||
__version__ = "1.4.0" | ||
|
||
with open("README.md", "r") as fh: | ||
long_description = fh.read() | ||
|
@@ -18,24 +19,23 @@ | |
"click>=8.0.0", | ||
"requests>=2.19.1", | ||
"jsonschema>=3.1.2", | ||
"stac-validator>=3.1.0", | ||
"stac-validator>=3.4.0", | ||
"PyYAML", | ||
"python-dotenv", | ||
"setuptools", | ||
], | ||
extras_require={ | ||
"dev": [ | ||
"pytest", | ||
"types-setuptools", | ||
], | ||
}, | ||
entry_points={ | ||
'console_scripts': ['stac-check=stac_check.cli:main'] | ||
}, | ||
entry_points={"console_scripts": ["stac-check=stac_check.cli:main"]}, | ||
author="Jonathan Healy", | ||
author_email="[email protected]", | ||
license="MIT", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
python_requires=">=3.8", | ||
tests_require=["pytest"] | ||
tests_require=["pytest"], | ||
) |
Oops, something went wrong.