Skip to content

Commit 06151bb

Browse files
authored
Refactor project name from ACCESS-MOPPeR to ACCESS-MOPPy (#117)
* Refactor project name from ACCESS-MOPPeR to ACCESS-MOPPy - Updated all instances of "ACCESS-MOPPeR" to "ACCESS-MOPPy" in documentation, test files, and source code. - Adjusted import paths in tests and source files to reflect the new project name. - Ensured all tests are updated to use the new naming convention and paths. * Remove unnecessary blank lines from CHANGELOG.rst
1 parent 7a98f7a commit 06151bb

File tree

139 files changed

+192
-218
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

139 files changed

+192
-218
lines changed

.conda/environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: mopper_env
1+
name: moppy_env
22
channels:
33
- conda-forge
44
- nodefaults

.conda/meta.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
{% set version = data.get('version') %}
33

44
package:
5-
name: access-mopper
5+
name: access-moppy
66
version: "{{ version }}"
77

88
source:
9-
url: "https://files.pythonhosted.org/packages/source/a/access_mopper/access_mopper-{{ version }}.tar.gz"
9+
url: "https://files.pythonhosted.org/packages/source/a/access_moppy/access_moppy-{{ version }}.tar.gz"
1010

1111
build:
1212
noarch: python
@@ -28,10 +28,10 @@ requirements:
2828
- cftime
2929

3030
about:
31-
home: https://github.com/ACCESS-Community-Hub/ACCESS-MOPPeR
31+
home: https://github.com/ACCESS-NRI/ACCESS-MOPPy
3232
license: Apache Software
3333
license_family: APACHE
34-
summary: 'ACCESS-MOPPeR post-process ACCESS raw model output using CMOR and pre-defined data standards'
34+
summary: 'ACCESS-MOPPy post-process ACCESS raw model output using CMOR and pre-defined data standards'
3535

3636
extra:
3737
recipe-maintainers:

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
src/access_mopper/_version.py export-subst
1+
src/access_moppy/_version.py export-subst
22
# SCM syntax highlighting & preventing 3-way merges
33
pixi.lock merge=binary linguist-language=YAML linguist-generated=true

.github/workflows/cd.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
- name: Wait for PyPI propagation
4747
run: |
4848
echo "Waiting for PyPI package to be downloadable..."
49-
PACKAGE_NAME="access_mopper"
49+
PACKAGE_NAME="access_moppy"
5050
VERSION=$(python -c "import versioneer; print(versioneer.get_version())")
5151
VERSION=${VERSION#v}
5252
echo "Looking for package: ${PACKAGE_NAME}==${VERSION}"
@@ -88,7 +88,7 @@ jobs:
8888
token: ${{ secrets.anaconda_token }}
8989

9090
update_analysis3:
91-
name: Update ACCESS-MOPPeR on Analysis3 Conda Environment
91+
name: Update ACCESS-MOPPy on Analysis3 Conda Environment
9292
needs: conda
9393
runs-on: ubuntu-latest
9494
permissions:
@@ -98,7 +98,7 @@ jobs:
9898
TARGET_REPO: ACCESS-Analysis-Conda
9999
TARGET_BRANCH: main
100100
FILE_PATH: environments/analysis3/environment.yml
101-
PACKAGE: access-mopper
101+
PACKAGE: access-moppy
102102
CHANNEL: accessnri
103103
RELEASE_TAG: ${{ github.ref_name }}
104104
INPUT_VERSION: ${{ github.event.inputs.version }}
@@ -166,7 +166,7 @@ jobs:
166166
import os, sys
167167
path = Path("${{ env.FILE_PATH }}")
168168
version = os.environ["VERSION"]
169-
target = f"accessnri::access-mopper=={version}"
169+
target = f"accessnri::access-moppy=={version}"
170170
yaml = YAML()
171171
yaml.preserve_quotes = True
172172
yaml.width = 4096
@@ -179,7 +179,7 @@ jobs:
179179
sys.exit(1)
180180
replaced = False
181181
for i, d in enumerate(deps):
182-
if isinstance(d, str) and d.startswith("accessnri::access-mopper=="):
182+
if isinstance(d, str) and d.startswith("accessnri::access-moppy=="):
183183
if d != target:
184184
deps[i] = target
185185
replaced = True
@@ -195,7 +195,7 @@ jobs:
195195
echo "changed=false" >> $GITHUB_OUTPUT
196196
echo "No changes to commit."
197197
else
198-
git commit -m "analysis3: bump access-mopper to ${VERSION}"
198+
git commit -m "analysis3: bump access-moppy to ${VERSION}"
199199
git push -u origin "$BRANCH"
200200
echo "changed=true" >> $GITHUB_OUTPUT
201201
echo "$BRANCH" > ../branch.txt
@@ -209,6 +209,6 @@ jobs:
209209
gh pr create \
210210
--base "${TARGET_BRANCH}" \
211211
--head "${BRANCH}" \
212-
--title "Bump access-mopper to ${VERSION} in analysis3 env" \
213-
--body "Updates \`${FILE_PATH}\` to \`accessnri::access-mopper==${VERSION}\`."
212+
--title "Bump access-moppy to ${VERSION} in analysis3 env" \
213+
--body "Updates \`${FILE_PATH}\` to \`accessnri::access-moppy==${VERSION}\`."
214214
gh pr view "${BRANCH}" --json number -q .number > ../pr_number.txt

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ jobs:
4343

4444
- name: Create default config file
4545
run: |
46-
mkdir -p ~/.mopper
47-
cat <<EOF > ~/.mopper/user.yml
46+
mkdir -p ~/.moppy
47+
cat <<EOF > ~/.moppy/user.yml
4848
creator_name: "CI Bot"
4949
organisation: "ACCESS-NRI"
5050
creator_email: "ci@example.com"
@@ -56,19 +56,19 @@ jobs:
5656

5757
- name: Run smoke and unit tests (automatic)
5858
if: github.event_name != 'workflow_dispatch'
59-
run: pixi run -e test pytest tests/test_smoke.py tests/unit --cov=access_mopper --cov-report=xml
59+
run: pixi run -e test pytest tests/test_smoke.py tests/unit --cov=access_moppy --cov-report=xml
6060

6161
- name: Run unit tests only (manual)
6262
if: github.event_name == 'workflow_dispatch' && github.event.inputs.test_suite == 'unit'
63-
run: pixi run -e test pytest tests/test_smoke.py tests/unit --cov=access_mopper --cov-report=xml
63+
run: pixi run -e test pytest tests/test_smoke.py tests/unit --cov=access_moppy --cov-report=xml
6464

6565
- name: Run integration tests only (manual)
6666
if: github.event_name == 'workflow_dispatch' && github.event.inputs.test_suite == 'integration'
67-
run: pixi run -e test pytest tests/integration --cov=access_mopper --cov-report=xml
67+
run: pixi run -e test pytest tests/integration --cov=access_moppy --cov-report=xml
6868

6969
- name: Run all tests (manual)
7070
if: github.event_name == 'workflow_dispatch' && github.event.inputs.test_suite == 'all'
71-
run: pixi run -e test pytest tests --cov=access_mopper --cov-report=xml
71+
run: pixi run -e test pytest tests --cov=access_moppy --cov-report=xml
7272

7373
- name: Upload code coverage
7474
uses: codecov/codecov-action@v5

.github/workflows/full-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ jobs:
3131

3232
- name: Create default config file
3333
run: |
34-
mkdir -p ~/.mopper
35-
cat <<EOF > ~/.mopper/user.yml
34+
mkdir -p ~/.moppy
35+
cat <<EOF > ~/.moppy/user.yml
3636
creator_name: "CI Bot"
3737
organisation: "ACCESS-NRI"
3838
creator_email: "ci@example.com"
@@ -56,7 +56,7 @@ jobs:
5656

5757
- name: Generate coverage report (if running all tests)
5858
if: github.event.inputs.test_type == 'all'
59-
run: pixi run -e test pytest tests --cov=access_mopper --cov-report=xml --cov-report=html
59+
run: pixi run -e test pytest tests --cov=access_moppy --cov-report=xml --cov-report=html
6060

6161
- name: Upload coverage artifacts
6262
if: github.event.inputs.test_type == 'all'

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
__pycache__/
22
docs/_build
33
docs/build
4-
src/access_mopper.egg-info
4+
src/access_moppy.egg-info
55
# pixi environments
66
.pixi
77
notebooks/.ipynb_checkpoints

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ repos:
33
rev: v4.6.0 # Check the latest version
44
hooks:
55
- id: trailing-whitespace
6-
exclude: "src/access_mopper/cmor_tables"
6+
exclude: "src/access_moppy/cmor_tables"
77
- id: end-of-file-fixer
8-
exclude: "src/access_mopper/cmor_tables"
8+
exclude: "src/access_moppy/cmor_tables"
99
- id: check-yaml
10-
exclude: "^(src/access_mopper/cmor_tables|.conda/meta.yaml)$"
10+
exclude: "^(src/access_moppy/cmor_tables|.conda/meta.yaml)$"
1111
#- id: check-added-large-files
1212
- id: debug-statements # Detects print() and pdb in code
1313

.zenodo.json

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,18 @@
44
"orcid": "0000-0003-3891-5444",
55
"affiliation": "ACCESS-NRI",
66
"name": "Beucher, Romain"
7-
}
8-
],
9-
"contributors": [
10-
{
11-
"name": "Paola Petrellui",
12-
"affiliation": "University of Tasmania",
13-
"orcid": "0000-0002-0164-5105",
14-
"type": "Version 1 developer"
157
},
168
{
17-
"name": "Samuel Green",
18-
"affiliation": "ARC Centre of Excellence for the Weather of the 21st Century",
19-
"orcid": "0000-0003-1129-4676",
20-
"type": "Version 1 developer"
21-
},
22-
{
23-
"name": "Chloe Mackallah",
24-
"affiliation": "CSIRO",
25-
"orcid": "0000-0003-4989-5530",
26-
"type": "APP4 developer"
9+
"orcid": "0000-0002-8385-5367",
10+
"affiliation": "ACCESS-NRI",
11+
"name": "Zeng, Rhaegar"
2712
}
2813
],
14+
"description": "ACCESS-MOPPy is a CMORisation tool designed to post-process ACCESS model output and produce CMIP-compliant datasets.",
2915

3016
"license": "Apache-2.0",
3117

32-
"title": "ACCESS-MOPPeR",
18+
"title": "ACCESS-MOPPy: ACCESS Model Output Post-Processor",
3319

3420
"keywords": ["Climate", "Science", "Model Evaluation", "CMOR", "CMIP", "ACCESS", "ACCESS-NRI", "NCI"],
3521

CHANGELOG.rst

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,4 @@ Changelog
22
=========
33

44
This CHANGELOG documents only key changes between versions. For a full description
5-
of all changes see https://github.com/ACCESS-NRI/ACCESS-MOPPeR/releases
6-
7-
v2.0.0
8-
------
9-
10-
- Fully supported by ACCESS-NRI
11-
- Remove dependency on CMOR
12-
- Remove MOPPeR database
13-
- Remove integration with NCI queue system (PBS)
5+
of all changes see https://github.com/ACCESS-NRI/ACCESS-MOPPy/releases

0 commit comments

Comments
 (0)