Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renames the projects to include cmip-ref- prefix #23

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ jobs:
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}


imports-without-extras:
strategy:
fail-fast: false
Expand Down Expand Up @@ -142,3 +141,19 @@ jobs:
run: |
echo "No changelog present."
exit 1

check-build:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- uses: ./.github/actions/setup
- name: Check build
run: |
uv build --package cmip-ref -o dist
uv build --package cmip-ref-core -o dist
tar -tvf dist/cmip_ref-*.tar.gz --wildcards '*ref/py.typed' '*/LICENCE' '*/NOTICE'
tar -tvf dist/cmip_ref_core-*.tar.gz --wildcards '*ref_core/py.typed' '*/LICENCE' '*/NOTICE'
- name: Check installable
run: |
uv pip install dist/*.whl
5 changes: 4 additions & 1 deletion packages/ref-core/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# ref-core

This package provides the core functionality for the REF.
This package is designed to be a library so may be published and consumed by othe packages if needed.

This package is designed to be a library so may be published and consumed by other packages if needed.

See the [documentation](https://cmip-ref.readthedocs.io/en/latest/) for more information.
13 changes: 12 additions & 1 deletion packages/ref-core/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[project]
name = "ref-core"
name = "cmip-ref-core"
version = "0.1.0"
description = "Core library for the CMIP Rapid Evaluation Framework"
readme = "README.md"
Expand Down Expand Up @@ -35,3 +35,14 @@ dev-dependencies = [
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.build]
include = ["src/ref_core"]

[tool.hatch.build.targets.sdist.force-include]
"../../LICENCE" = "LICENCE"
"../../NOTICE" = "NOTICE"

[tool.hatch.build.targets.wheel.force-include]
"../../../LICENCE" = "LICENCE"
"../../../NOTICE" = "NOTICE"
5 changes: 3 additions & 2 deletions packages/ref-metrics-example/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[project]
name = "ref-metrics-example"
name = "cmip-ref-metrics-example"
version = "0.1.0"
description = "Example metrics provider for the CMIP Rapid Evaluation Framework"
readme = "README.md"
Expand All @@ -11,6 +11,7 @@ classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"License :: OSI Approved :: Apache Software License",
"Intended Audience :: Science/Research",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
Expand All @@ -21,7 +22,7 @@ classifiers = [
"Topic :: Scientific/Engineering",
]
dependencies = [
"ref-core",
"cmip-ref-core",
"xarray >= 2022",
"netcdf4>=1.5.0",
"dask>=2024.10.0",
Expand Down
17 changes: 15 additions & 2 deletions packages/ref/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[project]
name = "ref"
name = "cmip-ref"
version = "0.1.0"
description = "Application which runs the CMIP Rapid Evaluation Framework"
readme = "README.md"
Expand All @@ -21,7 +21,7 @@ classifiers = [
"Topic :: Scientific/Engineering",
]
dependencies = [
"ref-core",
"cmip-ref-core",
"attrs>=24.2.0",
"cattrs>=24.1.2",
"environs>=11.0.0",
Expand Down Expand Up @@ -51,3 +51,16 @@ dev-dependencies = [
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.build]
packages = ["src/ref"]

[tool.hatch.build.targets.sdist.force-include]
"../../README.md" = "README.md"
"../../LICENCE" = "LICENCE"
"../../NOTICE" = "NOTICE"

[tool.hatch.build.targets.wheel.force-include]
"../../../README.md" = "README.md"
"../../../LICENCE" = "LICENCE"
"../../../NOTICE" = "NOTICE"
14 changes: 7 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[project]
name = "cmip-ref"
name = "cmip-ref-root"
version = "0.1.0"
description = "CMIP Rapid Evaluation Framework"
readme = "README.md"
Expand All @@ -8,9 +8,9 @@ authors = [
]
requires-python = ">=3.10"
dependencies = [
"ref[postgres]",
"ref-core",
"ref-metrics-example",
"cmip-ref[postgres]",
"cmip-ref-core",
"cmip-ref-metrics-example",
]

[project.license]
Expand Down Expand Up @@ -54,9 +54,9 @@ dev-dependencies = [
members = ["packages/*"]

[tool.uv.sources]
ref = { workspace = true }
ref-core = { workspace = true }
ref-metrics-example = { workspace = true }
cmip-ref = { workspace = true }
cmip-ref-core = { workspace = true }
cmip-ref-metrics-example = { workspace = true }

[tool.coverage.run]
source = ["packages"]
Expand Down
152 changes: 76 additions & 76 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading