Skip to content

Commit

Permalink
Add python3.12 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre0512 committed Nov 20, 2023
1 parent aa90902 commit fc6bac0
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/python-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
Expand All @@ -25,15 +25,15 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install flake8 pylint black
python -m pip install -r requirements_dev.txt
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=120 --statistics
- name: Analysing the code with pylint
run: |
pylint --max-line-length 120 $(git ls-files '*.py')
pylint --max-line-length 120 lidlplus/
- name: Check black style
run: |
black . -l 120 --check
10 changes: 5 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
getuseragent~=0.0.7
oic~=1.6.0
requests~=2.31.0
selenium-wire~=5.1.0
webdriver-manager~=3.8.6
getuseragent>=0.0.7
oic>=1.4.0
requests>=2.28.1
selenium-wire>=5.1.0
webdriver-manager>=3.8.5
4 changes: 4 additions & 0 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
black>=22.12
flake8>=6.0
mypy>=0.991
pylint>=2.15
14 changes: 12 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,24 @@
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
],
platforms="any",
packages=find_packages(),
include_package_data=True,
python_requires=">=3.8",
install_requires=["requests"],
extras_require={"auth": ["selenium-wire", "webdriver-manager", "getuseragent", "oic"]},
install_requires=[
"requests>=2.28.1",
],
extras_require={
"auth": [
"getuseragent>=0.0.7",
"oic>=1.4.0",
"selenium-wire>=5.1.0",
"webdriver-manager>=3.8.5",
]
},
entry_points={
"console_scripts": [
"lidl-plus = lidlplus.__main__:start",
Expand Down

0 comments on commit fc6bac0

Please sign in to comment.