diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 3985d41..e65349f 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -20,7 +20,7 @@ jobs: # The type of runner that the job will run on strategy: matrix: - python-versions: [3.7, 3.8, 3.9] + python-versions: [3.9] os: [ubuntu-18.04, macos-latest, windows-latest] runs-on: ${{ matrix.os }} diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 953a60e..8f63a20 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -18,7 +18,7 @@ jobs: strategy: matrix: - python-versions: [ 3.8 ] + python-versions: [ 3.9 ] steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6060909..7f80884 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,7 +21,7 @@ jobs: strategy: matrix: - python-versions: [3.8] + python-versions: [3.9] # Steps represent a sequence of tasks that will be executed as part of the job steps: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 91c76e6..f38ed79 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,7 +21,7 @@ repos: rev: 21.5b1 hooks: - id: black - language_version: python3.8 + language_version: python3.9 - repo: https://github.com/pycqa/flake8 rev: 3.9.2 hooks: diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 2efe9c2..250352c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -95,7 +95,7 @@ Before you submit a pull request, check that it meets these guidelines: 2. If the pull request adds functionality, the docs should be updated. Put your new functionality into a function with a docstring, and add the feature to the list in README.md. -3. The pull request should work for Python 3.7, 3.8 and 3.9. Check +3. The pull request should work for Python 3.9. Check https://github.com/ep1cman/unifi-protect-backup/actions and make sure that the tests pass for all supported Python versions. diff --git a/poetry.lock b/poetry.lock index 31c6f3d..d1edf02 100644 --- a/poetry.lock +++ b/poetry.lock @@ -9,12 +9,10 @@ python-versions = ">=3.6" [package.dependencies] aiosignal = ">=1.1.2" async-timeout = ">=4.0.0a3,<5.0" -asynctest = {version = "0.13.0", markers = "python_version < \"3.8\""} attrs = ">=17.3.0" charset-normalizer = ">=2.0,<3.0" frozenlist = ">=1.1.1" multidict = ">=4.5,<7.0" -typing-extensions = {version = ">=3.7.4", markers = "python_version < \"3.8\""} yarl = ">=1.0,<2.0" [package.extras] diff --git a/pyproject.toml b/pyproject.toml index 502e275..1a7a35c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,8 +13,6 @@ classifiers=[ 'License :: OSI Approved :: MIT License', 'Natural Language :: English', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', ] packages = [ @@ -23,7 +21,7 @@ packages = [ ] [tool.poetry.dependencies] -python = ">=3.7.0,<4.0" +python = ">=3.9.0,<4.0" click = "8.0.1" black = { version = "^21.5b2", optional = true} @@ -77,7 +75,7 @@ unifi-protect-backup = 'unifi_protect_backup.cli:main' [tool.black] line-length = 120 skip-string-normalization = true -target-version = ['py37', 'py38'] +target-version = ['py39'] include = '\.pyi?$' exclude = ''' /( diff --git a/setup.cfg b/setup.cfg index 39b55a0..8e96de9 100644 --- a/setup.cfg +++ b/setup.cfg @@ -40,13 +40,11 @@ exclude_lines = [tox:tox] isolated_build = true -envlist = py37, py38, py39, format, lint, build +envlist = py39, format, lint, build [gh-actions] python = - 3.9: py39 - 3.8: py38, format, lint, build - 3.7: py37 + 3.9: py39, format, lint, build [testenv] allowlist_externals = pytest