Skip to content

Pyproject migration #110

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1,318 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1318 commits
Select commit Hold shift + click to select a range
3e2142d
Force use cartopy==0.19.0.post1 in docs
remi-braun Jan 2, 2023
134b8d6
Set jinja2 to 3.0.3 as a workaround for docs
remi-braun Jan 2, 2023
c6a6cfa
v0.19.0
remi-braun Jan 2, 2023
7de7ef9
Update notebooks
remi-braun Jan 2, 2023
f20e6c4
Use jupyter_execute_notebooks (to not rerun notebooks)
remi-braun Jan 2, 2023
eff252a
Force use sphinx 4+
remi-braun Jan 2, 2023
56b9c88
Don't use sphinx 6.0.0 as it appears broken
remi-braun Jan 2, 2023
d7007cf
Don't use sphinx 6.0.0 as it appears broken
remi-braun Jan 2, 2023
3ed4b2a
DOC: Set language to English
remi-braun Jan 2, 2023
ff6bd33
Don't use sphinx 6.0.0 as it appears broken
remi-braun Jan 2, 2023
4bc907f
Don't use sphinx 6.0.0 as it appears broken
remi-braun Jan 2, 2023
47e6e15
Use pygments==2.13.0 (workaround)
remi-braun Jan 2, 2023
e676d5d
Add ipython to render the python syntax
remi-braun Jan 2, 2023
2be3705
Try another workaround for missing syntax highlighting in nbsphinx re…
remi-braun Jan 2, 2023
9e9b711
Fix typo in doc
remi-braun Jan 2, 2023
6f4bd90
Better exception management for corrupted/missing files
remi-braun Jan 3, 2023
32a07c7
LIB: Pinning `sertit` to 1.22.0
remi-braun Jan 6, 2023
1e6f621
DOC: Adding a `Remove Clouds` notebook
remi-braun Jan 9, 2023
939bcf7
FIX: Fixing a bug for DIMAP V2 products whith GML masks opening witho…
remi-braun Jan 11, 2023
e4b45c7
Don't run tests when only __init__ or __meta__ is updated
remi-braun Jan 11, 2023
271fe72
v0.19.1
remi-braun Jan 11, 2023
4411e62
CI: Some factorizing in `gitlab-ci`
remi-braun Jan 11, 2023
13bee56
CLEAN: Removing useless GCP functions regarding Sentinel-3 data
remi-braun Jan 11, 2023
7ef5275
FIX: Fixing index creation when exotic bands not handled by ASI have …
remi-braun Jan 11, 2023
503267c
v0.19.1
remi-braun Jan 12, 2023
7b5b244
TYP: Fixing typos in typing
remi-braun Jan 19, 2023
0afb592
TYP: Fixing typos in typing
remi-braun Jan 19, 2023
b2763b4
Moving `EOREADER_NAME` and `DATETIME_FMT` into `__init__.py`
remi-braun Jan 20, 2023
c39c57a
Moving stacking function into `utils`
remi-braun Jan 20, 2023
9aaf672
OPTIM: Using warped VRT instead of reprojecting DEM/VHR stacks to UTM
remi-braun Jan 20, 2023
2ef2fe2
Updating CHANGES
remi-braun Jan 20, 2023
e551eb3
- FIX: Fixing stack when saved as integer for some special cases
remi-braun Jan 20, 2023
eaaa0ec
Minor fix regarding warpedVRT changes
remi-braun Jan 20, 2023
45ab55a
Using `assert_raster_almost_equal_magnitude` in CI to better check ac…
remi-braun Jan 24, 2023
5bce514
Update CI
remi-braun Jan 25, 2023
62d8270
CI: Adding weekly tests on Python 3.11
remi-braun Jan 26, 2023
f17a694
Removing unused `cache_property` decorator
remi-braun Feb 17, 2023
2a765a7
- FIX: Clipping negative reflectances to 0 #79
remi-braun Feb 20, 2023
b026aac
FIX: Fixing nodata mangement for Theia product
remi-braun Feb 20, 2023
7673a59
Officially handling Python 3.11 #71
remi-braun Feb 21, 2023
1ef71ff
FIX: Fixing handling of SCS multi-swath `Cosmo-SkyMed` products #78
remi-braun Feb 21, 2023
53b49ea
Typo in Cosmo path
remi-braun Feb 21, 2023
2990a8c
Fixing passing custom nodata value to `stack`
remi-braun Feb 21, 2023
b493272
- FIX: Writing spectral indices on disk to align with other bands #80
remi-braun Feb 21, 2023
548f433
In CHANGES: FIX: By default, calibration is not applied to slant rang…
remi-braun Feb 22, 2023
15447b9
DOC: Updating `Custom` notebook
remi-braun Feb 22, 2023
94e5e26
Precising the jupyter cache to use
remi-braun Feb 22, 2023
6872b02
Precising the jupyter cache to use
remi-braun Feb 22, 2023
848b17d
DOC: Updating jupyter cache to match new way of handling outputs in r…
remi-braun Feb 22, 2023
c6155d5
v0.19.2
remi-braun Feb 23, 2023
e70786f
Typos in CHANGES
remi-braun Feb 23, 2023
776d944
Fixing default SAR DEM ind docs
remi-braun Feb 28, 2023
791f340
OPTIM: Always use chunks when reading rasters #58
remi-braun Mar 6, 2023
c8497eb
OPTIM: Speed up VRT virtual warping
remi-braun Mar 6, 2023
18209fb
OPTIM: Speed up VRT virtual warping
remi-braun Mar 6, 2023
6c4c50f
Minor updates and bug corrections
remi-braun Mar 6, 2023
1398971
Set back bilinear resampling when warping VHR data
remi-braun Mar 6, 2023
3a37886
Try CI with chunk (1, 4096, 4096)
remi-braun Mar 7, 2023
cbdb7cd
Try CI with chunk (1, 1024, 1024)
remi-braun Mar 7, 2023
f51d648
Typo!
remi-braun Mar 7, 2023
2b94719
FIX: Fixing `Custom Stacks` when specifying `datetime=None` on creation
remi-braun Mar 7, 2023
a9cd6be
Convert chunk from env into int
remi-braun Mar 7, 2023
b948ef9
Try CI with chunk (1, 512, 512)
remi-braun Mar 7, 2023
90c4166
Try CI with chunk (1, 2048, 2048)
remi-braun Mar 7, 2023
3680030
Try CI with chunk (1, 1024, 1024)
remi-braun Mar 8, 2023
d262183
Setting back 2048 chunk size + other warpedVRT optimizations
remi-braun Mar 8, 2023
8003524
Typo in warp_mem_limit
remi-braun Mar 13, 2023
3d623e5
Remove chunk logs
remi-braun Mar 20, 2023
6b50b2c
Documenting TILE_SIZE
remi-braun Mar 22, 2023
86cfddd
Update notebooks (simplify logger init)
remi-braun Mar 22, 2023
ac3c16e
Update DAP link
remi-braun Mar 23, 2023
51e02a7
FIX: Fix regression for multi-swath DGM CSK data (huge region) #78
remi-braun Mar 23, 2023
56f703e
- FIX: Fix calibration issues with CSK HR data (using fallback GPT gr…
remi-braun Mar 23, 2023
10af96e
CI: Fix projection STAC extension's new version number (1.1.0)
remi-braun Mar 23, 2023
a4c7ac4
OPTIM: Better management of dask's usage
remi-braun Mar 23, 2023
1b6ed34
CI: Fix projection STAC extension's new version number (1.1.0)
remi-braun Mar 23, 2023
e1d52ce
v0.19.3
remi-braun Mar 24, 2023
53f6bc7
BREAKING CHANGES: Switching from `resolution` to `pixel_size` to avoi…
remi-braun Mar 24, 2023
1c0a048
Add a message refining the `ogr2ogr` issue for S1
remi-braun Mar 27, 2023
26d2891
- INTERNAL: Better management of logs for deprecation warnings
remi-braun Apr 6, 2023
89143e5
INTERNAL: Refactoring `simplify_footprint` in `sertit` library
remi-braun Apr 6, 2023
6f11d00
OPTIM: Don't recompute stacks if already existing on disk
remi-braun Apr 6, 2023
6de0bb0
INTERNAL: Refactoring `simplify_footprint` in `sertit` library
remi-braun Apr 6, 2023
71a6f60
FIX: Removing calibration step from SNAP pre-processing graph for mul…
remi-braun Apr 11, 2023
1af5d0e
change preview in S2_product from TCI to PVI
floriandeboissieu Apr 11, 2023
12adc87
Merge pull request #85 from floriandeboissieu/patch-2
remi-braun Apr 11, 2023
5c09e32
FIX: Fixing the paths to Sentinel-2 quicklooks: using PVI instead of …
remi-braun Apr 11, 2023
84966ee
STAC: Updates in STAC management
remi-braun Apr 11, 2023
f2d38d9
INTERNAL: Use `geopandas.estimate_utm_crs()` when possible
remi-braun Apr 11, 2023
3fc2740
Use sar_product CRS in extent
remi-braun Apr 11, 2023
bd0f1c3
v0.19.4
remi-braun Apr 12, 2023
78361c5
Update changes
remi-braun Apr 12, 2023
b7e47db
Merge pull request #86 from sertit/0.19.4
remi-braun Apr 12, 2023
4df0076
Merge branch '0.20.0'
remi-braun Apr 12, 2023
aad74eb
DEPS: Dropping support of Python 3.8 #81
remi-braun Apr 13, 2023
a8dd97a
Fix docker tag for CI
remi-braun Apr 13, 2023
d0ffebf
- FIX: Collocate bands before trying to create spectral indices: reso…
remi-braun Apr 17, 2023
c009e44
- FIX: Landsat band masking when specifying a custom resolution and a…
remi-braun Apr 17, 2023
9b5b7cd
Add documentation about default CRS #87
remi-braun Apr 19, 2023
9ee858b
Fix typo in spectral index computation
remi-braun Apr 19, 2023
0509c8e
BREAKING CHANGES: `load` function now returns a `xarray.Dataset`** #88
remi-braun Apr 20, 2023
2f36f8b
Pin sertit[full]>=1.27.0
remi-braun Apr 24, 2023
7149966
Fix save_as_int issues with Dataset
remi-braun Apr 24, 2023
3e30391
Test save_as_int with a list of bands
remi-braun Apr 24, 2023
17dbabf
Speed up tests using windows where possible
remi-braun Apr 24, 2023
f92c04f
To be sure bands are exactly aligned, collocate them even their size …
remi-braun Apr 24, 2023
3cdf25f
Round the default pixel_size of custom stacks
remi-braun Apr 24, 2023
7298c08
Using utils.read(..., as_type=...) instead of utils.read(...).astype(…
remi-braun Apr 24, 2023
5321850
Correcting some mistakes
remi-braun Apr 25, 2023
8d7d9bc
Install testing libs in CI docker
remi-braun Apr 25, 2023
79e9696
Fix call to pytest in CI
remi-braun Apr 25, 2023
be2bef2
Fix various minor issues and typos
remi-braun Apr 25, 2023
6613b31
Update documentation
remi-braun Apr 26, 2023
ea1be11
- FIX: Convert some fields of STAC items from non JSON serializable d…
remi-braun Apr 27, 2023
dd95117
Update notebooks
remi-braun Apr 27, 2023
d1fc310
Correcting SAR STAC
remi-braun Apr 27, 2023
219fa78
Set correct default pixel size for SAR data (retrieving it from the d…
remi-braun Apr 28, 2023
8f8dd10
Adding the pixel size information in the SAR documentation
remi-braun Apr 28, 2023
2e119fe
Minor updates
remi-braun Apr 28, 2023
329f931
Minor SAR corrections
remi-braun Apr 28, 2023
d1f63ed
ENH: Don't load data into memory when computing indices, ensuring tas…
remi-braun Apr 28, 2023
2a41bf0
Add mention in EGU2023
remi-braun Apr 28, 2023
08fb98d
Update README
remi-braun Apr 28, 2023
fe9f35f
FIX: Fix erroneous property set to `_get_raw_crs` for Maxar products
remi-braun May 23, 2023
462ca3c
Minor fix for pixel size and SLC RS2 data
remi-braun May 23, 2023
ddb9aab
Merge pull request #91 from sertit/0.20.0
remi-braun May 30, 2023
5b6b238
Update documentation
remi-braun May 31, 2023
ad4ab76
Merge branch '0.20.0'
remi-braun May 31, 2023
b18423b
Update documentation
remi-braun May 31, 2023
986f6c6
Update notebooks
remi-braun May 31, 2023
82c6328
Update documentation
remi-braun May 31, 2023
f0c4d6c
Set back Python version to 3.8 as readthedocs doesn't handle above ve…
remi-braun May 31, 2023
6dc77fc
Update cell metadata in notebooks + rollback to python 3.9
remi-braun May 31, 2023
07f554c
Add os key in readthedocs.yml
remi-braun May 31, 2023
3f629ed
Dont fix cartopy's version
remi-braun May 31, 2023
dec62e8
v0.20.0
remi-braun May 31, 2023
89e2ff0
COMPAT: Add the alias `GREEN_1` for GREEN I band of PlanetScope data,…
remi-braun Jun 9, 2023
8ed82ff
Update doc about GREEN_1
remi-braun Jun 9, 2023
5c9ba36
FIX: Allow band aliases (such as `"CA"` instead of `"COASTAL_AEROSOL"…
remi-braun Jun 9, 2023
ed76f03
Add GREEN1 deprecation warning #95
remi-braun Jun 9, 2023
b868701
Rename EOREADER_ALIASES to DEPRECATED_SPECTRAL_INDICES, waiting for t…
remi-braun Jun 9, 2023
ebce215
Fix GREEN1 deprecation warning
remi-braun Jun 12, 2023
1c0195c
Add tests for deprecation warnings
remi-braun Jun 12, 2023
9bc0f41
v0.20.1
remi-braun Jun 20, 2023
8f1fa49
FIX: Use already computed bands stored in `tmp` for Planet products
remi-braun Jun 21, 2023
64c48ad
Add the press release where EOReader was used to extract water for as…
remi-braun Jun 21, 2023
1a16fe9
v0.20.2
remi-braun Jun 22, 2023
cb264f2
Update README with more talks/blog articles
remi-braun Jul 7, 2023
0cb6140
: Minor fix in RasterioError handling when reading bands
remi-braun Jul 20, 2023
85549b8
FIX: Fix Landsat L2 surface reflectance and temperature computation #99
remi-braun Jul 20, 2023
116fe4a
FIX: Fix Landsat L2 surface reflectance and temperature computation #99
remi-braun Jul 20, 2023
dccb0ae
FIX: Upgraded to EO STAC extension v1.1.0 #83
remi-braun Jul 20, 2023
3f5f00b
FIX: Fixing TIR temperature conversion for Landsat-7
remi-braun Jul 21, 2023
9bc4285
Remove L7 exception for TIR conversion
remi-braun Jul 21, 2023
e039987
Minor CI updates
remi-braun Jul 21, 2023
f9ec5db
Update CI
remi-braun Jul 21, 2023
a7d1e66
Update CI
remi-braun Jul 21, 2023
9e30f93
v0.20.3
remi-braun Jul 24, 2023
5cd00e4
v0.20.3
remi-braun Jul 31, 2023
019527f
FIX: Fixing the PAN GSD for Landsat-OLI products
remi-braun Aug 3, 2023
5dfe6f4
FIX: Better management of default pixel size for multi-resolution pro…
remi-braun Aug 3, 2023
139e958
Adding FOSS4G youtube video
remi-braun Sep 1, 2023
119398d
FIX: Don't collocate a raster on itself
remi-braun Sep 25, 2023
b1dbea3
FIX: Update some code to match `sertit==1.29.0`
remi-braun Sep 26, 2023
c51dc38
FIX: Update some code to match `sertit==1.29.1`
remi-braun Sep 26, 2023
72fd90b
v0.20.4
remi-braun Sep 26, 2023
0bdf4cd
Add optical band mapping in README
remi-braun Oct 2, 2023
7517e2e
FIX: Update some code to match `sertit==1.30.0`
remi-braun Oct 4, 2023
24f2131
Minor corrections
remi-braun Oct 16, 2023
d7b0ba2
CI: Update pre-commit hooks
remi-braun Oct 19, 2023
89a743b
Black reformatting
remi-braun Oct 19, 2023
d3399e6
DEPS: Remove as many mention as possible to `cloudpathlib`
remi-braun Oct 20, 2023
da526c6
Rename `utils.stack_dict` to `utils.stack` since we are stacking data…
remi-braun Oct 20, 2023
66955c3
Dropping the useless `bands` argument in utils.stack
remi-braun Oct 25, 2023
ab06075
GITHUB: Update bug template
remi-braun Oct 25, 2023
ee35508
BREAKING CHANGES: Band ID for Sentinel-3 OLCI are now int instead of …
remi-braun Oct 30, 2023
e65c717
ENH: Allow to use bands IDs, names and common name added to mapped na…
remi-braun Oct 30, 2023
3c2899b
Fix raw_bands #111
remi-braun Oct 30, 2023
f815254
Fix Sentinel-3 OLCI band management #111
remi-braun Oct 31, 2023
c36e315
Fix Sentinel-3 OLCI band management #111
remi-braun Oct 31, 2023
9d880a7
ENH: Manage Sentinel-2 (currently L2A) as formatted on the cloud (Ele…
remi-braun Oct 31, 2023
c753186
Update sertit[full]>=1.31.0
remi-braun Oct 31, 2023
f9a693d
FIX: Fix jpg, png... quicklooks management when plotting
remi-braun Nov 2, 2023
1bd9af7
CI: Revamping `test_satellites`
remi-braun Nov 2, 2023
f0d5b89
Documentation and notebook updates
remi-braun Nov 2, 2023
21316bf
Add S2 on AWS cloud in the documentation
remi-braun Nov 2, 2023
c2cbbed
ENH: Handle Python 3.12. #113
remi-braun Nov 3, 2023
0896216
FIX: Use `auto` as default dask chunk (instead of `2048`)
remi-braun Nov 3, 2023
867f1d1
FIX: Fix an `xarray` issue when trying to compute percentiles when st…
remi-braun Nov 8, 2023
a2cc0e1
ENH: Manage Sentinel-2 as formatted on the cloud (Element84 or Sinerg…
remi-braun Nov 13, 2023
cb88924
ENH: Guard against S1 COG format, not yet handled by SNAP.
remi-braun Nov 14, 2023
e1efa83
Update notebook
remi-braun Nov 14, 2023
9ee2c2e
Check S2_SIN after all others
remi-braun Nov 14, 2023
9a22bc5
ENH: Calibration step for `Capella` products now exists in ESA SNAP. …
remi-braun Nov 14, 2023
219d02f
Update notebook to use sertit>=1.32.1 #104
remi-braun Nov 15, 2023
9c09a6e
DOC: Add example about the output management (in `base` notebook, #117)
remi-braun Nov 15, 2023
ba9e6f3
CI: Enabling pre-commit.ci and dependabot bots
remi-braun Nov 20, 2023
86472c1
Update notebooks
remi-braun Nov 20, 2023
3169702
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Nov 20, 2023
765346f
Merge pull request #119 from sertit/pre-commit-ci-update-config
remi-braun Nov 20, 2023
a36d811
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Nov 20, 2023
db4a671
Fixing comment
remi-braun Nov 20, 2023
5e79cdd
Allow the possibility to and another separator in get_split_name
remi-braun Nov 20, 2023
a8b7bd4
Update AWS notebook
remi-braun Nov 20, 2023
78aa664
Merge remote-tracking branch 'origin/main' into 0.21.0
remi-braun Nov 20, 2023
aecfcd9
STAC products
remi-braun Dec 1, 2023
b3d6e1a
ENH: Handling of Sentinel-1 SM products.
remi-braun Dec 1, 2023
2b07aad
Update CI to use new containers
remi-braun Dec 4, 2023
085066f
Merge branch 'main' into 0.21.0
remi-braun Dec 4, 2023
14a7f84
Fix reflectance management for E84 and MPC S2 products
remi-braun Dec 4, 2023
de30d41
Update documentation links
remi-braun Dec 4, 2023
34ed5c0
ENH: Handling of Sentinel-1 ASF RTC products. #112
remi-braun Dec 5, 2023
8820e51
CI: Enabling pre-commit.ci and dependabot bots
remi-braun Dec 5, 2023
471ea2b
Bump actions/checkout from 3 to 4
dependabot[bot] Dec 5, 2023
38bf34b
Merge branch 'main' into 0.21.0
remi-braun Dec 5, 2023
13d3813
Merge pull request #121 from sertit/dependabot/github_actions/actions…
remi-braun Dec 5, 2023
63c6956
Merge branch 'main' into 0.21.0
remi-braun Dec 5, 2023
86cf95a
ENH: Handling of Sentinel-1 MPC RTC products. #118
remi-braun Dec 5, 2023
232ac93
Fix imports
remi-braun Dec 5, 2023
031b84c
CI: Some refactoring
remi-braun Dec 5, 2023
ba88b9f
Big internal refactoring + speeding up the every day CI + fix issues …
remi-braun Dec 7, 2023
3f5bdd3
Bump actions/setup-python from 4 to 5
dependabot[bot] Dec 11, 2023
02e134c
Merge pull request #122 from sertit/dependabot/github_actions/actions…
remi-braun Dec 11, 2023
c9d1663
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Dec 11, 2023
f00498a
Merge pull request #123 from sertit/pre-commit-ci-update-config
remi-braun Dec 11, 2023
be785f9
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Dec 18, 2023
fcad089
Merge pull request #124 from sertit/pre-commit-ci-update-config
remi-braun Dec 20, 2023
129728a
Update weekly CI
remi-braun Dec 22, 2023
e582287
Merge pull request #126 from sertit/0.21.0
remi-braun Dec 22, 2023
cdba0e3
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jan 1, 2024
3d985d4
Merge pull request #127 from sertit/pre-commit-ci-update-config
remi-braun Jan 2, 2024
35b5c4f
ENH: Better handling of calibration step in SNAP for SAR data
remi-braun Jan 2, 2024
d5fe32d
DOC: Update copyright to 2024
remi-braun Jan 2, 2024
3e3c5f7
Add doc about known SNAP errors and update sertit to 1.33.0
remi-braun Jan 2, 2024
3ae811a
Removing broken or useless test from CI
remi-braun Jan 4, 2024
86f4e2a
FIX name management of broken S2 products
remi-braun Jan 4, 2024
b601134
Fixing chunk deprecation warning
remi-braun Jan 4, 2024
5dc4d00
Update STAC weekly test to bypass not found band
remi-braun Jan 4, 2024
3aa1b6a
Speed up scheduled test for other python versions
remi-braun Jan 4, 2024
d76e3af
Wrong error in CI STAC with "NoSuchBucket"
remi-braun Jan 4, 2024
35e8838
v0.21.0
remi-braun Jan 8, 2024
cbc1c9a
FIX: Don't force install `planetary-computer` or `stac-asset` to use …
remi-braun Jan 8, 2024
48c2605
v0.21.0.post0
remi-braun Jan 8, 2024
0706e9b
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Feb 5, 2024
26fbded
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 5, 2024
05ac722
Merge pull request #129 from sertit/pre-commit-ci-update-config
remi-braun Feb 6, 2024
e91ecc3
Remove twitter from README
remi-braun Feb 6, 2024
e7efa6a
Use pyproject.toml instead of setup.py
bastiencyr Oct 18, 2023
7947e7b
Migrate from setup.py to pyproject.toml and update sphinx version
bastiencyr Mar 13, 2024
a70e09d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[run]
omit =
*/__init__.py

[report]
exclude_lines =
# Don't complain about missing debug-only code:
def __repr__
if self\.debug

# Don't complain if tests don't hit defensive assertion code:
raise AssertionError
raise NotImplementedError
raise InvalidProductError
raise InvalidTypeError
raise InvalidIndexError
raise InvalidBandError
raise TypeError
raise OsError
raise FileNotFoundError
raise ValueError
raise OSError
except
LOGGER.warning
LOGGER.debug
return {}

# Don't complain if non-runnable code isn't run:
if 0:
if __name__ == .__main__.:

# Don't complain about abstract methods, they aren't run:
@(abc\.)?abstractmethod
4 changes: 4 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# compatibility black and flake8
[flake8]
max-line-length = 88
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

max-line-length = 200 si tu peux 😇 88 c'est trop peu j'aime pas

Copy link
Contributor Author

@bastiencyr bastiencyr Mar 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

En réalité ça ne change rien, la limite de 88 est la limite par défaut dans black qui n'a pas été changé dans eoreader. On respecte donc deja 88 comme longueur maximale avec Black, c'est pour ça que les tests de pré commits sont passés sans erreur.

extend-ignore = E203, E501
27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
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

```python
```

**Output**
Compete output obtained with maximal verbosity.

**Environment:**
- Python version: `python --version`
- eoreader version: `import eoreader; eoreader.__version__`

**Additional context**
Add any other context about the bug here.
4 changes: 4 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
contact_links:
- name: Ask questions
url: https://github.com/sertit/eoreader/discussions/categories/q-a
about: Please ask and answer questions here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
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.
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
# Check for updates once a week
interval: 'weekly'
13 changes: 13 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
### Your checklist for this pull request
Please review the [guidelines for contributing](../CONTRIBUTING.md) to this repository.

- [ ] 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!
41 changes: 41 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
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@v4

- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: "3.9"

- 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: Build a binary wheel and a source tarball
run: |
python -m pip install setuptools wheel methodtools
python setup.py sdist bdist_wheel
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: ${{ secrets.PYPI_TOKEN }}
password: ${{ secrets.PYPI_PWD }}
21 changes: 21 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Mirror and run GitLab CI

on: [ push ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Mirror + trigger CI
uses: SvanBoxel/gitlab-mirror-and-ci-action@master
with:
args: "https://${{ secrets.GITLAB_HOSTNAME }}/sertit/libraries/eoreader"
env:
GITLAB_HOSTNAME: ${{ secrets.GITLAB_HOSTNAME }}
GITLAB_USERNAME: ${{ secrets.GITLAB_USERNAME }}
GITLAB_PASSWORD: ${{ secrets.GITLAB_PASSWORD }}
GITLAB_PROJECT_ID: ${{ secrets.GITLAB_PROJECT_ID }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42 changes: 42 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Generic extension to ignore
*.py[cod]
.idea
*.txt
!*requirements.txt
*.aux.xml
__pycache__/
*.gfs
.tox
.coverage
cov.xml
*.lock
.run
venv

# Discard CI/OUTPUTS
CI/OUTPUT/*
CI/DATA/*/*_DEM.tif
CI/DATA/*/*_clean.tif
!CI/DATA/*/*_S3_*_DEM.tif
CI/DATA/*/*_HILLSHADE.tif
CI/DATA/*/*_SLOPE.tif
CI/DATA/OUTPUT/*

# Build options
build/
*.egg-info/
dist/

# Docs & Notebooks
docs/_build/*
!docs/_build/.jupyter_cache
docs/api
.ipynb_checkpoints
/docs/notebooks/test.ipynb

# Dask
dask-worker-space/*

# Other files
/CI/SCRIPTS/test.py
/notebooks_tests/
Loading