envlib 0.1.1__tar.gz → 0.1.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: envlib
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: The environmental library
5
5
  Project-URL: Documentation, https://envlib.github.io/envlib/
6
6
  Project-URL: Source, https://github.com/envlib/envlib
@@ -4,6 +4,6 @@ from envlib import vocabularies
4
4
  from envlib.catalogue import Catalogue, DatasetRef
5
5
  from envlib.metadata import Metadata, ValidationError, compute_station_id
6
6
 
7
- __version__ = '0.1.1'
7
+ __version__ = '0.1.2'
8
8
 
9
9
  __all__ = ['Catalogue', 'DatasetRef', 'Metadata', 'ValidationError', 'compute_station_id', 'vocabularies']
@@ -31,9 +31,10 @@ from envlib.metadata import (
31
31
  compute_station_id,
32
32
  )
33
33
 
34
- # The hardcoded public RCG URL. None until the public commons is hosted —
35
- # overridable (and currently only usable) via the env var below.
36
- PUBLIC_RCG_URL: str | None = None
34
+ # The public envlib commons catalogue (read-only, credential-less HTTPS; a
35
+ # custom domain fronting the hosting bucket, so the URL outlives any bucket
36
+ # move). The env var below overrides it (stand-ins, testing, mirrors).
37
+ PUBLIC_RCG_URL: str | None = 'https://b2.envlib.xyz/file/envlib/envlib-commons/catalogue'
37
38
  PUBLIC_RCG_ENV_VAR = 'ENVLIB_PUBLIC_RCG_URL'
38
39
  DEFAULT_CACHE_DIR = '~/.envlib/cache'
39
40
 
@@ -535,7 +536,7 @@ class Catalogue:
535
536
  public = _public_rcg_url()
536
537
  if public is None:
537
538
  msg = (
538
- 'the public envlib RCG is not hosted yet — pass remotes=[...] '
539
+ 'no public envlib RCG is configured — pass remotes=[...] '
539
540
  f'or set the {PUBLIC_RCG_ENV_VAR} environment variable.'
540
541
  )
541
542
  raise ValueError(msg)
File without changes
File without changes
File without changes
File without changes
File without changes