Skip to content

Commit bfa3c72

Browse files
committed
Python 3.11 support
1 parent 2d3eaa1 commit bfa3c72

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
python: ["3.6", "3.7", "3.8", "3.9", "3.10"]
16+
python: ["3.7", "3.8", "3.9", "3.10", "3.11"]
1717

1818
steps:
1919
- uses: actions/checkout@v2

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ license = "MIT"
1111
keywords = ["ldap", "slapd"]
1212
classifiers = [
1313
"Intended Audience :: Developers",
14-
"Programming Language :: Python :: 3.6",
1514
"Programming Language :: Python :: 3.7",
1615
"Programming Language :: Python :: 3.8",
1716
"Programming Language :: Python :: 3.9",
1817
"Programming Language :: Python :: 3.10",
18+
"Programming Language :: Python :: 3.11",
1919
"Programming Language :: Python :: Implementation :: CPython",
2020
"License :: OSI Approved :: MIT License",
2121
"Topic :: Software Development :: Libraries :: Python Modules",
@@ -30,7 +30,7 @@ repository = "https://gitlab.com/python-ldap/python-slapd"
3030
readme = "README.md"
3131

3232
[tool.poetry.dependencies]
33-
python = ">=3.6, <4"
33+
python = ">=3.7, <4"
3434

3535
recommonmark = {version = "*", optional=true}
3636
sphinx = {version = "*", optional=true}
@@ -72,7 +72,7 @@ doctest_optionflags= "ALLOW_UNICODE IGNORE_EXCEPTION_DETAIL ELLIPSIS"
7272
legacy_tox_ini = """
7373
[tox]
7474
isolated_build = true
75-
envlist = doc,py36,py37,py38,py39,py310,coverage
75+
envlist = doc,py37,py38,py39,py310,py311,coverage
7676
skipsdist=true
7777
7878
[testenv]

slapd/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -476,9 +476,7 @@ def _cli_popen(
476476
args += extra_args or []
477477

478478
self.logger.debug("Run command: %r", " ".join(args))
479-
proc = subprocess.run(
480-
args, input=stdin_data, stdout=subprocess.PIPE, stderr=subprocess.PIPE
481-
)
479+
proc = subprocess.run(args, input=stdin_data, capture_output=True)
482480
self.logger.debug(
483481
"stdin_data=%s", stdin_data.decode("utf-8") if stdin_data else stdin_data
484482
)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy