Skip to content

Commit

Permalink
Make Package available to Python 3.9 (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
hf-kklein authored Sep 8, 2022
1 parent 19a564d commit 160be6f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.10"]
python-version: ["3.9", "3.10"]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ package_dir =
packages = find:
zip_safe = False
include_package_data = True
python_requires = >=3.10
python_requires = >=3.9
install_requires =
beautifulsoup4
requests
Expand Down
4 changes: 2 additions & 2 deletions src/edi_energy_scraper/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from pathlib import Path
from random import randint
from time import sleep
from typing import Callable, Dict, Set
from typing import Callable, Dict, Set, Union

import requests
from bs4 import BeautifulSoup, Comment # type:ignore[import]
Expand Down Expand Up @@ -38,7 +38,7 @@ class EdiEnergyScraper:
def __init__(
self,
root_url: str = "https://www.edi-energy.de",
path_to_mirror_directory: Path | str = Path("edi_energy_de"),
path_to_mirror_directory: Union[Path, str] = Path("edi_energy_de"),
# HTML and PDF files will be stored relative to this
dos_waiter: Callable = lambda: sleep(randint(1, 10)),
):
Expand Down

0 comments on commit 160be6f

Please sign in to comment.