Skip to content

Commit

Permalink
Merge pull request #68 from bundesAPI/feat-new-python-versions
Browse files Browse the repository at this point in the history
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
  • Loading branch information
wirthual authored Aug 12, 2022
2 parents 24dc0f9 + 47fc938 commit 70144d4
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 14 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Lint
name: Generate Docs

on: [push, pull_request]

Expand All @@ -7,7 +7,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
with:
python-version: '3.9'

- name: "generate sphinx-documentation"
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/runtests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.6.7","3.7", "3.8", "3.9"]
python-version: ["3.9.13","3.8.13","3.7.13","3.6.12"]
fail-fast: false

steps:
Expand Down
19 changes: 8 additions & 11 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ pandas = "1.1.5"
more-itertools = "^8.10.0"
onnxruntime = "^1.10.0"
numpy = "1.19.0"
protobuf= ">=3.0,<4.0"

# Those are packages which were included in previous release so not optional
de-autobahn = {version = "^1.0.4"}
Expand Down Expand Up @@ -116,6 +117,7 @@ isolated_build = True
basepython = python3
[testenv]
poetry_experimental_add_locked_dependencies = True
deps = pytest
usedevelop = true
extras =
Expand All @@ -124,5 +126,6 @@ commands =
pytest
"""


[tool.isort]
profile = "black"
12 changes: 12 additions & 0 deletions tests/geo_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from deutschland.geo import Geo


def test_basic_query():
geo = Geo()
# top_right and bottom_left coordinates
data = geo.fetch(
[52.530116236589244, 13.426532801586827],
[52.50876180448243, 13.359631043007212],
)

assert len(data.keys()) > 0
File renamed without changes.
File renamed without changes.

0 comments on commit 70144d4

Please sign in to comment.