Skip to content

Commit ad3e4cc

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

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
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
@@ -22,7 +22,7 @@ jobs:
2222
with:
2323
python-version: ${{ matrix.python }}
2424
- name: Install apt dependencies
25-
run: sudo apt-get --yes install apparmor-utils libsasl2-dev python-dev libldap2-dev libssl-dev slapd ldap-utils
25+
run: sudo apt-get --yes install apparmor-utils libsasl2-dev python-dev-is-python3 libldap2-dev libssl-dev slapd ldap-utils
2626
- name: App armor configuration for slapd
2727
run: sudo aa-complain /usr/sbin/slapd
2828
- name: Install python dependencies

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