-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
308 additions
and
120 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,33 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: bug | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**Code To Reproduce** | ||
CLI commands or Python code snippet to reproduce the bug. Please use maximum verbosity using: | ||
```sh | ||
eodag -vvv [OPTIONS] COMMAND [ARGS]... | ||
``` | ||
or | ||
```py | ||
from eodag.utils.logging import setup_logging | ||
setup_logging(verbose=3) | ||
``` | ||
|
||
**Output** | ||
Compete output obtained with maximal verbosity. | ||
|
||
**Environment:** | ||
- Python version: `python --version` | ||
- EODAG version: `eodag version` | ||
- eodag-cube version | ||
|
||
**Additional context** | ||
Add any other context about the bug here. |
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,20 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: enhancement | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context about the feature request here. |
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,14 @@ | ||
### Your checklist for this pull request | ||
Please review the [guidelines for contributing](../README.rst) to this repository. | ||
|
||
- [ ] Make sure you are making a pull request against the **develop branch** (left side). Also you should start *your branch* off *our develop*. | ||
- [ ] Check the commit's or even all commits' message styles matches our requested structure. | ||
- [ ] Check your code additions will fail neither code linting checks nor unit test. | ||
|
||
### Description | ||
Please describe your pull request. | ||
|
||
### Further comments | ||
If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc... | ||
|
||
Thank you! |
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,47 @@ | ||
name: Publish to PyPI | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-n-publish: | ||
name: Build and publish to PyPI | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout source | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python 3.7 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.7" | ||
|
||
- name: Check that the current version isn't already on PyPi | ||
run: | | ||
if [ "$(./get_pypi_latest_version.sh)" != "$(python setup.py --version)" ] | ||
then | ||
echo "Current version is not on PyPI, proceed with bulding" | ||
else | ||
echo "Current version is the latest version uploaded to PyPI" | ||
exit 1 | ||
fi | ||
- name: Check long description is OK for PyPI with tox | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install tox sphinx | ||
tox -e pypi | ||
- name: Build a binary wheel and a source tarball | ||
run: | | ||
python -m pip install setuptools wheel | ||
python setup.py sdist bdist_wheel | ||
- name: Publish distribution to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} |
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,91 @@ | ||
name: Run Tests | ||
|
||
on: | ||
push: | ||
branches: [master, develop] | ||
pull_request: | ||
branches: [master, develop] | ||
schedule: | ||
- cron: "0 7 * * 1" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
lint: | ||
name: Linting (pre-commit) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the repo | ||
uses: actions/checkout@v2 | ||
- name: Set up Python 3.7 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.7" | ||
- name: Run pre-commit action | ||
uses: pre-commit/action@v2.0.0 | ||
|
||
tests: | ||
name: Test it! | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
python-version: [3.6, 3.9] | ||
os: [ubuntu-latest] | ||
steps: | ||
- name: Checkout the repo | ||
uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Update pip | ||
run: python -m pip install --upgrade pip | ||
- name: Get pip cache dir | ||
id: pip-cache | ||
run: | | ||
echo "::set-output name=dir::$(pip cache dir)" | ||
- name: Get current week number | ||
id: get-week | ||
shell: bash | ||
run: echo "::set-output name=week::$(date +'%V')" | ||
- name: Pip cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.pip-cache.outputs.dir }} | ||
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ steps.get-week.outputs.week }}-${{ hashFiles('setup.py') }} | ||
- name: Install from eodag develop branch | ||
run: pip install git+https://github.com/CS-SI/eodag.git@develop | ||
- name: Install other deps | ||
run: python -m pip install .[dev] | ||
- name: Test with pytest | ||
run: pytest --show-capture=no --cov --cov-fail-under=50 | ||
|
||
check-pypi: | ||
name: Long description check for PyPI | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the repo | ||
uses: actions/checkout@v2 | ||
- name: Set up Python 3.7 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.7" | ||
- name: Update pip | ||
run: python -m pip install --upgrade pip | ||
- name: Get pip cache dir | ||
id: pip-cache | ||
run: | | ||
echo "::set-output name=dir::$(pip cache dir)" | ||
- name: Get current week number | ||
id: get-week | ||
shell: bash | ||
run: echo "::set-output name=week::$(date +'%V')" | ||
- name: Pip cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.pip-cache.outputs.dir }} | ||
key: ${{ runner.os }}-pip-${{ steps.get-week.outputs.week }}-${{ hashFiles('setup.py') }} | ||
- name: Install tox and sphinx (to have rst2html.py utility available) | ||
run: | | ||
python -m pip install tox sphinx | ||
- name: Testing with tox | ||
run: python -m tox -e pypi |
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,41 +1,39 @@ | ||
# See https://pre-commit.com/ for usage and config | ||
exclude: '^$' | ||
fail_fast: false | ||
repos: | ||
- repo: local | ||
hooks: | ||
- id: isort | ||
name: isort | ||
stages: [commit] | ||
language: system | ||
entry: isort | ||
types: [python] | ||
|
||
- id: black | ||
name: black | ||
stages: [commit] | ||
language: system | ||
entry: black | ||
types: [python] | ||
- repo: https://github.com/pre-commit/pre-commit-hooks.git | ||
rev: v3.4.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-docstring-first | ||
- id: check-json | ||
- id: check-yaml | ||
args: [--allow-multiple-documents, --unsafe] | ||
- id: check-xml | ||
- id: check-added-large-files | ||
args: ['--maxkb=1600'] | ||
- id: debug-statements | ||
- id: check-merge-conflict | ||
|
||
- id: flake8 | ||
name: flake8 | ||
stages: [commit] | ||
language: system | ||
entry: flake8 | ||
types: [python] | ||
exclude: setup.py | ||
- repo: 'https://gitlab.com/pycqa/flake8' | ||
rev: 3.9.0 | ||
hooks: | ||
- id: flake8 | ||
|
||
- id: pytest | ||
name: pytest | ||
stages: [commit] | ||
language: system | ||
entry: pytest | ||
types: [python] | ||
pass_filenames: false | ||
- repo: 'https://github.com/ambv/black' | ||
rev: 20.8b1 | ||
hooks: | ||
- id: black | ||
args: ['--safe'] | ||
|
||
- id: pytest-cov | ||
name: pytest | ||
stages: [push] | ||
language: system | ||
entry: pytest --cov --cov-fail-under=50 | ||
types: [python] | ||
pass_filenames: false | ||
- repo: 'https://github.com/chewse/pre-commit-mirrors-pydocstyle' | ||
rev: v2.1.1 | ||
hooks: | ||
- id: pydocstyle | ||
|
||
- repo: https://github.com/pre-commit/mirrors-isort | ||
rev: v5.7.0 | ||
hooks: | ||
- id: isort |
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,17 @@ | ||
Release history | ||
--------------- | ||
|
||
0.1.2 (2021-06-18) | ||
++++++++++++++++++ | ||
|
||
- DataArray shape flipped (#12, thanks @ClaudioCiociola) | ||
|
||
0.1.1 (2021-01-15) | ||
++++++++++++++++++ | ||
|
||
- get_data, drivers, and RPC server from eodag | ||
|
||
0.1.0 (2021-01-15) | ||
++++++++++++++++++ | ||
|
||
- First release |
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
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
Oops, something went wrong.