diff options
author | Sebastian Thiel <sebastian.thiel@icloud.com> | 2022-11-17 14:42:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-17 14:42:49 +0100 |
commit | 5cfacac6c67f2130ae56eb2a0ef16b2a3c7c843d (patch) | |
tree | 6ab5cae13002d0d9b7c4e07945827273dc3564f0 | |
parent | 334ef84a05c953ed5dbec7b9c6d4310879eeab5a (diff) | |
parent | 0370014ee74a0f4480127932a78f177f6f433b9e (diff) | |
download | smmap-5cfacac6c67f2130ae56eb2a0ef16b2a3c7c843d.tar.gz |
Add support for Python 3.11
-rw-r--r-- | .github/workflows/pythonpackage.yml | 6 | ||||
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | doc/source/intro.rst | 2 | ||||
-rwxr-xr-x | setup.py | 3 | ||||
-rw-r--r-- | smmap/buf.py | 2 | ||||
-rw-r--r-- | tox.ini | 2 |
6 files changed, 8 insertions, 9 deletions
diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index e6e68ff..9e2d881 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -15,14 +15,14 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"] + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 1000 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Install dependencies @@ -27,7 +27,7 @@ For performance critical 64 bit applications, a simplified version of memory map ## Prerequisites -* Python 3.6+ +* Python 3.7+ * OSX, Windows or Linux The package was tested on all of the previously mentioned configurations. diff --git a/doc/source/intro.rst b/doc/source/intro.rst index 3489b04..109fec2 100644 --- a/doc/source/intro.rst +++ b/doc/source/intro.rst @@ -20,7 +20,7 @@ For performance critical 64 bit applications, a simplified version of memory map ############# Prerequisites ############# -* Python 3.6+ +* Python 3.7+ * OSX, Windows or Linux The package was tested on all of the previously mentioned configurations. @@ -26,7 +26,7 @@ setup( license="BSD", packages=find_packages(), zip_safe=True, - python_requires=">=3.6", + python_requires=">=3.7", classifiers=[ "Development Status :: 5 - Production/Stable", "Environment :: Console", @@ -38,7 +38,6 @@ setup( "Operating System :: MacOS :: MacOS X", "Programming Language :: Python", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", diff --git a/smmap/buf.py b/smmap/buf.py index ad27b69..731b064 100644 --- a/smmap/buf.py +++ b/smmap/buf.py @@ -93,7 +93,7 @@ class SlidingWindowMapBuffer: d = d.tobytes() md.append(d) # END while there are bytes to read - return bytes().join(md) + return b''.join(md) # END fast or slow path #{ Interface @@ -4,7 +4,7 @@ # and then run "tox" from this directory. [tox] -envlist = flake8, py36, py37, py38, py39, py310 +envlist = flake8, py{37, 38, 39, 310, 311} [testenv] commands = {envpython} -m pytest --cov smmap --cov-report xml {posargs} |