Skip to content

Commit 15f3a89

Browse files
authored
Merge pull request #222 from ESGF/bugfix_version_yaml
update to fix
2 parents c0aa590 + c54244f commit 15f3a89

File tree

11 files changed

+72
-31
lines changed

11 files changed

+72
-31
lines changed

.readthedocs.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# .readthedocs.yaml
2+
# Read the Docs configuration file
3+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4+
5+
# Required
6+
version: 2
7+
8+
# Set the version of Python and other tools you might need
9+
build:
10+
os: ubuntu-22.04
11+
tools:
12+
python: "3.10"
13+
14+
# Build documentation in the docs/ directory with Sphinx
15+
sphinx:
16+
configuration: docs/conf.py
17+
18+
# We recommend specifying your dependencies to enable reproducible builds:
19+
# https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
20+
# python:
21+
# install:
22+
# - requirements: docs/requirements.txt

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
# ESGF Publisher
22

3-
`v5.2.0` is the latest release of the ESGF Publisher. We recommend everyone to upgrade to this version.
3+
`v5.2.1` is the latest release of the ESGF Publisher. We recommend everyone to upgrade to this version.
44

5-
See: https://esg-publisher.readthedocs.io/en/latest
5+
See: https://esg-publisher.readthedocs.io/
66

77
### Release notes:
88

9+
#### v5.2.1
10+
* **BUGFIX**: Missing `import` caused ``esgpublish`` calls to fail in most cases.
11+
912
#### v5.2.0 - Major release
1013
* Migrated configuration from `.ini` format to `.yaml`. Use `esgmigrate` to convert existing `.ini` files.
1114
* Added XArray for NetCDF file reading. Disable autocurator in settings to use or add `--xarray`

docs/cmor.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@ CMOR
22
====
33

44
Before running the publisher for CMIP6, you will need to obtain a directory of CMOR tables, used by PrePARE to check the metadata of your files.
5-
You can get this directory either using ``esgprep`` or by cloning the git repository.
5+
You can get this directory either using ``esgprep`` or by cloning the git repository. CMOR/PrePARE is available for Linux and MacOS Intel. Mac Apple M1 systems are not currently supported.
6+
7+
NOTE: ``esgprep`` uses python 2.6 or greater, but less than python 3.0. Configure your virtual environment as needed.
68

79
esgprep
810
-------
911

10-
You can install ``esgprep`` using pip::
12+
You can install ``esgprep`` (esgf-prepare) using pip::
1113

1214
pip install esgprep
1315

@@ -17,8 +19,6 @@ You can also clone their git repository and run setup.py::
1719
cd esgf-prepare
1820
python setup.py install
1921

20-
NOTE: ``esgprep`` uses python 2.6 or greater, but less than python 3.0. Configure your virtual environment as needed.
21-
2222
Following install, simply run::
2323

2424
esgfetchtables
@@ -28,6 +28,7 @@ You can specify project using ``--project`` and the output directory using ``--t
2828
esgfetchtables --project CMIP6 --table-dir <path>
2929

3030
Once you have fetched the tables, you can update the ``cmor_path`` variable in your config file, or specify it at run time in the command line.
31+
See https://esgf.github.io/esgf-prepare/ for more information.
3132

3233
Clone Git Repository
3334
--------------------

docs/conf.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# import os
1414
# import sys
1515
# sys.path.insert(0, os.path.abspath('.'))
16-
import sphinx_glpi_theme
16+
import sphinx_rtd_theme
1717

1818
# -- Project information -----------------------------------------------------
1919

@@ -22,7 +22,7 @@
2222
author = 'Elysia Witham, Sasha Ames'
2323

2424
# The full version, including alpha/beta/rc tags
25-
release = '5.1.0b11'
25+
release = '5.2.1'
2626

2727

2828
# -- General configuration ---------------------------------------------------
@@ -49,8 +49,8 @@
4949
# The theme to use for HTML and HTML Help pages. See the documentation for
5050
# a list of builtin themes.
5151
#
52-
html_theme = 'glpi'
53-
html_theme_path = sphinx_glpi_theme.get_html_themes_path()
52+
html_theme = 'sphinx_rtd_theme'
53+
#html_theme_path = sphinx_rtd_theme.get_html_themes_path()
5454
# Add any paths that contain custom static files (such as style sheets) here,
5555
# relative to this directory. They are copied after the builtin static files,
5656
# so a file named "default.css" will overwrite the builtin "default.css".

docs/index.rst

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
The esgcet package for ESGF Publication - Version 5.2.0
2-
=========================================================
1+
The esgcet package for ESGF Publication - Version 5.2.1
2+
=======================================================
33

44
Esgcet is a package of publisher commands for publishing to the `ESGF
55
<https://esgf-node.llnl.gov/projects/esgf-llnl/>`_ search database.
@@ -8,15 +8,14 @@ Esgcet is a package of publisher commands for publishing to the `ESGF
88
TL;DR
99
-----
1010

11-
if you have conda you can install the publisher wih the following into a fresh environment, and update to the latest version:
12-
::
13-
conda create -n esgf-pub -c conda-forge -c esgf-forge esgcet
11+
If you have conda on a Linux system you can install the publisher wih the following into a fresh environment, and update to the latest version:::
12+
13+
conda create -n esgf-pub -c conda-forge pip cmor # most commun
1414
conda activate esgf-pub
1515
pip install esgcet
16-
esgpublish --version # Ensure you have upgraded to v5.2.0
16+
esgpublish --version # Ensure you have upgraded to v5.2.1
1717
esgpublish # will print the usage information.
1818

19-
You may also look at the inital ``~/.esg/esg.yaml`` and update to fit your site configuration.
2019

2120
.. toctree::
2221
:maxdepth: 2

docs/install.rst

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Use the following command to install ``esgcet`` into a previously created conda
2323

2424
conda activate esgf-pub
2525
pip install esgcet
26-
esgpublish --version # Ensure you have upgraded to v5.2.0
26+
esgpublish --version # Ensure you have upgraded to v5.2.1
2727

2828

2929
Installing esgcet via git
@@ -37,15 +37,26 @@ To install esgcet by cloning our github repository (useful if you want to modiy
3737
git checkout refactor-esgf # NOTE this is a temporary fix prior to a merge into the master branch
3838
cd src/python
3939
pip install -e . # You can modify the source in place
40-
esgpublish --version # check v5.2.0 has been installed
40+
esgpublish --version # Confirm that v5.2.1 has been installed
41+
42+
Now you will be able to call all commands in this package from any directory.
43+
4144

42-
Now you will be able to call all commands in this package from any directory. A default config file, ``esg.yaml`` will populate in ``$HOME/.esg`` where ``$HOME`` is your home directory.
4345

4446
NOTE: if you are intending to publish CMIP6 data, the publisher will run the PrePARE module to check all file metadata. To enable this procedure, it is necessry to download CMOR tables before the publisher will successfully run. See those pages for more info.
4547

4648

4749
Config File (esg.yaml)
48-
---------------------
50+
----------------------
51+
52+
Starting with ``v5.2.0`` the ESGF Publisher uses a .yaml file for configuration. Download a copy of the default config file ``esg.yaml`` to the default directory,
53+
or see below regarding migrating a previous config ::
54+
55+
wget https://raw.githubusercontent.com/ESGF/esg-publisher/refactor/src/python/esg.yaml
56+
mkdir $HOME/.esg
57+
cp esg.yaml $HOME/.esg
58+
59+
4960

5061
The config file will contain the following settings:
5162

docs/whatsnew.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Release Notes
22
=============
33

4+
v5.2.1
5+
------
6+
* **BUGFIX**: Missing `import` caused ``esgpublish`` calls to fail in most cases.
7+
48
v5.2.0
59
------
610

src/python/MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include esg.yaml

src/python/esgcet/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "5.2.0"
1+
__version__ = "5.2.1"

src/python/esgcet/args.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import os
44
import esgcet.esgmigrate as em
55
import esgcet.logger as logger
6+
import esgcet
67
import yaml
78

89
log = logger.ESGPubLogger()

0 commit comments

Comments
 (0)