Skip to content

Commit ed92655

Browse files
Investigamerloonghao
authored andcommitted
build(poetry,python,workflows): Deprecate support for Python 3.7 (EOL), add support for Python 3.12
Additionally attempt to fix mkdocs error Signed-off-by: MrTeferi <[email protected]>
1 parent 14fd2f4 commit ed92655

File tree

7 files changed

+318
-406
lines changed

7 files changed

+318
-406
lines changed

.github/workflows/import-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
strategy:
88
max-parallel: 3
99
matrix:
10-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
10+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
1111

1212
steps:
1313
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4

.github/workflows/pythonpackage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
strategy:
88
max-parallel: 3
99
matrix:
10-
python-version: [3.7, 3.8, 3.9]
10+
python-version: [3.8, 3.9, 3.10]
1111

1212
steps:
1313
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
language: python
22
python:
3-
- "3.6"
4-
- "3.7"
53
- "3.8"
4+
- "3.9"
5+
- "3.10"
66
before_script:
77
- pip install poetry
88
- poetry install

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<img src="https://img.shields.io/pypi/l/photoshop-python-api" alt="License">
1414
<img src="https://img.shields.io/pypi/format/photoshop-python-api" alt="pypi format">
1515
<a href="https://discord.gg/AnxSa6n">
16-
<img src="https://img.shields.io/discord/724615671400628314" alt="Chat on Discird"></a>
16+
<img src="https://img.shields.io/discord/724615671400628314" alt="Chat on Discord"></a>
1717
<a href="https://github.com/loonghao/photoshop-python-api/graphs/commit-activity">
1818
<img src="https://img.shields.io/badge/Maintained%3F-yes-green.svg" alt="Maintenance"></a>
1919
<a href="https://github.com/loonghao/photoshop-python-api/actions/workflows/bumpversion.yml">
@@ -22,6 +22,8 @@
2222
<img src="https://github.com/loonghao/photoshop-python-api/actions/workflows/pages/pages-build-deployment/badge.svg" alt="pages-build-deployment"></a>
2323
<a href="https://github.com/loonghao/photoshop-python-api/actions/workflows/publish_docs.yml">
2424
<img src="https://github.com/loonghao/photoshop-python-api/actions/workflows/publish_docs.yml/badge.svg" alt="Documentation Status"></a>
25+
<a href="https://img.shields.io/badge/photoshop-2024-green">
26+
<img src="https://img.shields.io/badge/photoshop-2024-green" alt="photoshop-2024"></a>
2527
<a href="https://img.shields.io/badge/photoshop-2023-green">
2628
<img src="https://img.shields.io/badge/photoshop-2023-green" alt="photoshop-2023"></a>
2729
<a href="https://img.shields.io/badge/photoshop-2022-green">

photoshop/api/application.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
from _ctypes import COMError
2323

2424
# Import local modules
25-
from photoshop.api import PhotoshopPythonAPIError
2625
from photoshop.api._artlayer import ArtLayer
2726
from photoshop.api._core import Photoshop
2827
from photoshop.api._document import Document
@@ -34,6 +33,7 @@
3433
from photoshop.api._text_fonts import TextFonts
3534
from photoshop.api.enumerations import DialogModes
3635
from photoshop.api.enumerations import PurgeTarget
36+
from photoshop.api.errors import PhotoshopPythonAPIError
3737
from photoshop.api.solid_color import SolidColor
3838

3939

poetry.lock

Lines changed: 306 additions & 398 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@ classifiers = [
1515
"Operating System :: Microsoft :: Windows",
1616
"Operating System :: Microsoft :: Windows :: Windows 10",
1717
"Programming Language :: Python :: 3 :: Only",
18-
"Programming Language :: Python :: 3.7",
1918
"Programming Language :: Python :: 3.8",
2019
"Programming Language :: Python :: 3.9",
20+
"Programming Language :: Python :: 3.10",
21+
"Programming Language :: Python :: 3.11",
22+
"Programming Language :: Python :: 3.12",
2123
]
2224

2325
packages = [
@@ -27,7 +29,7 @@ packages = [
2729
generate-setup-file = false
2830

2931
[tool.poetry.dependencies]
30-
python = ">=3.7,<4.0"
32+
python = ">=3.8,<4.0"
3133
wheel = "^0.41.0"
3234
comtypes = "^1.1.11"
3335

0 commit comments

Comments
 (0)