Skip to content

Commit

Permalink
Merge pull request #21 from GEOSYS/dev
Browse files Browse the repository at this point in the history
v0.0.1-rc5 to main
  • Loading branch information
nkarasiak authored Oct 31, 2023
2 parents 8fce3df + 5cb0e58 commit 0a2b14a
Show file tree
Hide file tree
Showing 26 changed files with 736 additions and 213 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/pytest-dev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: pytest-dev
on:
push:
branches:
- dev
jobs:
pytest:
name: pytest
strategy:
matrix:
os:
- ubuntu-latest
python-version:
- "3.10"
- "3.11"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Make conda environment
uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: 1.5.1-0
environment-file: requirements_dev.yml
environment-name: earthdaily
create-args: python=${{ matrix.python-version }}
cache-environment: true
post-cleanup: all
init-shell: >-
bash
- name: Installing the library
shell: bash -l {0}
run: |
pip install .
- name: Run tests and coverage
shell: bash -l {0}
env:
EDS_CLIENT_ID: ${{ secrets.EDS_CLIENT_ID }}
EDS_AUTH_URL: ${{ secrets.EDS_AUTH_URL }}
EDS_SECRET: ${{ secrets.EDS_SECRET }}
EDS_API_URL: ${{ secrets.EDS_API_URL }}
run: pytest -v tests --cov=earthdaily
45 changes: 45 additions & 0 deletions .github/workflows/pytest-prod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: pytest-main
on:
push:
branches:
- main
jobs:
pytest:
name: pytest
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
python-version:
- "3.10"
- "3.11"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Make conda environment
uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: 1.5.1-0
environment-file: requirements_dev.yml
environment-name: earthdaily
create-args: python=${{ matrix.python-version }}
cache-environment: true
post-cleanup: all
init-shell: >-
bash
- name: Installing the library
shell: bash -l {0}
run: |
pip install .
- name: Run tests and coverage
shell: bash -l {0}
env:
EDS_CLIENT_ID: ${{ secrets.EDS_CLIENT_ID }}
EDS_AUTH_URL: ${{ secrets.EDS_AUTH_URL }}
EDS_SECRET: ${{ secrets.EDS_SECRET }}
EDS_API_URL: ${{ secrets.EDS_API_URL }}
run: pytest -v tests --cov=earthdaily
26 changes: 26 additions & 0 deletions .github/workflows/ruff.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: ruff

on:
push:
branches:
- dev
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: chartboost/ruff-action@v1
with:
src: "./earthdaily"
args: --ignore F401
- uses: chartboost/ruff-action@v1
with:
src: "./earthdaily"
args: --ignore F401
- uses: chartboost/ruff-action@v1
with:
src: "./earthdaily"
args: format
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: 'gh-actions/python format using ruff'
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,5 @@ docs/_*
target/

# Auth
.env
.env
.vscode/
18 changes: 17 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,23 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.0.1-rc4]
## [0.0.1-rc5]

### Added

- `common_band_names` default set to True in datacube creation. It uses the new Assets Mapper in order to define to best suitable bands according to user needs.
- `clear_cover` in the datacube method when using the `earthdatastore.Auth` method.

### Changed

- masks statistics are not anymore suffixed with the cloudmask type : `clear_percent`and `clear_pixels`. Warns with a DeprecationWarning.
- all queries in `post_query` must return True to keep the item. If a key doesn't exist, considers the result as False (instead of failling).

### Fixed

- search `post_query` do not block if some properties are not available on all items.

## [0.0.1-rc4] 2023-10-19

### Changed

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Earthdaily Python Package
[![PyPI version](https://badge.fury.io/py/earthdaily.png)](https://badge.fury.io/py/earthdaily)
[![Documentation](https://img.shields.io/badge/Documentation-html-green.svg)](https://geosys.github.io/earthdaily-python-client/)
[![pytest](https://github.com/GEOSYS/earthdaily-python-client/actions/workflows/pytest.yaml/badge.svg?branch=main)](https://github.com/GEOSYS/earthdaily-python-client/actions/workflows/pytest.yaml)

## Your Gateway to the Stac Catalog Earth Data Store

Expand Down
2 changes: 1 addition & 1 deletion earthdaily/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from earthdaily import earthdatastore

__version__ = "0.0.1-rc4"
__version__ = "0.0.1-rc5"
Loading

0 comments on commit 0a2b14a

Please sign in to comment.