Skip to content

Commit 0d3c8e1

Browse files
committed
fremorizer --> fremor
1 parent 025e7ca commit 0d3c8e1

15 files changed

Lines changed: 69 additions & 69 deletions

.github/workflows/build_conda.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ jobs:
5353
echo "conda install conda-build"
5454
conda install conda-forge::conda-build
5555
56-
- name: Build fremorizer Conda Package
56+
- name: Build fremor Conda Package
5757
run: |
58-
echo "conda building fremorizer package and outputting as a tarball"
59-
mkdir -p /tmp/fremorizer-tarball
60-
conda build --package-format tar.bz2 --output-folder /tmp/fremorizer-tarball .
58+
echo "conda building fremor package and outputting as a tarball"
59+
mkdir -p /tmp/fremor-tarball
60+
conda build --package-format tar.bz2 --output-folder /tmp/fremor-tarball .
6161
62-
- name: Upload fremorizer Tarball
62+
- name: Upload fremor Tarball
6363
uses: actions/upload-artifact@v4
6464
with:
65-
name: fremorizer-tarball
66-
path: /tmp/fremorizer-tarball/noarch/fremorizer-*.tar.bz2
65+
name: fremor-tarball
66+
path: /tmp/fremor-tarball/noarch/fremor-*.tar.bz2
6767
if-no-files-found: error

.github/workflows/build_pip.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ jobs:
2828
python -m pip install --upgrade pip
2929
python -m pip install build
3030
31-
- name: Build fremorizer pip Package
31+
- name: Build fremor pip Package
3232
run: |
33-
echo "Building fremorizer package using python -m build"
33+
echo "Building fremor package using python -m build"
3434
python -m build
3535
3636
- name: Upload pip Package Artifacts
3737
uses: actions/upload-artifact@v4
3838
with:
39-
name: fremorizer-pip-packages
39+
name: fremor-pip-packages
4040
path: dist/*
4141
if-no-files-found: error

.github/workflows/create_test_conda_env.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
python-version: ${{ matrix.python-version }}
4141
conda-remove-defaults: true
4242
environment-file: environment.yaml
43-
activate-environment: fremorizer
43+
activate-environment: fremor
4444

4545
- name: Show installed packages
4646
run: |
@@ -53,7 +53,7 @@ jobs:
5353
echo "printing conda config just in case"
5454
conda config --show
5555
56-
- name: Install fremorizer
56+
- name: Install fremor
5757
run: |
5858
pip install .
5959

.github/workflows/publish_conda.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ jobs:
4646
echo "conda install conda-build"
4747
conda install conda-forge::conda-build conda-forge::anaconda-client
4848
49-
- name: Build fremorizer Conda Package
49+
- name: Build fremor Conda Package
5050
run: |
51-
echo "conda building fremorizer package"
51+
echo "conda building fremor package"
5252
export ANACONDA_API_TOKEN=${{ secrets.TEMP_ANACONDA_API_TOKEN }}
5353
conda build .

.github/workflows/pylint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Setup Conda
2828
uses: conda-incubator/setup-miniconda@v3
2929
with:
30-
activate-environment: fremorizer
30+
activate-environment: fremor
3131
environment-file: environment.yaml
3232
auto-activate: false
3333
miniforge-version: latest
@@ -46,7 +46,7 @@ jobs:
4646
echo "printing conda config just in case"
4747
conda config --show
4848
49-
- name: Install fremorizer
49+
- name: Install fremor
5050
run: |
5151
pip install .
5252

.github/workflows/wcrp_compliance_check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Setup Conda
2828
uses: conda-incubator/setup-miniconda@v3
2929
with:
30-
activate-environment: fremorizer-wcrp
30+
activate-environment: fremor-wcrp
3131
environment-file: environment.yaml
3232
conda-remove-defaults: true
3333
auto-activate: false
@@ -47,7 +47,7 @@ jobs:
4747
echo "printing conda config just in case"
4848
conda config --show
4949
50-
- name: Install fremorizer
50+
- name: Install fremor
5151
run: |
5252
pip install .
5353

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
# -- Project information -----------------------------------------------------
2525
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
2626

27-
project = 'fremorizer'
27+
project = 'fremor'
2828
copyright = f'{dt.datetime.now().year}, NOAA-GFDL MSD Workflow Team'
2929
author = 'NOAA-GFDL MSD Workflow Team'
3030
release = pkg_version # type: ignore

docs/contributing.rst

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ For Developers
55
==============
66

77
Developers should consult this section for detailed information relevant to development and maintenance
8-
of ``fremorizer``, after familiarizing themselves with the rest of the user-targeted documentation.
8+
of ``fremor``, after familiarizing themselves with the rest of the user-targeted documentation.
99

1010

11-
Contributing to ``fremorizer``
11+
Contributing to ``fremor``
1212
==============================
1313

1414

@@ -19,7 +19,7 @@ Get your own copy of the code:
1919

2020
.. code-block:: bash
2121
22-
git clone --recursive git@github.com:ilaflott/fremorizer.git
22+
git clone --recursive git@github.com:ilaflott/fremor.git
2323
2424
Or replace with your fork's link (recommended).
2525

@@ -29,16 +29,16 @@ Local/Editable Installation
2929

3030
Developers can test local changes by running ``pip install [-e] .`` inside of the root directory after
3131
activating a virtual environment with ``python>=3.11`` and all requirements. This installs the
32-
``fremorizer`` package locally with any local changes.
32+
``fremor`` package locally with any local changes.
3333

34-
Development work on ``fremorizer`` should occur within a conda environment housing ``fremorizer``'s
34+
Development work on ``fremor`` should occur within a conda environment housing ``fremor``'s
3535
requirements, and a local copy of the repository installed with ``pip`` using the ``-e/--editable`` flag.
3636

3737
.. code-block:: bash
3838
3939
# Create the conda environment from environment.yaml
4040
conda env create -f environment.yaml
41-
conda activate fremorizer
41+
conda activate fremor
4242
4343
# Install in editable mode
4444
pip install -e .
@@ -48,7 +48,7 @@ Testing Your Local Changes
4848
--------------------------
4949

5050
There are several ways to test your efforts locally during your development cycle. A few examples and
51-
``fremorizer``-specific recommendations are described here, but contributors are welcome to be creative
51+
``fremor``-specific recommendations are described here, but contributors are welcome to be creative
5252
so long as they provide documentation of what they have contributed.
5353

5454
All contributed code should come with a corresponding unit test.
@@ -59,12 +59,12 @@ Running CLI Calls
5959

6060
Most development cycles will involve focused efforts isolated to a specific ``fremor COMMAND *ARGV``,
6161
where ``*ARGV`` stands in for a shell-style argument vector (e.g. ``-d /path/to/input -l varlist.json``).
62-
The code is housed in the ``fremorizer/`` package directory, with the ``click`` CLI entry-point in
63-
``fremorizer/fremor.py``.
62+
The code is housed in the ``fremor/`` package directory, with the ``click`` CLI entry-point in
63+
``fremor/fremor.py``.
6464

6565
The developer usually uses ``fremor COMMAND *ARGV`` as a test, focused on seeing the changes they are
6666
introducing, developing the code until the desired result is achieved. The specific ``fremor COMMAND *ARGV``
67-
call can often become a unit test in one of the corresponding files in ``fremorizer/tests/``. The
67+
call can often become a unit test in one of the corresponding files in ``fremor/tests/``. The
6868
sought-after changes should become ``assert`` conditions encoded within the unit test. Both success and
6969
failure conditions should ideally be tested.
7070

@@ -74,18 +74,18 @@ Running Without ``click``
7474

7575
Every ``fremor COMMAND *ARGV`` approximately maps to a single function call (a ``*_subtool`` function
7676
in the corresponding module). To remove ``click`` and the CLI aspect from testing, assuming the code
77-
being executed is in ``fremorizer/cmor_mixer.py`` in a function called ``cmor_run_subtool``:
77+
being executed is in ``fremor/cmor_mixer.py`` in a function called ``cmor_run_subtool``:
7878

7979
.. code-block:: bash
8080
81-
python -i -c 'from fremorizer.cmor_mixer import cmor_run_subtool; cmor_run_subtool(**args)'
81+
python -i -c 'from fremor.cmor_mixer import cmor_run_subtool; cmor_run_subtool(**args)'
8282
8383
8484
Writing ``pytest`` Unit Tests
8585
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8686

8787
If the functionality to test is that of a CLI call, tests should use the ``CliRunner`` approach shown in
88-
``fremorizer/tests/``. ``click``-based CLI calls should **not** be tested with ``subprocess.run`` within
88+
``fremor/tests/``. ``click``-based CLI calls should **not** be tested with ``subprocess.run`` within
8989
``pytest``. See `click's testing documentation <https://click.palletsprojects.com/en/stable/testing/>`_
9090
for more information.
9191

@@ -95,17 +95,17 @@ Run the test suite:
9595

9696
.. code-block:: bash
9797
98-
pytest fremorizer/tests/ -v
98+
pytest fremor/tests/ -v
9999
100100
101101
Running the Linter
102102
~~~~~~~~~~~~~~~~~~
103103

104-
``fremorizer`` uses ``pylint`` for code quality checks:
104+
``fremor`` uses ``pylint`` for code quality checks:
105105

106106
.. code-block:: bash
107107
108-
pylint --rcfile pylintrc fremorizer/
108+
pylint --rcfile pylintrc fremor/
109109
110110
111111
Adding a New Requirement
@@ -115,7 +115,7 @@ Currently, all required packages are ``conda`` packages listed in ``environment.
115115
equivalently in ``meta.yaml``. ``conda`` packages that have a corresponding ``pip`` package should
116116
also be listed in ``pyproject.toml``.
117117

118-
New dependencies for ``fremorizer`` must have a ``conda`` package available through a non-proprietary
118+
New dependencies for ``fremor`` must have a ``conda`` package available through a non-proprietary
119119
``conda`` channel, preferably the open-source ``conda-forge`` channel. Only ``conda-forge`` and
120120
``noaa-gfdl`` channels are used.
121121

@@ -125,10 +125,10 @@ functionality via standard-library approaches first, and be prepared to defend t
125125
adding a new third-party package.
126126

127127

128-
How ``fremorizer`` is Updated
128+
How ``fremor`` is Updated
129129
-----------------------------
130130

131-
``fremorizer`` is published and hosted as a Conda package on the
131+
``fremor`` is published and hosted as a Conda package on the
132132
`NOAA-GFDL conda channel <https://anaconda.org/NOAA-GFDL>`_. On pushes to the ``main`` branch, the
133133
package is automatically updated using the workflow defined in ``.github/workflows/publish_conda.yml``,
134134
which is equivalent to ``.github/workflows/build_conda.yml`` with an extra ``conda publish`` step.
@@ -157,7 +157,7 @@ a merge.
157157
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
158158

159159
Avoid calling ``logging.basicConfig`` to re-configure logging behavior **outside** of
160-
``fremorizer/__init__.py``. This creates another ``logging.handler`` without resolving the ambiguity
160+
``fremor/__init__.py``. This creates another ``logging.handler`` without resolving the ambiguity
161161
to previously defined loggers about which handler to use. If left in a PR at merge-time, this can cause
162162
oddly silent logging behavior that is very tricky to debug.
163163

@@ -188,7 +188,7 @@ instances, use the following pattern to safely ``chdir`` and ``chdir`` back:
188188
---------------
189189

190190
In the case where non-Python files like templates, examples, and outputs are to be included in the
191-
``fremorizer`` package, ``MANIFEST.in`` can provide the solution. Ensure the file exists within the
191+
``fremor`` package, ``MANIFEST.in`` can provide the solution. Ensure the file exists within the
192192
correct folder and add a line such as ``include fremor/fileName.fileExtension``.
193193

194194
For more efficiency, if there are multiple files of the same type needed, use something like

docs/contributing_to_docs.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
``fremorizer``'s documentation is built with ``sphinx`` and written in reStructuredText.
1+
``fremor``'s documentation is built with ``sphinx`` and written in reStructuredText.
22
A decent cheat-sheet for reStructuredText can be found
33
`at this gist <https://gist.github.com/SMotaal/24006b13b354e6edad0c486749171a70#sections>`__.
44

55

6-
With a PR to ilaflott/fremorizer (recommended)
6+
With a PR to ilaflott/fremor (recommended)
77
----------------------------------------------
88

99
This approach is the easiest and most automated option for open-source contributors. It is completely
1010
appropriate for casual editing of the docs and previewing the changes.
1111

12-
* Make a branch, either with ``ilaflott/fremorizer`` as the remote, or your own fork.
12+
* Make a branch, either with ``ilaflott/fremor`` as the remote, or your own fork.
1313
* Edit a file any non-zero amount, commit that change to your branch, and push. If the branch is
1414
identical to ``main``, you cannot open a PR.
1515
* Once the PR is opened, a ``readthedocs`` workflow will be run, even if that PR is in draft mode.
1616
To confirm it is running (or did run), open your PR in a web browser, scroll to the bottom to find
1717
the latest workflow runs under "checks", and click the ``readthedocs`` workflow.
18-
* If the doc build is successful, you should see the ``fremorizer`` documentation page. If unsuccessful,
18+
* If the doc build is successful, you should see the ``fremor`` documentation page. If unsuccessful,
1919
you should see a ``404`` error.
2020
* To review documentation differences, use the "Show diff" checkbox, which gives an explicit visual
2121
difference highlight right on the built webpage.
@@ -30,7 +30,7 @@ This approach is good for deep debugging of the documentation build.
3030
Lightweight Approach (recommended for docs-only)
3131
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3232

33-
If you only need to build documentation and don't need the full ``fremorizer`` environment,
33+
If you only need to build documentation and don't need the full ``fremor`` environment,
3434
you can use a minimal setup. This approach uses ``autodoc_mock_imports`` in ``docs/conf.py``
3535
to mock heavy dependencies like ``netCDF4``, ``cmor``, ``xarray``, etc.
3636

@@ -39,14 +39,14 @@ From the root directory of your local repository copy:
3939
.. code-block:: bash
4040
4141
# Create a lightweight docs-only environment
42-
conda create -n fremorizer-docs python=3.11 -y
43-
conda activate fremorizer-docs
42+
conda create -n fremor-docs python=3.11 -y
43+
conda activate fremor-docs
4444
4545
# Install minimal dependencies
4646
pip install sphinx renku-sphinx-theme sphinx-rtd-theme click pyyaml jsonschema
4747
4848
# Generate API docs and build
49-
sphinx-apidoc --ext-autodoc --output-dir docs fremorizer/ --separate
49+
sphinx-apidoc --ext-autodoc --output-dir docs fremor/ --separate
5050
sphinx-build docs docs/build
5151
5252
This will produce warnings about missing imports from test modules, but the build will succeed.
@@ -56,13 +56,13 @@ To view the result, open ``docs/build/index.html`` in your browser.
5656
Full Environment Approach
5757
~~~~~~~~~~~~~~~~~~~~~~~~~
5858

59-
If you are also developing and testing ``fremorizer`` functionality, set up a full conda environment:
59+
If you are also developing and testing ``fremor`` functionality, set up a full conda environment:
6060

6161
.. code-block:: bash
6262
6363
# Create the full environment
6464
conda env create -f environment.yaml
65-
conda activate fremorizer
65+
conda activate fremor
6666
6767
# Install in editable mode
6868
pip install -e .
@@ -71,7 +71,7 @@ If you are also developing and testing ``fremorizer`` functionality, set up a fu
7171
pip install sphinx renku-sphinx-theme sphinx-rtd-theme rstcheck
7272
7373
# Generate API docs and build
74-
sphinx-apidoc --ext-autodoc --output-dir docs fremorizer/ --separate
74+
sphinx-apidoc --ext-autodoc --output-dir docs fremor/ --separate
7575
sphinx-build docs docs/build
7676
7777
Then open ``docs/build/index.html`` with your favorite web browser. You should be able to click around

docs/cookbook.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ Common Issues and Solutions
267267

268268
The ``fremor yaml`` subcommand optionally relies on ``fre-cli``\'s ``yamltools`` module for
269269
YAML consolidation. If ``fre-cli`` is not installed, you can use
270-
``fremorizer``\'s native YAML loader with a single pre-consolidated YAML file.
270+
``fremor``\'s native YAML loader with a single pre-consolidated YAML file.
271271

272272
To debug this issue:
273273

0 commit comments

Comments
 (0)