Skip to content

Commit 727bd13

Browse files
authored
Merge pull request Electrostatics#430 from kiyoon/feat/python-310
build: support python 3.10
2 parents 9dd79cb + db4572c commit 727bd13

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

.github/workflows/python-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
if: "!contains(github.event.head_commit.message, 'noci')"
1616
strategy:
1717
matrix:
18-
python-version: ['3.11', '3.12', '3.13']
18+
python-version: ['3.10', '3.11', '3.12', '3.13']
1919

2020
steps:
2121
- uses: actions/checkout@v4

pdb2pqr/structures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
.. codeauthor:: Nathan Baker
88
"""
99

10-
from typing import Self
10+
from typing_extensions import Self
1111

1212
from .config import BACKBONE
1313
from .pdb import ATOM, HETATM

pdb2pqr/topology.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@ def startElement(self, tag_name, _):
7474
elif tag_name == "titrationstate":
7575
if self.curr_titration_state is not None:
7676
_LOGGER.info(
77-
"** Overwriting current topology_titration_state "
78-
"object!"
77+
"** Overwriting current topology_titration_state object!"
7978
)
8079
self.curr_titration_state = TopologyTitrationState(
8180
self.curr_residue

pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ authors = [
3232
readme = "README.md"
3333
license = { file = "LICENSE.md" }
3434
# NOTE: make sure you change [tool.pyright] pythonVersion to match this
35-
requires-python = ">=3.11,<4"
35+
requires-python = ">=3.10,<4"
3636
classifiers = [
3737
"Development Status :: 4 - Beta",
3838
"Environment :: Console",
@@ -44,6 +44,7 @@ classifiers = [
4444
"Operating System :: POSIX",
4545
"Programming Language :: Python :: Implementation :: CPython",
4646
"Programming Language :: Python",
47+
"Programming Language :: Python :: 3.10",
4748
"Programming Language :: Python :: 3.11",
4849
"Programming Language :: Python :: 3.12",
4950
"Programming Language :: Python :: 3.13",
@@ -58,6 +59,7 @@ dependencies = [
5859
"propka >= 3.5",
5960
"requests",
6061
"docutils",
62+
"typing-extensions",
6163
]
6264

6365
[project.optional-dependencies]
@@ -108,7 +110,7 @@ typeCheckingMode = "standard"
108110
useLibraryCodeForTypes = true
109111
autoImportCompletions = true
110112

111-
pythonVersion = "3.11"
113+
pythonVersion = "3.10"
112114
# pythonPlatform = "Linux"
113115

114116
reportDuplicateImport = true

tests/logging_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ def test_log_output_in_pqr_location(
3434
(
3535
"pdb2pqr.io",
3636
"INFO",
37-
f'Logs stored: {tmp_path / output_file.split(".")[0]}.log',
37+
f"Logs stored: {tmp_path / output_file.split('.')[0]}.log",
3838
)
3939
)

0 commit comments

Comments
 (0)