Skip to content

Commit 3b6f93e

Browse files
authored
Merge pull request #99 from warner/98-support-for-python-312
Support for python 3.12, drop 3.7
2 parents 7e4e369 + 86d0020 commit 3b6f93e

File tree

6 files changed

+1050
-431
lines changed

6 files changed

+1050
-431
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
name: "${{ matrix.os }}: Python ${{ matrix.python-version }}"
1515
strategy:
1616
matrix:
17-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
17+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
1818
os: ["ubuntu-22.04"]
1919

2020
runs-on: "${{ matrix.os }}"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Full documentation and examples are in the doc/ directory.
2525

2626
## DEPENDENCIES
2727

28-
* Python 3.5 or higher (still works under Python 2.7 for now)
28+
* Python 3.8 or higher
2929
* Twisted 16.0.0 or later
3030
* PyOpenSSL (tested against 16.0.0)
3131

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def run(self):
7777
"i2p": ["txi2p-tahoe >= 0.3.5; python_version > '3.0'",
7878
"txi2p >= 0.3.2; python_version < '3.0'"],
7979
},
80-
"python_requires": ">=3.7",
80+
"python_requires": ">=3.8",
8181
}
8282

8383
setup_args.update(

src/foolscap/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""Foolscap"""
22

3-
from ._version import get_versions
4-
__version__ = str(get_versions()['version'])
5-
del get_versions
3+
from . import _version
4+
__version__ = _version.get_versions()['version']
5+
6+
del _version

0 commit comments

Comments
 (0)