This repository has been archived by the owner on Jul 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
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 #1 from CS-SI/develop
v0.2
- Loading branch information
Showing
16 changed files
with
614 additions
and
232 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 |
---|---|---|
|
@@ -27,4 +27,3 @@ tab_width=4 | |
[{*.yaml,*.yml}] | ||
indent_style=space | ||
indent_size=2 | ||
|
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-sentinelsat 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,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,53 @@ | ||
name: Run Tests | ||
|
||
on: | ||
push: | ||
branches: [master, develop] | ||
pull_request: | ||
branches: [master, develop] | ||
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/[email protected] | ||
|
||
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
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,39 @@ | ||
exclude: '^$' | ||
fail_fast: false | ||
repos: | ||
|
||
- 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 | ||
|
||
- repo: 'https://gitlab.com/pycqa/flake8' | ||
rev: 3.9.0 | ||
hooks: | ||
- id: flake8 | ||
|
||
- repo: 'https://github.com/ambv/black' | ||
rev: 20.8b1 | ||
hooks: | ||
- id: black | ||
args: ['--safe'] | ||
|
||
- 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
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,3 +1,3 @@ | ||
include LICENSE | ||
include NOTICE | ||
include README.rst | ||
include README.rst |
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.