-
Notifications
You must be signed in to change notification settings - Fork 19
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
79 changed files
with
1,451 additions
and
707 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 |
---|---|---|
|
@@ -49,38 +49,6 @@ jobs: | |
- name: Tests | ||
run: pytest | ||
|
||
# notify-failure: | ||
# if: failure() | ||
# runs-on: ubuntu-latest | ||
# needs: [quality, checks] | ||
# name: Notify failure | ||
# steps: | ||
# - uses: jdcargile/[email protected] | ||
# with: | ||
# github-token: ${{ github.token }} | ||
# ms-teams-webhook-uri: ${{ secrets.MS_TEAMS_WEBHOOK_URI_F }} | ||
# # notification-summary: ${{ steps.qa.outputs.status }} | ||
# notification-summary: ❌ Build failed on anemoi.datasets! | ||
# notification-color: dc3545 | ||
# timezone: Europe/Paris | ||
# verbose-logging: true | ||
|
||
# notify-success: | ||
# if: success() | ||
# runs-on: ubuntu-latest | ||
# needs: [quality, checks] | ||
# name: Notify success | ||
# steps: | ||
# - uses: jdcargile/[email protected] | ||
# with: | ||
# github-token: ${{ github.token }} | ||
# ms-teams-webhook-uri: ${{ secrets.MS_TEAMS_WEBHOOK_URI_F }} | ||
# # notification-summary: ${{ steps.qa.outputs.status }} | ||
# notification-summary: ✅ New commit on anemoi.datasets | ||
# notification-color: 17a2b8 | ||
# timezone: Europe/Paris | ||
# verbose-logging: true | ||
|
||
deploy: | ||
|
||
if: ${{ github.event_name == 'release' }} | ||
|
@@ -93,24 +61,16 @@ jobs: | |
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Check that tag version matches code version | ||
run: | | ||
tag=${GITHUB_REF#refs/tags/} | ||
version=$(python setup.py --version) | ||
echo 'tag='$tag | ||
echo "version file="$version | ||
test "$tag" == "$version" | ||
python-version: 3.x | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel twine | ||
pip install build wheel twine | ||
- name: Build and publish | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} | ||
run: | | ||
python setup.py sdist | ||
python -m build | ||
twine upload dist/* |
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
#!/usr/bin/env python | ||
# (C) Copyright 2024 ECMWF. | ||
# | ||
# This software is licensed under the terms of the Apache Licence Version 2.0 | ||
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. | ||
# In applying this licence, ECMWF does not waive the privileges and immunities | ||
# granted to it by virtue of its status as an intergovernmental organisation | ||
# nor does it submit to any jurisdiction. | ||
|
||
# https://packaging.python.org/en/latest/guides/writing-pyproject-toml/ | ||
|
||
[build-system] | ||
requires = ["setuptools>=60", "setuptools-scm>=8.0"] | ||
|
||
[project] | ||
description = "A package to hold various functions to support training of ML models on ECMWF data." | ||
name = "anemoi-dataset" | ||
|
||
dynamic = ["version"] | ||
license = { file = "LICENSE" } | ||
requires-python = ">=3.9" | ||
|
||
authors = [ | ||
{ name = "European Centre for Medium-Range Weather Forecasts (ECMWF)", email = "[email protected]" }, | ||
] | ||
|
||
keywords = ["tools", "datasets", "ai"] | ||
|
||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Programming Language :: Python :: Implementation :: PyPy", | ||
"Operating System :: OS Independent", | ||
] | ||
|
||
dependencies = [ | ||
"anemoi-utils[provenance]>=0.1.7", | ||
"zarr", | ||
"pyyaml", | ||
"numpy", | ||
"tqdm", | ||
"semantic-version", | ||
] | ||
|
||
[project.optional-dependencies] | ||
remote = ["boto3", "requests", "s3fs"] | ||
|
||
create = [ | ||
"climetlab>=0.22.1", # "earthkit-data" | ||
"earthkit-meteo", | ||
"pyproj", | ||
"ecmwflibs>=0.6.3", | ||
] | ||
|
||
docs = ["sphinx", "sphinx_rtd_theme", "nbsphinx", "pandoc"] | ||
|
||
all = [ | ||
"boto3", | ||
"requests", | ||
"s3fs", | ||
"climetlab>=0.22.1", # "earthkit-data" | ||
"earthkit-meteo", | ||
"pyproj", | ||
"ecmwflibs>=0.6.3", | ||
] | ||
|
||
dev = [ | ||
"boto3", | ||
"requests", | ||
"s3fs", | ||
"climetlab>=0.22.1", # "earthkit-data" | ||
"earthkit-meteo", | ||
"pyproj", | ||
"ecmwflibs>=0.6.3", | ||
"sphinx", | ||
"sphinx_rtd_theme", | ||
"nbsphinx", | ||
"pandoc", | ||
] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/ecmwf/anemoi-datasets/" | ||
Documentation = "https://anemoi-datasets.readthedocs.io/" | ||
Repository = "https://github.com/ecmwf/anemoi-datasets/" | ||
Issues = "https://github.com/ecmwf/anemoi-datasets/issues" | ||
# Changelog = "https://github.com/ecmwf/anemoi-datasets/CHANGELOG.md" | ||
|
||
[project.scripts] | ||
anemoi-datasets = "anemoi.datasets.__main__:main" | ||
|
||
[tool.setuptools_scm] | ||
version_file = "src/anemoi/datasets/_version.py" | ||
|
||
[tool.setuptools.package-data] | ||
"anemoi.datasets.data" = ["*.css"] |
Oops, something went wrong.