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