windkit 0.6.2__tar.gz → 0.8.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- windkit-0.8.0/.conda_env/dev_unix.yml +44 -0
- windkit-0.8.0/.conda_env/dev_win.yml +42 -0
- windkit-0.8.0/.conda_env/prod_unix.yml +14 -0
- {windkit-0.6.2 → windkit-0.8.0}/.gitignore +3 -2
- {windkit-0.6.2 → windkit-0.8.0}/.gitlab/merge_request_templates/default.md +1 -0
- windkit-0.8.0/.gitlab/merge_request_templates/release.md +43 -0
- windkit-0.8.0/.gitlab-ci.yml +132 -0
- {windkit-0.6.2 → windkit-0.8.0}/.pre-commit-config.yaml +11 -9
- windkit-0.8.0/CHANGELOG.md +427 -0
- {windkit-0.6.2 → windkit-0.8.0}/MANIFEST.in +3 -0
- {windkit-0.6.2 → windkit-0.8.0}/PKG-INFO +20 -3
- {windkit-0.6.2 → windkit-0.8.0}/README-Internal.md +2 -2
- {windkit-0.6.2 → windkit-0.8.0}/docs/source/conf.py +3 -0
- windkit-0.8.0/docs/source/getting_started.rst +13 -0
- {windkit-0.6.2 → windkit-0.8.0}/docs/source/index.rst +3 -1
- {windkit-0.6.2 → windkit-0.8.0}/docs/source/installation.rst +5 -0
- {windkit-0.6.2 → windkit-0.8.0}/docs/source/io/io.rst +26 -2
- {windkit-0.6.2 → windkit-0.8.0}/docs/source/topographic_data.rst +13 -3
- windkit-0.8.0/docs/source/wind_climate_objects.rst +210 -0
- windkit-0.8.0/docs/source/wind_turbines.rst +138 -0
- windkit-0.8.0/examples/ERA5_Sujawal_2010_2018_80m.nc +0 -0
- windkit-0.8.0/examples/long_term_correction.ipynb +547 -0
- windkit-0.8.0/pixi.lock +31168 -0
- windkit-0.8.0/pixi.toml +63 -0
- {windkit-0.6.2 → windkit-0.8.0}/pyproject.toml +0 -1
- windkit-0.8.0/recipe/recipe.yaml +54 -0
- {windkit-0.6.2 → windkit-0.8.0}/setup.cfg +21 -16
- {windkit-0.6.2 → windkit-0.8.0}/windkit/__init__.py +10 -11
- windkit-0.6.2/windkit/get_map.py → windkit-0.8.0/windkit/_earth_engine.py +80 -114
- windkit-0.8.0/windkit/_gwa_map_api.py +188 -0
- windkit-0.8.0/windkit/_planetary_computer.py +464 -0
- {windkit-0.6.2 → windkit-0.8.0}/windkit/_rvea_xml.py +0 -1
- {windkit-0.6.2 → windkit-0.8.0}/windkit/_validate.py +12 -1
- {windkit-0.6.2 → windkit-0.8.0}/windkit/_vectormap_gml.py +3 -3
- {windkit-0.6.2 → windkit-0.8.0}/windkit/_vectormap_helpers.py +7 -0
- windkit-0.8.0/windkit/_version.py +16 -0
- windkit-0.8.0/windkit/_weibull_nb.py +485 -0
- {windkit-0.6.2 → windkit-0.8.0}/windkit/all_vars.json +37 -15
- {windkit-0.6.2 → windkit-0.8.0}/windkit/binned_wind_climate.py +275 -226
- {windkit-0.6.2 → windkit-0.8.0}/windkit/cfd.py +11 -1
- {windkit-0.6.2 → windkit-0.8.0}/windkit/data_structures.py +3 -1
- {windkit-0.6.2 → windkit-0.8.0}/windkit/elevation_map.py +1 -0
- windkit-0.8.0/windkit/empty.py +761 -0
- {windkit-0.6.2 → windkit-0.8.0}/windkit/generalized_wind_climate.py +96 -19
- windkit-0.8.0/windkit/geostrophic_wind_climate.py +59 -0
- windkit-0.8.0/windkit/get_map.py +277 -0
- {windkit-0.6.2 → windkit-0.8.0}/windkit/landcover.py +186 -3
- windkit-0.8.0/windkit/landcovertables/ESA_CCI.json +192 -0
- windkit-0.8.0/windkit/ltc/__init__.py +7 -0
- windkit-0.8.0/windkit/ltc/_validation.py +120 -0
- windkit-0.8.0/windkit/ltc/mcp.py +272 -0
- windkit-0.8.0/windkit/ltc/regression.py +143 -0
- windkit-0.8.0/windkit/ltc/scores.py +164 -0
- windkit-0.8.0/windkit/map_conversion/__init__.py +3 -0
- windkit-0.8.0/windkit/map_conversion/_polygons_constraints.py +116 -0
- {windkit-0.6.2 → windkit-0.8.0}/windkit/map_conversion/helper_functions.py +42 -3
- {windkit-0.6.2 → windkit-0.8.0}/windkit/map_conversion/lines2poly.py +44 -29
- {windkit-0.6.2 → windkit-0.8.0}/windkit/map_conversion/poly2lines.py +180 -164
- {windkit-0.6.2 → windkit-0.8.0}/windkit/metadata.py +23 -13
- {windkit-0.6.2 → windkit-0.8.0}/windkit/plot/histogram.py +19 -28
- {windkit-0.6.2 → windkit-0.8.0}/windkit/plot/roughness_rose.py +8 -8
- {windkit-0.6.2 → windkit-0.8.0}/windkit/plot/wind_rose.py +12 -26
- {windkit-0.6.2 → windkit-0.8.0}/windkit/raster_map.py +86 -1
- {windkit-0.6.2 → windkit-0.8.0}/windkit/sector.py +54 -4
- {windkit-0.6.2 → windkit-0.8.0}/windkit/spatial/__init__.py +24 -5
- windkit-0.8.0/windkit/spatial/_bbox.py +392 -0
- {windkit-0.6.2 → windkit-0.8.0}/windkit/spatial/_crs.py +0 -1
- windkit-0.8.0/windkit/spatial/_cuboid.py +182 -0
- windkit-0.8.0/windkit/spatial/_interpolation.py +732 -0
- windkit-0.8.0/windkit/spatial/_metpy_natural_neighbors.py +627 -0
- {windkit-0.6.2 → windkit-0.8.0}/windkit/spatial/_raster.py +223 -17
- {windkit-0.6.2 → windkit-0.8.0}/windkit/spatial/_struct.py +1 -1
- {windkit-0.6.2 → windkit-0.8.0}/windkit/spatial/decorators.py +0 -1
- {windkit-0.6.2 → windkit-0.8.0}/windkit/spatial/spatial.py +347 -25
- {windkit-0.6.2 → windkit-0.8.0}/windkit/time_series_wind_climate.py +36 -10
- {windkit-0.6.2 → windkit-0.8.0}/windkit/vector_map.py +135 -55
- windkit-0.8.0/windkit/weibull.py +496 -0
- {windkit-0.6.2 → windkit-0.8.0}/windkit/weibull_wind_climate.py +519 -67
- windkit-0.8.0/windkit/wind.py +451 -0
- windkit-0.8.0/windkit/wind_climate.py +290 -0
- windkit-0.8.0/windkit/wind_data.py +82 -0
- windkit-0.6.2/windkit/wind_turbine.py → windkit-0.8.0/windkit/wind_turbine_generator.py +194 -20
- windkit-0.8.0/windkit/wind_turbines.py +243 -0
- {windkit-0.6.2 → windkit-0.8.0}/windkit/workspace.py +3 -2
- {windkit-0.6.2 → windkit-0.8.0}/windkit.egg-info/SOURCES.txt +27 -23
- windkit-0.6.2/.gitlab-ci.yml +0 -415
- windkit-0.6.2/CHANGELOG.md +0 -214
- windkit-0.6.2/CI_helper_scripts/post_build_test_nix.sh +0 -23
- windkit-0.6.2/CI_helper_scripts/post_build_test_win.sh +0 -22
- windkit-0.6.2/docs/source/wind_climate_objects.rst +0 -40
- windkit-0.6.2/env/Dockerfile.api +0 -16
- windkit-0.6.2/env/Dockerfile.ci +0 -25
- windkit-0.6.2/env/Dockerfile.miniconda +0 -20
- windkit-0.6.2/env/Makefile +0 -6
- windkit-0.6.2/env/conda-linux-64.lock +0 -52
- windkit-0.6.2/env/conda-osx-64.lock +0 -307
- windkit-0.6.2/env/conda-win-64.lock +0 -367
- windkit-0.6.2/env/create_locks.py +0 -64
- windkit-0.6.2/env/dev_env.yaml +0 -58
- windkit-0.6.2/env/pywasp.cfg +0 -11
- windkit-0.6.2/env/pywasp_env.yml +0 -38
- windkit-0.6.2/env/pywaspio_env.yml +0 -31
- windkit-0.6.2/env/windkit.ini +0 -4
- windkit-0.6.2/recipe/meta.yaml +0 -42
- windkit-0.6.2/windkit/_version.py +0 -4
- windkit-0.6.2/windkit/empty.py +0 -524
- windkit-0.6.2/windkit/map_conversion/__init__.py +0 -0
- windkit-0.6.2/windkit/spatial/_bbox.py +0 -209
- windkit-0.6.2/windkit/spatial/_cuboid.py +0 -26
- windkit-0.6.2/windkit/spatial/_interpolation.py +0 -158
- windkit-0.6.2/windkit/weibull.py +0 -468
- windkit-0.6.2/windkit/wind.py +0 -166
- windkit-0.6.2/windkit/wind_climate.py +0 -119
- windkit-0.6.2/windkit.egg-info/PKG-INFO +0 -53
- windkit-0.6.2/windkit.egg-info/dependency_links.txt +0 -1
- windkit-0.6.2/windkit.egg-info/entry_points.txt +0 -2
- windkit-0.6.2/windkit.egg-info/requires.txt +0 -22
- windkit-0.6.2/windkit.egg-info/top_level.txt +0 -1
- {windkit-0.6.2 → windkit-0.8.0}/.pylintrc +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/LICENSE +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/README.md +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/docs/.dockerignore +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/docs/.gitignore +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/docs/Dockerfile +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/docs/Makefile +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/docs/docker-compose.yml +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/docs/legacy/dev/dev-git.rst +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/docs/legacy/dev/dev-intro.rst +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/docs/legacy/dev/dev-pytest.rst +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/docs/legacy/dev/dev-sphinx.rst +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/docs/nginx.conf +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/docs/source/WAsP.bib +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/docs/source/_templates/autosummary/class.rst +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/docs/source/_templates/autosummary/module.rst +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/docs/source/development_roadmap.rst +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/docs/source/map_conversion.rst +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/docs/source/map_conversion_examples_nb.nblink +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/docs/source/plotting.rst +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/docs/source/plotting_examples.rst +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/docs/source/plotting_examples_nb.nblink +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/docs/source/plotting_user_guide.rst +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/docs/source/release_notes.rst +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/docs/source/windkit.rst +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/windkit/_errors.py +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/windkit/config.py +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/windkit/geospatial_imports.py +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/windkit/landcovertables/CGLS-LC100.json +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/windkit/landcovertables/CORINE.json +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/windkit/landcovertables/Globcover.json +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/windkit/landcovertables/MODIS.json +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/windkit/landcovertables/WorldCover.json +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/windkit/map_file_header_to_epsg.json +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/windkit/plot/__init__.py +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/windkit/plot/_colormaps.py +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/windkit/plot/_helpers.py +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/windkit/plot/color.py +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/windkit/plot/landcover_map.py +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/windkit/plot/operational_curves.py +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/windkit/plot/raster_plot.py +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/windkit/plot/vertical_profile.py +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/windkit/plot/wind_turbine.py +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/windkit/roughness_map.py +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/windkit/spatial/README.md +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/windkit/spatial/_dimensions.py +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/windkit/spatial/_latitude.py +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/windkit/spatial/_point.py +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/windkit/spatial/_utm.py +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/windkit/spatial/_vector.py +0 -0
- {windkit-0.6.2 → windkit-0.8.0}/windkit/spatial/_vertical.py +0 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
name: base
|
|
2
|
+
channels:
|
|
3
|
+
- conda-forge
|
|
4
|
+
- https://conda.windenergy.dtu.dk/channel/open
|
|
5
|
+
dependencies:
|
|
6
|
+
- dtu_config
|
|
7
|
+
- geopandas >=0.12
|
|
8
|
+
- lxml =4
|
|
9
|
+
- matplotlib >=3.6
|
|
10
|
+
- netcdf4 >=1.5
|
|
11
|
+
- numpy >=1.24
|
|
12
|
+
- packaging >=22
|
|
13
|
+
- pandas >=2
|
|
14
|
+
- plotly >=5.12
|
|
15
|
+
- pyproj >=3.4
|
|
16
|
+
- python >=3.10
|
|
17
|
+
- python-kaleido >=0.2
|
|
18
|
+
- rasterio =1
|
|
19
|
+
- scipy >=1.9
|
|
20
|
+
- shapely =2
|
|
21
|
+
- xarray >=2023
|
|
22
|
+
- rioxarray >=0.13
|
|
23
|
+
# Build dependencies all
|
|
24
|
+
- pip
|
|
25
|
+
- git
|
|
26
|
+
- setuptools
|
|
27
|
+
- setuptools_scm
|
|
28
|
+
# Developer dependencies
|
|
29
|
+
- conda-lock
|
|
30
|
+
- ipython
|
|
31
|
+
- jupyter
|
|
32
|
+
- jupyter-dash
|
|
33
|
+
- make
|
|
34
|
+
- nbsphinx
|
|
35
|
+
- nbsphinx-link
|
|
36
|
+
- pre-commit
|
|
37
|
+
- pytest
|
|
38
|
+
- pytest-cov
|
|
39
|
+
- recommonmark
|
|
40
|
+
- sphinx
|
|
41
|
+
- sphinx_rtd_theme
|
|
42
|
+
- sphinx-argparse
|
|
43
|
+
- sphinxcontrib-bibtex
|
|
44
|
+
- myst-parser
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
name: base # TODO: custom env and cat it in the script : )
|
|
2
|
+
channels:
|
|
3
|
+
- conda-forge
|
|
4
|
+
- https://conda.windenergy.dtu.dk/channel/open
|
|
5
|
+
dependencies:
|
|
6
|
+
- dtu_config
|
|
7
|
+
- geopandas >=0.12
|
|
8
|
+
- lxml =4
|
|
9
|
+
- matplotlib >=3.6
|
|
10
|
+
- netcdf4 >=1.5
|
|
11
|
+
- numpy >=1.24
|
|
12
|
+
- packaging >=22
|
|
13
|
+
- pandas >=2
|
|
14
|
+
- plotly >=5.12
|
|
15
|
+
- pyproj >=3.4
|
|
16
|
+
- python >=3.10
|
|
17
|
+
- python-kaleido >=0.2
|
|
18
|
+
- rasterio =1
|
|
19
|
+
- scipy >=1.9
|
|
20
|
+
- shapely =2
|
|
21
|
+
- xarray >=2023
|
|
22
|
+
- rioxarray >=0.15
|
|
23
|
+
# Build dependencies all
|
|
24
|
+
- pip
|
|
25
|
+
- setuptools
|
|
26
|
+
- setuptools_scm
|
|
27
|
+
# Developer dependencies
|
|
28
|
+
- conda-lock
|
|
29
|
+
- ipython
|
|
30
|
+
- jupyter
|
|
31
|
+
- jupyter-dash
|
|
32
|
+
- make
|
|
33
|
+
- nbsphinx
|
|
34
|
+
- nbsphinx-link
|
|
35
|
+
- pre-commit
|
|
36
|
+
- pytest
|
|
37
|
+
- pytest-cov
|
|
38
|
+
- recommonmark
|
|
39
|
+
- sphinx
|
|
40
|
+
- sphinx_rtd_theme
|
|
41
|
+
- sphinx-argparse
|
|
42
|
+
- sphinxcontrib-bibtex
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Release Process
|
|
2
|
+
|
|
3
|
+
# Summary
|
|
4
|
+
|
|
5
|
+
This MR contains the changes for the release [version].
|
|
6
|
+
(add a brief description)
|
|
7
|
+
|
|
8
|
+
## Checklist
|
|
9
|
+
|
|
10
|
+
Once this checklist is completed, you can merge.
|
|
11
|
+
|
|
12
|
+
- [ ] Update Changelog
|
|
13
|
+
- [ ] Test Build
|
|
14
|
+
- [ ] Merge with master
|
|
15
|
+
- [ ] Add Tag
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Update Changelog
|
|
19
|
+
Follow all the steps below before checking the mark for Update changelog
|
|
20
|
+
|
|
21
|
+
- The CHANGELOG.md subtitle "Unreleased" needs to be changed to the version being released, including the date
|
|
22
|
+
- The content under "Unreleased" may need to be rewritten to be more friendly
|
|
23
|
+
- Move the changelog content to the documentation website under "Release
|
|
24
|
+
Notes / Changelog". (This is done by the CI platform)
|
|
25
|
+
|
|
26
|
+
Follow all the steps below before checking the mark for Update changelog
|
|
27
|
+
|
|
28
|
+
The CHANGELOG.md subtitle "Unreleased" needs to be changed the version being released
|
|
29
|
+
here, including the date
|
|
30
|
+
Restructure the content under "Unreleased" to be more userfriendly
|
|
31
|
+
|
|
32
|
+
### Test Build
|
|
33
|
+
Follow all the steps below before checking the mark for Test Build
|
|
34
|
+
- Test must pass
|
|
35
|
+
- -...
|
|
36
|
+
|
|
37
|
+
### Merge with master
|
|
38
|
+
Follow all the steps below before checking the mark for Merge with master
|
|
39
|
+
- ...
|
|
40
|
+
|
|
41
|
+
### Add Tag
|
|
42
|
+
Follow all the steps below before checking the mark for Add Tag
|
|
43
|
+
- Add tag to the branch with the command `git tag ...`
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
stages:
|
|
2
|
+
- format
|
|
3
|
+
- build_test_env
|
|
4
|
+
- test
|
|
5
|
+
- build
|
|
6
|
+
- deploy
|
|
7
|
+
|
|
8
|
+
include:
|
|
9
|
+
- project: "ram/software/ci-recipes"
|
|
10
|
+
ref: main
|
|
11
|
+
file:
|
|
12
|
+
- utils/default_vars.yml
|
|
13
|
+
- precommit_format.yml
|
|
14
|
+
- python/run_pytest.yml
|
|
15
|
+
- python/run_sphinx.yml
|
|
16
|
+
- python/py_build.yml
|
|
17
|
+
- python/py_deploy.yml
|
|
18
|
+
|
|
19
|
+
default:
|
|
20
|
+
tags: ["ramtt_int-cluster", "linux-docker"]
|
|
21
|
+
|
|
22
|
+
# Check that pre-commit has run
|
|
23
|
+
run_precommit:
|
|
24
|
+
script:
|
|
25
|
+
- pre-commit clean
|
|
26
|
+
extends: .verify_precommit
|
|
27
|
+
|
|
28
|
+
# Build environments for testing
|
|
29
|
+
# TODO: uncomment when ready
|
|
30
|
+
# build_test_win:
|
|
31
|
+
# before_script:
|
|
32
|
+
# # Do NOT OVERRIDE templated clauses
|
|
33
|
+
# - !reference [.build_test_env_sh, before_script]
|
|
34
|
+
# - rm -rf /C/ProgramData/mambaforge/envs/windkit_ci
|
|
35
|
+
# extends: .build_test_env_sh
|
|
36
|
+
# variables:
|
|
37
|
+
# DEV_ENV_FILE: .conda_env/dev_win.yml
|
|
38
|
+
# tags: ["conda", "win10"]
|
|
39
|
+
# TODO: macos?
|
|
40
|
+
# build_test_osx:
|
|
41
|
+
# extends: .build_test_env_sh
|
|
42
|
+
# variables:
|
|
43
|
+
# DEV_ENV_FILE: .conda_env/dev_unix.yml
|
|
44
|
+
# tags: ["conda", "macos"]
|
|
45
|
+
build_test_docker:
|
|
46
|
+
extends: .build_test_env_docker
|
|
47
|
+
|
|
48
|
+
# Run tests
|
|
49
|
+
.notebooks:
|
|
50
|
+
variables:
|
|
51
|
+
IPYNB_TESTS: "plotly.ipynb"
|
|
52
|
+
# TODO: uncomment when ready
|
|
53
|
+
# test_win:
|
|
54
|
+
# extends:
|
|
55
|
+
# - .pytest_nbval_conda_env
|
|
56
|
+
# - .notebooks
|
|
57
|
+
# before_script:
|
|
58
|
+
# - conda activate ${CI_PROJECT_NAME}_ci
|
|
59
|
+
# tags: ["conda", "win10"]
|
|
60
|
+
# needs: ["build_test_win"]
|
|
61
|
+
# TODO: macos?
|
|
62
|
+
# test_osx:
|
|
63
|
+
# extends:
|
|
64
|
+
# - .pytest_nbval_conda_env
|
|
65
|
+
# - .notebooks
|
|
66
|
+
# before_script:
|
|
67
|
+
# - source activate ${CI_PROJECT_NAME}_ci
|
|
68
|
+
# tags: ["conda", "macos"]
|
|
69
|
+
# needs: ["build_test_osx"]
|
|
70
|
+
test_linux:
|
|
71
|
+
extends:
|
|
72
|
+
- .pytest_nbval_conda_env
|
|
73
|
+
- .notebooks
|
|
74
|
+
|
|
75
|
+
# Build
|
|
76
|
+
build_wheel:
|
|
77
|
+
extends: .build_wheel_template
|
|
78
|
+
build_conda:
|
|
79
|
+
extends: .build_rattler_template
|
|
80
|
+
variables:
|
|
81
|
+
PY_BUILD_CHANNELS: "-c conda-forge -c https://conda.windenergy.dtu.dk/channel/open"
|
|
82
|
+
|
|
83
|
+
# Deploy
|
|
84
|
+
deploy_pypi:
|
|
85
|
+
extends: .deploy_pypi_open
|
|
86
|
+
variables:
|
|
87
|
+
# TODO: switch to prod later
|
|
88
|
+
TWINE_REPOSITORY: testpypi
|
|
89
|
+
needs: ["build_wheel"]
|
|
90
|
+
deploy_conda:
|
|
91
|
+
extends: .deploy_conda_open
|
|
92
|
+
needs: ["build_conda"]
|
|
93
|
+
deploy_conda_dev:
|
|
94
|
+
extends: .deploy_conda_dev
|
|
95
|
+
needs: ["build_conda"]
|
|
96
|
+
|
|
97
|
+
# Docs
|
|
98
|
+
build_docs:
|
|
99
|
+
extends: .build_docs
|
|
100
|
+
tags: ["ramtt_int-cluster", "linux-docker"]
|
|
101
|
+
pages:
|
|
102
|
+
extends: .deploy_docs_pages
|
|
103
|
+
needs: ["build_docs"]
|
|
104
|
+
tags: ["doc_deploy"]
|
|
105
|
+
docs_deploy:
|
|
106
|
+
extends: .deploy_docs_wasp
|
|
107
|
+
needs: ["build_docs"]
|
|
108
|
+
tags: ["doc_deploy"]
|
|
109
|
+
|
|
110
|
+
### MIGHT BE USED LATER ###
|
|
111
|
+
|
|
112
|
+
# # OS selectors:
|
|
113
|
+
# .linux_docker_mambaforge: &linux_docker_mambaforge
|
|
114
|
+
# image: condaforge/mambaforge:latest
|
|
115
|
+
# tags:
|
|
116
|
+
# - linux-docker
|
|
117
|
+
|
|
118
|
+
# .linux_docker_pywasp_env: &linux_docker_pywasp_env
|
|
119
|
+
# image: nedadtu/pywasp-ci:latest
|
|
120
|
+
# tags:
|
|
121
|
+
# - linux-docker
|
|
122
|
+
|
|
123
|
+
# .windows: &windows
|
|
124
|
+
# tags:
|
|
125
|
+
# - conda
|
|
126
|
+
# - win10
|
|
127
|
+
|
|
128
|
+
# not mac for now
|
|
129
|
+
#.mac: &mac
|
|
130
|
+
# tags:
|
|
131
|
+
# - conda
|
|
132
|
+
# - macos
|
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
# See https://pre-commit.com/hooks.html for more hooks
|
|
3
3
|
repos:
|
|
4
4
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
5
|
-
rev:
|
|
5
|
+
rev: v4.5.0
|
|
6
6
|
hooks:
|
|
7
7
|
- id: trailing-whitespace
|
|
8
8
|
- id: end-of-file-fixer
|
|
9
|
+
exclude: "test/data"
|
|
9
10
|
- id: check-yaml
|
|
10
|
-
exclude: .gitlab-ci.yml|meta.yaml
|
|
11
|
+
exclude: .gitlab-ci.yml|meta.yaml|.ci-includes/run_pytest.yml|.ci-includes/py_deploy.yml
|
|
11
12
|
- id: check-merge-conflict
|
|
12
13
|
- id: fix-encoding-pragma
|
|
13
14
|
args: [--remove]
|
|
@@ -17,18 +18,19 @@ repos:
|
|
|
17
18
|
- id: check-json
|
|
18
19
|
- id: pretty-format-json
|
|
19
20
|
args: [--autofix, --no-ensure-ascii]
|
|
21
|
+
exclude: "test/"
|
|
20
22
|
- repo: https://github.com/pycqa/isort
|
|
21
|
-
rev: 5.
|
|
23
|
+
rev: 5.13.2
|
|
22
24
|
hooks:
|
|
23
25
|
- id: isort
|
|
24
26
|
name: isort (python)
|
|
25
27
|
- repo: https://github.com/psf/black
|
|
26
|
-
rev:
|
|
28
|
+
rev: 23.12.1
|
|
27
29
|
hooks:
|
|
28
30
|
- id: black
|
|
29
31
|
exclude: examples
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
args: [--config=pyproject.toml]
|
|
32
|
+
#- repo: https://github.com/hadialqattan/pycln
|
|
33
|
+
#rev: v1.3.1 # Possible releases: https://github.com/hadialqattan/pycln/releases
|
|
34
|
+
#hooks:
|
|
35
|
+
#- id: pycln
|
|
36
|
+
#args: [--config=pyproject.toml]
|