Skip to content

Commit 70144d4

Browse files
authored
Merge pull request #68 from bundesAPI/feat-new-python-versions
Set protobuf to lower version to avoid installation error #65 ) Updated lock Use latest available patch per python version Update github action name for docs use fixed python version for doc creation
2 parents 24dc0f9 + 47fc938 commit 70144d4

7 files changed

Lines changed: 28 additions & 14 deletions

File tree

.github/workflows/doc.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Lint
1+
name: Generate Docs
22

33
on: [push, pull_request]
44

@@ -7,7 +7,9 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v2
10-
- uses: actions/setup-python@v2
10+
- uses: actions/setup-python@v4
11+
with:
12+
python-version: '3.9'
1113

1214
- name: "generate sphinx-documentation"
1315
run: |

.github/workflows/runtests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
python-version: ["3.6.7","3.7", "3.8", "3.9"]
10+
python-version: ["3.9.13","3.8.13","3.7.13","3.6.12"]
1111
fail-fast: false
1212

1313
steps:

poetry.lock

Lines changed: 8 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ pandas = "1.1.5"
2626
more-itertools = "^8.10.0"
2727
onnxruntime = "^1.10.0"
2828
numpy = "1.19.0"
29+
protobuf= ">=3.0,<4.0"
2930

3031
# Those are packages which were included in previous release so not optional
3132
de-autobahn = {version = "^1.0.4"}
@@ -116,6 +117,7 @@ isolated_build = True
116117
basepython = python3
117118
118119
[testenv]
120+
poetry_experimental_add_locked_dependencies = True
119121
deps = pytest
120122
usedevelop = true
121123
extras =
@@ -124,5 +126,6 @@ commands =
124126
pytest
125127
"""
126128

129+
127130
[tool.isort]
128131
profile = "black"

tests/geo_test.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from deutschland.geo import Geo
2+
3+
4+
def test_basic_query():
5+
geo = Geo()
6+
# top_right and bottom_left coordinates
7+
data = geo.fetch(
8+
[52.530116236589244, 13.426532801586827],
9+
[52.50876180448243, 13.359631043007212],
10+
)
11+
12+
assert len(data.keys()) > 0

0 commit comments

Comments
 (0)