anemoi-utils 0.3.12__tar.gz → 0.3.13__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.

Potentially problematic release.


This version of anemoi-utils might be problematic. Click here for more details.

Files changed (52) hide show
  1. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/.readthedocs.yaml +0 -1
  2. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/PKG-INFO +3 -5
  3. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/pyproject.toml +4 -6
  4. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/src/anemoi/utils/_version.py +2 -2
  5. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/src/anemoi/utils/humanize.py +1 -1
  6. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/src/anemoi/utils/s3.py +1 -1
  7. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/src/anemoi/utils/timer.py +2 -2
  8. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/src/anemoi_utils.egg-info/PKG-INFO +3 -5
  9. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/src/anemoi_utils.egg-info/SOURCES.txt +0 -1
  10. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/src/anemoi_utils.egg-info/requires.txt +2 -4
  11. anemoi_utils-0.3.12/docs/requirements.txt +0 -10
  12. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/.github/workflows/python-publish.yml +0 -0
  13. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/.gitignore +0 -0
  14. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/.pre-commit-config.yaml +0 -0
  15. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/LICENSE +0 -0
  16. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/README.md +0 -0
  17. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/docs/Makefile +0 -0
  18. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/docs/_static/logo.png +0 -0
  19. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/docs/_static/style.css +0 -0
  20. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/docs/_templates/.gitkeep +0 -0
  21. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/docs/conf.py +0 -0
  22. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/docs/index.rst +0 -0
  23. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/docs/installing.rst +0 -0
  24. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/docs/modules/checkpoints.rst +0 -0
  25. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/docs/modules/config.rst +0 -0
  26. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/docs/modules/dates.rst +0 -0
  27. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/docs/modules/grib.rst +0 -0
  28. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/docs/modules/humanize.rst +0 -0
  29. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/docs/modules/provenance.rst +0 -0
  30. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/docs/modules/s3.rst +0 -0
  31. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/docs/modules/text.rst +0 -0
  32. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/setup.cfg +0 -0
  33. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/src/anemoi/utils/__init__.py +0 -0
  34. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/src/anemoi/utils/__main__.py +0 -0
  35. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/src/anemoi/utils/caching.py +0 -0
  36. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/src/anemoi/utils/checkpoints.py +0 -0
  37. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/src/anemoi/utils/cli.py +0 -0
  38. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/src/anemoi/utils/commands/__init__.py +0 -0
  39. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/src/anemoi/utils/commands/config.py +0 -0
  40. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/src/anemoi/utils/config.py +0 -0
  41. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/src/anemoi/utils/dates.py +0 -0
  42. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/src/anemoi/utils/grib.py +0 -0
  43. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/src/anemoi/utils/hindcasts.py +0 -0
  44. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/src/anemoi/utils/mars/__init__.py +0 -0
  45. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/src/anemoi/utils/mars/mars.yaml +0 -0
  46. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/src/anemoi/utils/provenance.py +0 -0
  47. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/src/anemoi/utils/text.py +0 -0
  48. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/src/anemoi_utils.egg-info/dependency_links.txt +0 -0
  49. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/src/anemoi_utils.egg-info/entry_points.txt +0 -0
  50. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/src/anemoi_utils.egg-info/top_level.txt +0 -0
  51. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/tests/test_dates.py +0 -0
  52. {anemoi_utils-0.3.12 → anemoi_utils-0.3.13}/tests/test_utils.py +0 -0
@@ -10,7 +10,6 @@ sphinx:
10
10
 
11
11
  python:
12
12
  install:
13
- - requirements: docs/requirements.txt
14
13
  - method: pip
15
14
  path: .
16
15
  extra_requirements:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: anemoi-utils
3
- Version: 0.3.12
3
+ Version: 0.3.13
4
4
  Summary: A package to hold various functions to support training of ML models on ECMWF data.
5
5
  Author-email: "European Centre for Medium-Range Weather Forecasts (ECMWF)" <software.support@ecmwf.int>
6
6
  License: Apache License
@@ -239,19 +239,17 @@ Requires-Dist: pandoc; extra == "dev"
239
239
  Requires-Dist: pytest; extra == "dev"
240
240
  Requires-Dist: requests; extra == "dev"
241
241
  Requires-Dist: sphinx; extra == "dev"
242
- Requires-Dist: sphinx-argparse; extra == "dev"
242
+ Requires-Dist: sphinx-argparse<0.5; extra == "dev"
243
243
  Requires-Dist: sphinx-rtd-theme; extra == "dev"
244
244
  Requires-Dist: termcolor; extra == "dev"
245
- Requires-Dist: tomli; extra == "dev"
246
245
  Provides-Extra: docs
247
246
  Requires-Dist: nbsphinx; extra == "docs"
248
247
  Requires-Dist: pandoc; extra == "docs"
249
248
  Requires-Dist: requests; extra == "docs"
250
249
  Requires-Dist: sphinx; extra == "docs"
251
- Requires-Dist: sphinx-argparse; extra == "docs"
250
+ Requires-Dist: sphinx-argparse<0.5; extra == "docs"
252
251
  Requires-Dist: sphinx-rtd-theme; extra == "docs"
253
252
  Requires-Dist: termcolor; extra == "docs"
254
- Requires-Dist: tomli; extra == "docs"
255
253
  Provides-Extra: grib
256
254
  Requires-Dist: requests; extra == "grib"
257
255
  Provides-Extra: provenance
@@ -68,23 +68,21 @@ optional-dependencies.dev = [
68
68
  "pytest",
69
69
  "requests",
70
70
  "sphinx",
71
- "sphinx-argparse",
71
+ "sphinx-argparse<0.5",
72
72
  "sphinx-rtd-theme",
73
73
  "termcolor",
74
- "tomli",
75
74
  ]
76
- # Loaded by read-the-docs
77
- # `pip install .[docs]`
75
+
78
76
  optional-dependencies.docs = [
79
77
  "nbsphinx",
80
78
  "pandoc",
81
79
  "requests",
82
80
  "sphinx",
83
- "sphinx-argparse",
81
+ "sphinx-argparse<0.5",
84
82
  "sphinx-rtd-theme",
85
83
  "termcolor",
86
- "tomli",
87
84
  ]
85
+
88
86
  optional-dependencies.grib = [
89
87
  "requests",
90
88
  ]
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '0.3.12'
16
- __version_tuple__ = version_tuple = (0, 3, 12)
15
+ __version__ = version = '0.3.13'
16
+ __version_tuple__ = version_tuple = (0, 3, 13)
@@ -104,7 +104,7 @@ def _plural(count):
104
104
  def seconds_to_human(seconds: float) -> str:
105
105
  """Convert a number of seconds to a human readable string
106
106
 
107
- >>> seconds(4000)
107
+ >>> seconds_to_human(4000)
108
108
  '1 hour 6 minutes 40 seconds'
109
109
 
110
110
  Parameters
@@ -268,7 +268,7 @@ class Download(Transfer):
268
268
  def source_size(self, s3_object):
269
269
  return s3_object["Size"]
270
270
 
271
- def transfer_file(self, source, target, overwrite, resume, verbosity, progress, config=None):
271
+ def transfer_file(self, source, target, overwrite, resume, verbosity, progress=None, config=None):
272
272
  try:
273
273
  return self._transfer_file(source, target, overwrite, resume, verbosity, config=config)
274
274
  except Exception as e:
@@ -10,7 +10,7 @@
10
10
  import logging
11
11
  import time
12
12
 
13
- from .humanize import seconds
13
+ from .humanize import seconds_to_human
14
14
 
15
15
  LOGGER = logging.getLogger(__name__)
16
16
 
@@ -31,4 +31,4 @@ class Timer:
31
31
  return time.time() - self.start
32
32
 
33
33
  def __exit__(self, *args):
34
- self.logger.info("%s: %s.", self.title, seconds(self.elapsed))
34
+ self.logger.info("%s: %s.", self.title, seconds_to_human(self.elapsed))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: anemoi-utils
3
- Version: 0.3.12
3
+ Version: 0.3.13
4
4
  Summary: A package to hold various functions to support training of ML models on ECMWF data.
5
5
  Author-email: "European Centre for Medium-Range Weather Forecasts (ECMWF)" <software.support@ecmwf.int>
6
6
  License: Apache License
@@ -239,19 +239,17 @@ Requires-Dist: pandoc; extra == "dev"
239
239
  Requires-Dist: pytest; extra == "dev"
240
240
  Requires-Dist: requests; extra == "dev"
241
241
  Requires-Dist: sphinx; extra == "dev"
242
- Requires-Dist: sphinx-argparse; extra == "dev"
242
+ Requires-Dist: sphinx-argparse<0.5; extra == "dev"
243
243
  Requires-Dist: sphinx-rtd-theme; extra == "dev"
244
244
  Requires-Dist: termcolor; extra == "dev"
245
- Requires-Dist: tomli; extra == "dev"
246
245
  Provides-Extra: docs
247
246
  Requires-Dist: nbsphinx; extra == "docs"
248
247
  Requires-Dist: pandoc; extra == "docs"
249
248
  Requires-Dist: requests; extra == "docs"
250
249
  Requires-Dist: sphinx; extra == "docs"
251
- Requires-Dist: sphinx-argparse; extra == "docs"
250
+ Requires-Dist: sphinx-argparse<0.5; extra == "docs"
252
251
  Requires-Dist: sphinx-rtd-theme; extra == "docs"
253
252
  Requires-Dist: termcolor; extra == "docs"
254
- Requires-Dist: tomli; extra == "docs"
255
253
  Provides-Extra: grib
256
254
  Requires-Dist: requests; extra == "grib"
257
255
  Provides-Extra: provenance
@@ -9,7 +9,6 @@ docs/Makefile
9
9
  docs/conf.py
10
10
  docs/index.rst
11
11
  docs/installing.rst
12
- docs/requirements.txt
13
12
  docs/_static/logo.png
14
13
  docs/_static/style.css
15
14
  docs/_templates/.gitkeep
@@ -16,20 +16,18 @@ pandoc
16
16
  pytest
17
17
  requests
18
18
  sphinx
19
- sphinx-argparse
19
+ sphinx-argparse<0.5
20
20
  sphinx-rtd-theme
21
21
  termcolor
22
- tomli
23
22
 
24
23
  [docs]
25
24
  nbsphinx
26
25
  pandoc
27
26
  requests
28
27
  sphinx
29
- sphinx-argparse
28
+ sphinx-argparse<0.5
30
29
  sphinx-rtd-theme
31
30
  termcolor
32
- tomli
33
31
 
34
32
  [grib]
35
33
  requests
@@ -1,10 +0,0 @@
1
- # These are the requirements for readthedoc
2
- sphinx
3
- sphinx_rtd_theme
4
- nbsphinx
5
- sphinx_argparse
6
-
7
- # Also requires `brew install pandoc` on Mac
8
- pandoc
9
-
10
- rstfmt
File without changes
File without changes
File without changes
File without changes