Skip to content

Commit

Permalink
drop 3.8 add 3.11 and 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
mib1185 committed May 5, 2024
1 parent b6166f7 commit 983fd58
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 40 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/vscode/devcontainers/python:0-3.8
FROM mcr.microsoft.com/vscode/devcontainers/python:0-3.9

# install test requirements
COPY requirements*.txt /tmp/pip-tmp/
Expand Down
51 changes: 27 additions & 24 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,33 @@
"postCreateCommand": "scripts/setup",
"containerEnv": { "DEVCONTAINER": "1" },
"runArgs": ["-e", "GIT_EDITOR=code --wait"],
"extensions": [
"ms-python.vscode-pylance",
"visualstudioexptteam.vscodeintellicode",
"esbenp.prettier-vscode"
],
// Please keep this file in sync with settings in .vscode/settings.default.json
"settings": {
"python.pythonPath": "/usr/local/bin/python",
"python.linting.pylintEnabled": true,
"python.linting.enabled": true,
"python.formatting.provider": "black",
"python.testing.pytestArgs": ["tests"],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"python.linting.mypyEnabled": true,
"editor.formatOnPaste": false,
"editor.formatOnSave": true,
"editor.formatOnType": true,
"files.trimTrailingWhitespace": true,
"terminal.integrated.profiles.linux": {
"zsh": {
"path": "/usr/bin/zsh"
"customizations": {
"vscode": {
"extensions": [
"ms-python.vscode-pylance",
"ms-python.black-formatter",
"ms-python.pylint",
"ms-python.mypy-type-checker",
"visualstudioexptteam.vscodeintellicode",
"esbenp.prettier-vscode"
],
// Please keep this file in sync with settings in .vscode/settings.default.json
"settings": {
"python.pythonPath": "/usr/local/bin/python",
"python.testing.pytestArgs": ["tests"],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"editor.formatOnPaste": false,
"editor.formatOnSave": true,
"editor.formatOnType": true,
"files.trimTrailingWhitespace": true,
"terminal.integrated.profiles.linux": {
"zsh": {
"path": "/usr/bin/zsh"
}
},
"terminal.integrated.defaultProfile.linux": "zsh"
}
},
"terminal.integrated.defaultProfile.linux": "zsh"
}
}
}
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5.1.0
with:
python-version: "3.10"
python-version: "3.12"

- name: Install build dependencies
run: |
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
- name: Check out the repository
uses: actions/checkout@v4.1.4

- name: Set up Python 3.8
- name: Set up Python 3.9
uses: actions/setup-python@v5.1.0
with:
python-version: "3.8"
python-version: "3.9"

- name: Install dependencies
run: |
Expand Down Expand Up @@ -55,9 +55,10 @@ jobs:
fail-fast: false
matrix:
include:
- python-version: "3.8"
- python-version: "3.9"
- python-version: "3.10"
- python-version: "3.11"
- python-version: "3.12"

steps:
- name: Check out the repository
Expand Down Expand Up @@ -90,10 +91,10 @@ jobs:
- name: Check out the repository
uses: actions/checkout@v4.1.4

- name: Set up Python 3.10
- name: Set up Python 3.12
uses: actions/setup-python@v5.1.0
with:
python-version: "3.10"
python-version: "3.12"

- name: Install dependencies
run: |
Expand Down Expand Up @@ -128,7 +129,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5.1.0
with:
python-version: "3.10"
python-version: "3.12"

- name: Install build dependencies
run: |
Expand Down
6 changes: 1 addition & 5 deletions .vscode/settings.default.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{
"python.formatting.provider": "black",
"python.linting.pylintEnabled": true,
"python.linting.enabled": true,
"python.testing.pytestArgs": ["tests"],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"python.linting.mypyEnabled": true
"python.testing.pytestEnabled": true
}
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries",
]
keywords=["synology-dsm", "synology"]
requires-python = ">=3.8.0"
requires-python = ">=3.9"
dependencies = ["aiohttp"]

[project.urls]
Expand Down
2 changes: 1 addition & 1 deletion requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ flake8==7.0.0
mypy==1.10.0
pep8-naming==0.13.3
pre-commit-hooks==4.6.0
pre-commit==3.2.2
pre-commit==3.7.0
Pygments==2.17.2
pylint==3.1.0
pytest-asyncio==0.20.3
Expand Down

0 comments on commit 983fd58

Please sign in to comment.