dbt-semantic-interfaces contains the shared semantic classes, default
validation, and tests designed to be used by both the dbt-core and MetricFlow
projects. By centralizing these shared resources, we aim to maintain consistency
and reduce code duplication across both projects.
Features:
- Protocols for shared semantic classes: Define the interfaces and common
attributes that must be implemented by the objects in both projects.
- Validation: Ensure that the objects comply with the expected structure and
constraints.
- Tests: Ensure that the objects' behavior is consistent and correct across both
projects.
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py312-dbt-semantic-interfaces listed in the above command, you can pick from the names under the Packages section.
databases/py-dbt-semantic-interfaces: Update dependency
This is done in preparation for upgrading devel/py-importlib-metadata to
9.X branch
Approved by: portmgr (blanket)
databases/py-dbt-semantic-interfaces: Fix BUILD_DEPENDS and its usage
- Fix BUILD_DEPENDS: py-hatch is not needed
- Fix BUILD_DEPENDS usage: it should depend on the package, not the executable
from pyproject.toml:
[build-system]
requires = ["hatchling"]
Reference: https://github.com/dbt-labs/dbt-semantic-interfaces/blob/v0.10.0/pyproject.toml#L35-L36
Approved by: portmgr (blanket)
With hat: python
devel/py-python-dateutil: Move devel/py-dateutil to devel/py-python-dateutil
- Convert to USE_PYTHON=pep517
- Bump PORTREVISION of dependent ports for dependency change
- While I'm here, update audio/py-pyradio to use PYTHON_PKGNAMEPREFIX instead of
PKGNAMEPREFIX for *_DEPENDS
databases/py-dbt-semantic-interfaces: Fix build by correcting dependency
This fails:
RUN_DEPENDS=
${PYTHON_PKGNAMEPREFIX}pydantic>=1.10,<2,1:devel/py-pydantic@${PY_FLAVOR}
That's probably because pydantic has comma in its version and it isn't properly
handled:
py39-pydantic-1.10.13,1
Approved by: portmgr (unbreak)
databases/py-dbt-semantic-interfaces: new port
dbt-semantic-interfaces contains the shared semantic classes, default
validation, and tests designed to be used by both the dbt-core and MetricFlow
projects. By centralizing these shared resources, we aim to maintain consistency
and reduce code duplication across both projects.
Features:
- Protocols for shared semantic classes: Define the interfaces and common
attributes that must be implemented by the objects in both projects.
- Validation: Ensure that the objects comply with the expected structure and
constraints.
- Tests: Ensure that the objects' behavior is consistent and correct across both
projects.
PR: 274581
Author: Pat Maddox <pat@patmaddox.com>