mirror of
https://github.com/ep1cman/unifi-protect-backup.git
synced 2025-12-05 23:53:30 +00:00
Bumping minimum python support to python 3.9
Pyunifiprotect only supports >=3.9 so, this project must too.
This commit is contained in:
2
.github/workflows/dev.yml
vendored
2
.github/workflows/dev.yml
vendored
@@ -20,7 +20,7 @@ jobs:
|
|||||||
# The type of runner that the job will run on
|
# The type of runner that the job will run on
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-versions: [3.7, 3.8, 3.9]
|
python-versions: [3.9]
|
||||||
os: [ubuntu-18.04, macos-latest, windows-latest]
|
os: [ubuntu-18.04, macos-latest, windows-latest]
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
|
|||||||
2
.github/workflows/preview.yml
vendored
2
.github/workflows/preview.yml
vendored
@@ -18,7 +18,7 @@ jobs:
|
|||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-versions: [ 3.8 ]
|
python-versions: [ 3.9 ]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|||||||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -21,7 +21,7 @@ jobs:
|
|||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
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 represent a sequence of tasks that will be executed as part of the job
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ repos:
|
|||||||
rev: 21.5b1
|
rev: 21.5b1
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
language_version: python3.8
|
language_version: python3.9
|
||||||
- repo: https://github.com/pycqa/flake8
|
- repo: https://github.com/pycqa/flake8
|
||||||
rev: 3.9.2
|
rev: 3.9.2
|
||||||
hooks:
|
hooks:
|
||||||
|
|||||||
@@ -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
|
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
|
your new functionality into a function with a docstring, and add the
|
||||||
feature to the list in README.md.
|
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
|
https://github.com/ep1cman/unifi-protect-backup/actions
|
||||||
and make sure that the tests pass for all supported Python versions.
|
and make sure that the tests pass for all supported Python versions.
|
||||||
|
|
||||||
|
|||||||
2
poetry.lock
generated
2
poetry.lock
generated
@@ -9,12 +9,10 @@ python-versions = ">=3.6"
|
|||||||
[package.dependencies]
|
[package.dependencies]
|
||||||
aiosignal = ">=1.1.2"
|
aiosignal = ">=1.1.2"
|
||||||
async-timeout = ">=4.0.0a3,<5.0"
|
async-timeout = ">=4.0.0a3,<5.0"
|
||||||
asynctest = {version = "0.13.0", markers = "python_version < \"3.8\""}
|
|
||||||
attrs = ">=17.3.0"
|
attrs = ">=17.3.0"
|
||||||
charset-normalizer = ">=2.0,<3.0"
|
charset-normalizer = ">=2.0,<3.0"
|
||||||
frozenlist = ">=1.1.1"
|
frozenlist = ">=1.1.1"
|
||||||
multidict = ">=4.5,<7.0"
|
multidict = ">=4.5,<7.0"
|
||||||
typing-extensions = {version = ">=3.7.4", markers = "python_version < \"3.8\""}
|
|
||||||
yarl = ">=1.0,<2.0"
|
yarl = ">=1.0,<2.0"
|
||||||
|
|
||||||
[package.extras]
|
[package.extras]
|
||||||
|
|||||||
@@ -13,8 +13,6 @@ classifiers=[
|
|||||||
'License :: OSI Approved :: MIT License',
|
'License :: OSI Approved :: MIT License',
|
||||||
'Natural Language :: English',
|
'Natural Language :: English',
|
||||||
'Programming Language :: Python :: 3',
|
'Programming Language :: Python :: 3',
|
||||||
'Programming Language :: Python :: 3.7',
|
|
||||||
'Programming Language :: Python :: 3.8',
|
|
||||||
'Programming Language :: Python :: 3.9',
|
'Programming Language :: Python :: 3.9',
|
||||||
]
|
]
|
||||||
packages = [
|
packages = [
|
||||||
@@ -23,7 +21,7 @@ packages = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = ">=3.7.0,<4.0"
|
python = ">=3.9.0,<4.0"
|
||||||
click = "8.0.1"
|
click = "8.0.1"
|
||||||
|
|
||||||
black = { version = "^21.5b2", optional = true}
|
black = { version = "^21.5b2", optional = true}
|
||||||
@@ -77,7 +75,7 @@ unifi-protect-backup = 'unifi_protect_backup.cli:main'
|
|||||||
[tool.black]
|
[tool.black]
|
||||||
line-length = 120
|
line-length = 120
|
||||||
skip-string-normalization = true
|
skip-string-normalization = true
|
||||||
target-version = ['py37', 'py38']
|
target-version = ['py39']
|
||||||
include = '\.pyi?$'
|
include = '\.pyi?$'
|
||||||
exclude = '''
|
exclude = '''
|
||||||
/(
|
/(
|
||||||
|
|||||||
@@ -40,13 +40,11 @@ exclude_lines =
|
|||||||
|
|
||||||
[tox:tox]
|
[tox:tox]
|
||||||
isolated_build = true
|
isolated_build = true
|
||||||
envlist = py37, py38, py39, format, lint, build
|
envlist = py39, format, lint, build
|
||||||
|
|
||||||
[gh-actions]
|
[gh-actions]
|
||||||
python =
|
python =
|
||||||
3.9: py39
|
3.9: py39, format, lint, build
|
||||||
3.8: py38, format, lint, build
|
|
||||||
3.7: py37
|
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
allowlist_externals = pytest
|
allowlist_externals = pytest
|
||||||
|
|||||||
Reference in New Issue
Block a user