Skip to content

Commit

Permalink
Merge pull request #76 from OpenEnergyPlatform/release/v0.0.9
Browse files Browse the repository at this point in the history
Release/v0.0.9
  • Loading branch information
jh-RLI committed Oct 31, 2022
2 parents 520e2d0 + d4cc850 commit 14570fa
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 12 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ Changelog
current (2022-XX-XX)
--------------------


0.0.9 (2022-10-31)
--------------------

* Fix bug that is raised if the input oemetadata does not contain the key _comment (PR#74)

0.0.8 (2022-10-20)
--------------------

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def read(*names, **kwargs):

setup(
name="omi",
version="0.0.8",
version="0.0.9",
license="AGPL-3.0",
description="A library to process and translate open energy metadata.",
long_description="%s\n%s"
Expand Down
18 changes: 9 additions & 9 deletions src/omi/dialects/oep/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,14 +368,14 @@ def visit_metadata(self, metadata: oem_v15.OEPMetadata, *args, **kwargs):
path="https://creativecommons.org/publicdomain/zero/1.0/",
),
),
_comment=self._construct_dict(
metadata=metadata.comment.metadata_info,
dates=metadata.comment.dates,
units=metadata.comment.units,
languages=metadata.comment.languages,
licenses=metadata.comment.licenses,
review=metadata.comment.review,
null=metadata.comment.null,
todo=metadata.comment.todo,
_comment=self._construct_dict(
metadata="Metadata documentation and explanation (https://github.com/OpenEnergyPlatform/oemetadata)",
dates="Dates and time must follow the ISO8601 including time zone (YYYY-MM-DD or YYYY-MM-DDThh:mm:ss±hh)",
units="Use a space between numbers and units (100 m)",
languages="Languages must follow the IETF (BCP47) format (en-GB, en-US, de-DE)",
licenses="License name must follow the SPDX License List (https://spdx.org/licenses/)",
review="Following the OEP Data Review (https://github.com/OpenEnergyPlatform/data-preprocessing/blob/master/data-review/manual/review_manual.md)",
null="If not applicable use: null",
todo="If a value is not yet available, use: todo",
),
)
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ passenv =
*
usedevelop = false
deps =
pytest
pytest==7.1.2
pytest-travis-fold
pytest-cov
pytest-cov==3.0.0
commands =
{posargs:pytest --cov --cov-report=term-missing -vv tests}

Expand Down

0 comments on commit 14570fa

Please sign in to comment.