Skip to content

Commit

Permalink
Switch minimum supported Python to 3.9 (#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
KapJI authored Feb 6, 2023
1 parent 9ddd79d commit 6a60df5
Show file tree
Hide file tree
Showing 7 changed files with 132 additions and 145 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ on:

jobs:
build:
name: Build
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
python-version: ["3.8", "3.9"]
python-version: ["3.9"]
fail-fast: false

runs-on: ${{ matrix.os }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linting-and-testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
name: Pre-commit
strategy:
matrix:
python-version: [3.8]
python-version: ["3.9", "3.10"]
runs-on: ubuntu-latest
steps:
- name: Check out the repository
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
name: Publish
strategy:
matrix:
python-version: [3.8]
python-version: ["3.9"]
runs-on: ubuntu-latest
steps:
- name: Check out the repository
Expand Down
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
rev: v4.4.0
hooks:
- id: check-added-large-files
- id: check-yaml
Expand Down Expand Up @@ -50,19 +50,19 @@ repos:
pass_filenames: false
always_run: true
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.2.1
rev: v2.7.1
hooks:
- id: prettier
- repo: https://github.com/cdce8p/python-typing-update
rev: v0.3.3
rev: v0.5.1
hooks:
# Run `python-typing-update` hook manually from time to time
# to update python typing syntax.
# Will require manual work, before submitting changes!
- id: python-typing-update
stages: [manual]
args:
- --py38-plus
- --py39-plus
- --force
- --keep-updates
files: ^.+\.py$
197 changes: 97 additions & 100 deletions poetry.lock

Large diffs are not rendered by default.

42 changes: 27 additions & 15 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ authors = ["Ilja Leiko <[email protected]>"]
classifiers = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Typing :: Typed",
]
description = "Tool to extract Google device local authentication tokens in Python"
Expand All @@ -23,7 +23,7 @@ homepage = "https://github.com/leikoilja/glocaltokens"
repository = "https://github.com/leikoilja/glocaltokens"

[tool.poetry.dependencies]
python = "^3.8"
python = "^3.9"
gpsoauth = "^1.0.1"
protobuf = "^3.20.1"
simplejson = "^3.17.2"
Expand All @@ -34,26 +34,25 @@ requests = ">=2.27.0"
zeroconf = ">=0.38.0"

[tool.poetry.group.dev.dependencies]
black = "^22.3"
codespell = "^2.1.0"
black = "^23.1.0"
codespell = "^2.2.2"
Faker = "^8.0.0"
flake8 = "^4.0.1"
flake8-bugbear = "^22.4.25"
flake8-comprehensions = "^3.4.0"
flake8-simplify = "^0.19.2"
flake8-use-fstring = "^1.3"
flake8 = "^6.0.0"
flake8-bugbear = "^23.1.20"
flake8-comprehensions = "^3.10.1"
flake8-simplify = "^0.19.3"
flake8-use-fstring = "^1.4"
grpc-stubs = "^1.24.10"
# Using newer version will cause compatibility issues with google-wifi integration.
grpcio-tools = "1.43.0"
ipdb = "^0.13.7"
isort = "^5.10.1"
isort = "^5.12.0"
mock = "^4.0.3"
mypy = "^0.961"
mypy = "^0.991"
mypy-protobuf = "^3.2.0"
pre-commit = "^2.19.0"
pylint = "^2.14.3"
pytest = "^7.1.2"
setuptools = "^65.3.0"
pre-commit = "^3.0.4"
pylint = "^2.16.1"
pytest = "^7.2.1"

[tool.poetry.urls]
"Bug Tracker" = "https://github.com/leikoilja/glocaltokens/issues"
Expand Down Expand Up @@ -90,6 +89,19 @@ profile = "black"
force_sort_within_sections = true
combine_as_imports = true

[tool.mypy]
python_version = "3.9"
show_error_codes = true
strict = true
disallow_any_explicit = true
disallow_any_unimported = true
warn_no_return = true
warn_unreachable = true

[tool.codespell]
quiet-level = 2
skip = "poetry.lock,./.git/*,./.mypy_cache/*,*.egg-info"

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
23 changes: 0 additions & 23 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,3 @@ ignore =
D202,
W504,
SIM119

[mypy]
python_version = 3.8
show_error_codes = True
strict = True
disallow_any_explicit = True
disallow_any_unimported = True
show_none_errors = True
warn_no_return = True
warn_unreachable = True

[mypy-faker]
ignore_missing_imports = True

[mypy-faker.providers]
ignore_missing_imports = True

[mypy-glocaltokens.google.internal.home.foyer.v1_pb2]
ignore_errors = True

[codespell]
quiet-level = 2
skip = poetry.lock,./.git,./.mypy_cache,*.egg-info

0 comments on commit 6a60df5

Please sign in to comment.