Skip to content

Commit b5e8850

Browse files
authored
Merge pull request #64 from OpenEnergyPlatform/develop
Update master with latest release v1.5.0
2 parents 20aacec + e860f18 commit b5e8850

36 files changed

+1476
-761
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# https://github.com/actions/runner
2+
# https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/introduction-to-github-actions#understanding-the-workflow-file
3+
# https://docs.github.com/pt/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions
4+
# https://github.com/actions/virtual-environments#available-environments
5+
# ubuntu-latest, ubuntu-18.04, or ubuntu-16.04
6+
# windows-latest or windows-2019
7+
# macos-latest or macos-10.15
8+
name: Automated tests
9+
10+
on:
11+
push:
12+
branches: [ develop, master]
13+
pull_request:
14+
branches: [ develop, master ]
15+
16+
jobs:
17+
test:
18+
runs-on: ubuntu-latest
19+
env:
20+
TOXENV: py3
21+
name: metadata-tests
22+
strategy:
23+
matrix:
24+
python-version:
25+
- 3.6
26+
- 3.7
27+
steps:
28+
- name: Check out source repository
29+
uses: actions/checkout@v2
30+
- name: Set up Python ${{ matrix.python-version }}
31+
uses: actions/setup-python@v2
32+
with:
33+
python-version: ${{ matrix.python-version }}
34+
- name: Install python dependencies
35+
run: |
36+
python -m pip install --upgrade pip
37+
pip install -r requirements.txt
38+
- name: Test metadata
39+
run: tox -v

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,22 @@ Here is a template for new release sections
3232

3333
### Changed
3434

35+
## [1.5.0] - Release
36+
37+
### Added
38+
- Add keys for linked data compatibility: ``@context``, ``@id``, ``subject``, ``is_about``, ``value_reference``
39+
- Add context.json file
40+
41+
### Changed
42+
- Delete future directory
43+
- Clarify instructions for dealing with non-applicable keys (null) and missing values ("todo")
44+
- Make key 13.2 ``timeseries`` a list
45+
- Relocate development information from README.md to CONTRIBUTING.md
46+
- Add licence information to README.md
47+
- Update all .json files to v1.5.0
48+
- reintroduce automated tests (CI) by switching form travis-ci to github actions [PR#63]
49+
- Updated schema.json for v1.5.0 now includes the new key "title" which describes the title of the curent field [PR#56] adapted from [PR#43]
50+
3551
## [1.4.1] - Minor release 2021-01-14
3652

3753
### Added

CONTRIBUTING.md

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,20 +48,43 @@ it through first).
4848

4949
#### Step 3: Run tests locally
5050

51-
To run tests locally, install the dependencies
51+
To run tests locally,
52+
53+
1. create virtualenv in root folder of repo
54+
55+
```bash
56+
python -m venv venv
57+
```
58+
59+
2. Activate virtualenv
60+
61+
Linux:
62+
63+
```bash
64+
. venv/bin/activate
65+
```
66+
67+
Windows:
68+
69+
```bash
70+
. venv/Scripts/activate
71+
```
72+
73+
3. Install requirements
74+
5275
```bash
5376
pip install -r requirements.txt
5477
```
5578

56-
1. Integration/unit tests
79+
4. Integration/unit tests
5780
```bash
5881
pytest
5982
```
6083
And for a complete run in different environments:
6184
```bash
6285
tox -v
6386
```
64-
2. Linting tests
87+
5. Linting tests
6588
```bash
6689
flake8
6790
```
@@ -98,3 +121,15 @@ In the `.travis.yml` file are many options commented out, you can have
98121
very complexe schemes to test on many different python versions etc. For
99122
more information look at Travis
100123
[doc](https://docs.travis-ci.com/user/languages/python/) for python.
124+
125+
### If a Python interpreter version is missing:
126+
127+
Linux (Ubuntu):
128+
129+
```
130+
sudo add-apt-repository ppa:deadsnakes/ppa
131+
sudo apt-get update
132+
# Install only missing interpreters:
133+
sudo apt-get install python3.6
134+
sudo apt-get install python3.7
135+
```

README.md

Lines changed: 25 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,93 +1,55 @@
1-
<a href="http://oep.iks.cs.ovgu.de/"><img align="right" width="200" height="200" src="https://avatars2.githubusercontent.com/u/37101913?s=400&u=9b593cfdb6048a05ea6e72d333169a65e7c922be&v=4" alt="OpenEnergyPlatform"></a>
1+
[![Build Status](https://travis-ci.org/OpenEnergyPlatform/oemetadata.svg?branch=develop)](https://travis-ci.org/OpenEnergyPlatform/oemetadata)
22

3-
# Open Energy Family - Metadata
3+
<a href="https://github.com/OpenEnergyPlatform/oemetadata/"><img align="right" width="100" height="100" src="https://raw.githubusercontent.com/OpenEnergyPlatform/organisation/master/logo/OpenEnergyFamily_Logo_OEMetadata.png" alt="OpenEnergyMetadata"></a>
4+
<a href="https://openenergy-platform.org/"><img align="right" width="100" height="100" src="https://avatars2.githubusercontent.com/u/37101913?s=400&u=9b593cfdb6048a05ea6e72d333169a65e7c922be&v=4" alt="OpenEnergyPlatform"></a>
45

5-
OEF metadata schemata, examples and templates package
6+
# Open Energy Family - Open Energy Metadata (OEM)
7+
8+
Open Energy Metadata (OEM) is an energy metadata standard including a template, examples and a metadata schema.
9+
It is an extensive set of metadata based on the tabular data package specifications and the FAIR principles.
10+
The metadata contains multiple fields (keys) in a nested JSON structure.
11+
12+
You can find the latest version right here:
13+
* [template.json](./metadata/latest/template.json) contains an empty metadata string
14+
* [metadata_key_description.md](./metadata/latest/metadata_key_description.md) contains a description of each metadata key
15+
* [example.json](./metadata/latest/example.json) contains a basic metadata example
616

7-
[![Build Status](https://travis-ci.org/OpenEnergyPlatform/oemetadata.svg?branch=develop)](https://travis-ci.org/OpenEnergyPlatform/oemetadata)
817

918
## License / Copyright
1019

11-
This repository is licensed under [MIT License (MIT)](https://spdx.org/licenses/MIT.html)
20+
This repository is licensed under [MIT License (MIT)](https://spdx.org/licenses/MIT.html) <br>
21+
The oemetadata is licensed under [Creative Commons Zero v1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/) <br>
22+
The oemetadata example and oemetadata template are licensed under [Creative Commons Zero v1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/)
1223

1324
## Installation
1425

15-
`pip install oep-oemetadata`
26+
`pip install oep-metadata`
1627

1728
## Usage Examples
1829

1930
```
20-
from oemetadata.v140.example import OEMETADATA_V140_EXAMPLE
21-
22-
print(OEMETADATA_V140_EXAMPLE)
23-
```
31+
from metadata.v150.example import OEMETADATA_v150_EXAMPLE
2432
33+
print(OEMETADATA_v150_EXAMPLE)
2534
```
26-
from oemetadata.v140.schema import OEMETADATA_V140_SCHEMA
2735

28-
print(OEMETADATA_V140_SCHEMA)
2936
```
37+
from metadata.v150.schema import OEMETADATA_v150_SCHEMA
3038
39+
print(OEMETADATA_v150_SCHEMA)
3140
```
32-
from oemetadata.v140.template import OEMETADATA_V140_TEMPLATE
3341

34-
print(OEMETADATA_V140_TEMPLATE)
3542
```
43+
from metadata.v150.template import OEMETADATA_v150_TEMPLATE
3644
37-
## Open Energy Metadata description
38-
39-
The OEMeta data contains multiple fields/keys in a nested JSON data structure. We [describe](https://github.com/OpenEnergyPlatform/oemetadata/blob/develop/metadata/latest/metadata_key_description.md)
40-
each field/key and update the description for each release if necessary!
41-
42-
## Development
43-
44-
### Example for activating virtualenv and install development dependencies:
45-
46-
1. Create virtualenv in root folder of repo
47-
48-
`python -m venv venv`
49-
50-
2. Activate virtualenv
51-
52-
Linux:
53-
54-
`. venv/bin/activate`
55-
56-
Windows:
57-
58-
`. venv/Scripts/activate`
59-
60-
3. Install requirements
61-
62-
`pip install -r requirements.txt`
63-
64-
### Run tests locally (after above steps):
65-
66-
Short:
67-
68-
`pytest`
69-
70-
Complete:
71-
72-
`tox -v`
73-
74-
### If a Python interpreter version is missing:
75-
76-
Linux (Ubuntu):
77-
78-
```
79-
sudo add-apt-repository ppa:deadsnakes/ppa
80-
sudo apt-get update
81-
# Install only missing interpreters:
82-
sudo apt-get install python3.6
83-
sudo apt-get install python3.7
45+
print(OEMETADATA_v150_TEMPLATE)
8446
```
8547

86-
### Contributing
48+
## Contributing
8749

8850
For further contributing infos and conventions see: [CONTRIBUTING.md](./CONTRIBUTING.md)
8951

90-
### Make PyPI release:
52+
## Make PyPI release:
9153

9254
First bump version in setup.py, then:
9355

metadata/future/README.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)