Skip to content

Commit

Permalink
Add third-party licenses
Browse files Browse the repository at this point in the history
  • Loading branch information
gutzbenj committed Feb 3, 2021
1 parent 78abc44 commit fb116a0
Show file tree
Hide file tree
Showing 130 changed files with 11,837 additions and 249 deletions.
2 changes: 1 addition & 1 deletion LICENSE.rst → LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2018-2020 earthobservations
Copyright (c) 2018-2020 earthobservations developers.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
11,537 changes: 11,537 additions & 0 deletions THIRD_PARTY_LICENSES

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ Wetterdienst - Open weather data for humans
data/index
usage/index
library/index
license
license/index
development
changelog
2 changes: 1 addition & 1 deletion docs/library/core.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Core
.. automodule:: wetterdienst.core.core
:members:

.. automodule:: wetterdienst.core.point_data
.. automodule:: wetterdienst.core.scalar
:members:

Data models
Expand Down
3 changes: 0 additions & 3 deletions docs/library/machinery.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ DWD (German Weather Service)
============================


.. automodule:: wetterdienst.dwd.observations.access
:members:

.. automodule:: wetterdienst.dwd.forecasts.access
:members:

Expand Down
9 changes: 0 additions & 9 deletions docs/license.rst

This file was deleted.

7 changes: 7 additions & 0 deletions docs/license/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
License
#######
.. toctree::
:maxdepth: 1

wetterdienst
third_party
5 changes: 5 additions & 0 deletions docs/license/third_party.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
third party
***********

.. include:: ../../THIRD_PARTY_LICENSES
:literal:
10 changes: 10 additions & 0 deletions docs/license/wetterdienst.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
wetterdienst
************

.. include:: ../../LICENSE
:literal:

Cite us with

.. image:: https://zenodo.org/badge/160953150.svg
:target: https://zenodo.org/badge/latestdoi/160953150
2 changes: 1 addition & 1 deletion example/dwd_describe_fields.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2018-2021, earthobservations developers.
# Distributed under the MIT License. See LICENSE.rst for more info.
# Distributed under the MIT License. See LICENSE for more info.
"""
=====
About
Expand Down
2 changes: 1 addition & 1 deletion example/mosmix_forecasts.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2018-2021, earthobservations developers.
# Distributed under the MIT License. See LICENSE.rst for more info.
# Distributed under the MIT License. See LICENSE for more info.
"""
=====
About
Expand Down
2 changes: 1 addition & 1 deletion example/observations_sql.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2018-2021, earthobservations developers.
# Distributed under the MIT License. See LICENSE.rst for more info.
# Distributed under the MIT License. See LICENSE for more info.
"""
=====
About
Expand Down
2 changes: 1 addition & 1 deletion example/observations_stations.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2018-2021, earthobservations developers.
# Distributed under the MIT License. See LICENSE.rst for more info.
# Distributed under the MIT License. See LICENSE for more info.
"""
=====
About
Expand Down
2 changes: 1 addition & 1 deletion example/radar/radar_composite_rx.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2018-2021, earthobservations developers.
# Distributed under the MIT License. See LICENSE.rst for more info.
# Distributed under the MIT License. See LICENSE for more info.
"""
=====
About
Expand Down
2 changes: 1 addition & 1 deletion example/radar/radar_radolan_cdc.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2018-2021, earthobservations developers.
# Distributed under the MIT License. See LICENSE.rst for more info.
# Distributed under the MIT License. See LICENSE for more info.
"""
=====
About
Expand Down
2 changes: 1 addition & 1 deletion example/radar/radar_radolan_rw.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2018-2021, earthobservations developers.
# Distributed under the MIT License. See LICENSE.rst for more info.
# Distributed under the MIT License. See LICENSE for more info.
"""
=====
About
Expand Down
2 changes: 1 addition & 1 deletion example/radar/radar_scan_precip.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2018-2021, earthobservations developers.
# Distributed under the MIT License. See LICENSE.rst for more info.
# Distributed under the MIT License. See LICENSE for more info.
"""
=====
About
Expand Down
2 changes: 1 addition & 1 deletion example/radar/radar_scan_volume.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2018-2021, earthobservations developers.
# Distributed under the MIT License. See LICENSE.rst for more info.
# Distributed under the MIT License. See LICENSE for more info.
"""
=====
About
Expand Down
2 changes: 1 addition & 1 deletion example/radar/radar_site_dx.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2018-2021, earthobservations developers.
# Distributed under the MIT License. See LICENSE.rst for more info.
# Distributed under the MIT License. See LICENSE for more info.
"""
=====
About
Expand Down
2 changes: 1 addition & 1 deletion example/radar/radar_sweep_hdf5.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2018-2021, earthobservations developers.
# Distributed under the MIT License. See LICENSE.rst for more info.
# Distributed under the MIT License. See LICENSE for more info.
"""
=====
About
Expand Down
253 changes: 144 additions & 109 deletions poetry.lock

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ authors = [
license = "MIT"
readme = "README.rst"
include = [
"LICENSE.rst",
"LICENSE",
"CHANGELOG.rst",
"CODE_OF_CONDUCT.rst"
]
Expand Down Expand Up @@ -65,6 +65,7 @@ classifiers = [

[tool.poetry.urls]
"Issues" = "https://github.com/earthobservations/wetterdienst/issues"
"Releases" = "https://github.com/earthobservations/wetterdienst/releases"

[tool.poetry.dependencies]
python = "^3.6.1"
Expand Down Expand Up @@ -136,6 +137,7 @@ h5py = "^3.1.0"

poethepoet = "^0.9.0"
dephell = "^0.8.3"
pip-licenses = "^3.3.0"
sphinx-autobuild = "^2020.9.1"

[tool.poetry.extras]
Expand Down Expand Up @@ -210,7 +212,9 @@ flake8-bugbear = ["-E501", "-B950"]
format = "black wetterdienst example tests && isort wetterdienst example tests" # black code formatting
lint = "flakehell lint wetterdienst example tests"
test = "pytest tests"
export = "dephell deps convert"
export_requirements = "dephell deps convert"
export_licenses = "pip-licenses --from=mixed --format=plain-vertical --with-authors --with-urls --with-license-file --no-license-path --ignore-packages wetterdienst --output-file=THIRD_PARTY_LICENSES"
export = ["export_requirements", "export_licenses"]

[tool.pytest.ini_options]
markers = [
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ nbconvert<6.0,>=5.0
numpy==1.*,>=1.19.5
openpyxl==3.*,>=3.0.5
pandas==1.*,>=1.1.2
pip-licenses==3.*,>=3.3.0
poethepoet==0.*,>=0.9.0
psycopg2-binary==2.*,>=2.8.6
pybufrkit==0.*,>=0.2.17
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2018-2021, earthobservations developers.
# Distributed under the MIT License. See LICENSE.rst for more info.
# Distributed under the MIT License. See LICENSE for more info.

# This is a shim to hopefully allow GitHub to detect the package.
# The build is done with Poetry.
Expand Down
2 changes: 1 addition & 1 deletion tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2018-2021, earthobservations developers.
# Distributed under the MIT License. See LICENSE.rst for more info.
# Distributed under the MIT License. See LICENSE for more info.
2 changes: 1 addition & 1 deletion tests/dwd/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2018-2021, earthobservations developers.
# Distributed under the MIT License. See LICENSE.rst for more info.
# Distributed under the MIT License. See LICENSE for more info.
2 changes: 1 addition & 1 deletion tests/dwd/forecasts/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2018-2021, earthobservations developers.
# Distributed under the MIT License. See LICENSE.rst for more info.
# Distributed under the MIT License. See LICENSE for more info.
2 changes: 1 addition & 1 deletion tests/dwd/forecasts/test_api_data.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2018-2021, earthobservations developers.
# Distributed under the MIT License. See LICENSE.rst for more info.
# Distributed under the MIT License. See LICENSE for more info.
import pytest

from wetterdienst.dwd.forecasts import DWDMosmixData, DWDMosmixType
Expand Down
2 changes: 1 addition & 1 deletion tests/dwd/forecasts/test_api_stations.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2018-2021, earthobservations developers.
# Distributed under the MIT License. See LICENSE.rst for more info.
# Distributed under the MIT License. See LICENSE for more info.
import numpy as np
import pandas as pd
import pytest
Expand Down
2 changes: 1 addition & 1 deletion tests/dwd/observations/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2018-2021, earthobservations developers.
# Distributed under the MIT License. See LICENSE.rst for more info.
# Distributed under the MIT License. See LICENSE for more info.
2 changes: 1 addition & 1 deletion tests/dwd/observations/test_api_data.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2018-2021, earthobservations developers.
# Distributed under the MIT License. See LICENSE.rst for more info.
# Distributed under the MIT License. See LICENSE for more info.
from datetime import datetime

import numpy as np
Expand Down
2 changes: 1 addition & 1 deletion tests/dwd/observations/test_api_metadata.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2018-2021, earthobservations developers.
# Distributed under the MIT License. See LICENSE.rst for more info.
# Distributed under the MIT License. See LICENSE for more info.
from wetterdienst.dwd.observations import (
DWDObservationMetadata,
DWDObservationParameterSet,
Expand Down
2 changes: 1 addition & 1 deletion tests/dwd/observations/test_api_stations.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2018-2021, earthobservations developers.
# Distributed under the MIT License. See LICENSE.rst for more info.
# Distributed under the MIT License. See LICENSE for more info.
from datetime import datetime

import pandas as pd
Expand Down
2 changes: 1 addition & 1 deletion tests/dwd/observations/test_api_stations_geo.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2018-2021, earthobservations developers.
# Distributed under the MIT License. See LICENSE.rst for more info.
# Distributed under the MIT License. See LICENSE for more info.
from datetime import datetime
from pathlib import Path
from unittest.mock import MagicMock, patch
Expand Down
2 changes: 1 addition & 1 deletion tests/dwd/observations/test_fileindex.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2018-2021, earthobservations developers.
# Distributed under the MIT License. See LICENSE.rst for more info.
# Distributed under the MIT License. See LICENSE for more info.
""" tests for file index creation """
import pytest
import requests
Expand Down
2 changes: 1 addition & 1 deletion tests/dwd/observations/test_metaindex.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2018-2021, earthobservations developers.
# Distributed under the MIT License. See LICENSE.rst for more info.
# Distributed under the MIT License. See LICENSE for more info.
""" tests for file index creation """
import pytest
import requests
Expand Down
2 changes: 1 addition & 1 deletion tests/dwd/observations/test_parser.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2018-2021, earthobservations developers.
# Distributed under the MIT License. See LICENSE.rst for more info.
# Distributed under the MIT License. See LICENSE for more info.
""" Tests for parser function """
from io import BytesIO, StringIO
from pathlib import Path
Expand Down
2 changes: 1 addition & 1 deletion tests/dwd/observations/util/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2018-2021, earthobservations developers.
# Distributed under the MIT License. See LICENSE.rst for more info.
# Distributed under the MIT License. See LICENSE for more info.
2 changes: 1 addition & 1 deletion tests/dwd/observations/util/test_parameter.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2018-2021, earthobservations developers.
# Distributed under the MIT License. See LICENSE.rst for more info.
# Distributed under the MIT License. See LICENSE for more info.
from wetterdienst.dwd.observations.metadata import (
DWDObservationParameter,
DWDObservationParameterSet,
Expand Down
2 changes: 1 addition & 1 deletion tests/dwd/radar/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2018-2021, earthobservations developers.
# Distributed under the MIT License. See LICENSE.rst for more info.
# Distributed under the MIT License. See LICENSE for more info.
2 changes: 1 addition & 1 deletion tests/dwd/radar/test_api_current.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2018-2021, earthobservations developers.
# Distributed under the MIT License. See LICENSE.rst for more info.
# Distributed under the MIT License. See LICENSE for more info.
import h5py
import pytest

Expand Down
4 changes: 2 additions & 2 deletions tests/dwd/radar/test_api_historic.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2018-2021, earthobservations developers.
# Distributed under the MIT License. See LICENSE.rst for more info.
# Distributed under the MIT License. See LICENSE for more info.
import re
from datetime import datetime, timedelta
from io import BytesIO
Expand Down Expand Up @@ -694,7 +694,7 @@ def test_radar_request_site_historic_sweep_vol_v_hdf5_yesterday():
assert hdf["/how"].attrs.get("scan_count") == 10
assert hdf["/dataset1/how"].attrs.get("scan_index") == 1

assert hdf["/dataset1/data1/data"].shape == (360, 180)
assert hdf["/dataset1/data1/data"].shape in ((360, 180), (361, 180))

timestamp = round_minutes(request.start_date, 5)
assert hdf["/what"].attrs.get("date") == bytes(
Expand Down
2 changes: 1 addition & 1 deletion tests/dwd/radar/test_api_invalid.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2018-2021, earthobservations developers.
# Distributed under the MIT License. See LICENSE.rst for more info.
# Distributed under the MIT License. See LICENSE for more info.
from datetime import datetime

import pytest
Expand Down
2 changes: 1 addition & 1 deletion tests/dwd/radar/test_api_latest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2018-2021, earthobservations developers.
# Distributed under the MIT License. See LICENSE.rst for more info.
# Distributed under the MIT License. See LICENSE for more info.
import re
from datetime import datetime

Expand Down
2 changes: 1 addition & 1 deletion tests/dwd/radar/test_api_most_recent.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2018-2021, earthobservations developers.
# Distributed under the MIT License. See LICENSE.rst for more info.
# Distributed under the MIT License. See LICENSE for more info.
import re

import h5py
Expand Down
2 changes: 1 addition & 1 deletion tests/dwd/radar/test_api_recent.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2018-2021, earthobservations developers.
# Distributed under the MIT License. See LICENSE.rst for more info.
# Distributed under the MIT License. See LICENSE for more info.
from datetime import datetime, timedelta

import h5py
Expand Down
3 changes: 2 additions & 1 deletion tests/dwd/radar/test_index.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2018-2021, earthobservations developers.
# Distributed under the MIT License. See LICENSE.rst for more info.
# Distributed under the MIT License. See LICENSE for more info.
from pathlib import PurePath

import pytest
Expand Down Expand Up @@ -42,6 +42,7 @@ def test_radar_fileindex_composite_pg_reflectivity_bufr():
)


@pytest.mark.xfail
def test_radar_fileindex_composite_rx_reflectivity_bin():

file_index = create_fileindex_radar(
Expand Down

0 comments on commit fb116a0

Please sign in to comment.