Skip to content

Commit

Permalink
Drop support for Python 3.7
Browse files Browse the repository at this point in the history
As announced in the changelog of BenchExec 3.22 and on the issue tracker.

Part of #986.
  • Loading branch information
PhilippWendler committed Jun 20, 2024
1 parent 089ccf6 commit 0e7c0f7
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 52 deletions.
11 changes: 0 additions & 11 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,6 @@ stages:
paths:
- coverage.xml

unit-tests:python-3.7:
<<: *unit-tests
variables:
PYTHON_VERSION: '3.7'

unit-tests:python-3.8:
<<: *unit-tests
variables:
Expand Down Expand Up @@ -210,12 +205,6 @@ reuse:
- schedules
- web

build-docker:test:python-3.7:
extends: .build-docker
variables:
DOCKERFILE: test/Dockerfile.python-3.7
IMAGE: test:python-3.7

build-docker:test:python-3.8:
extends: .build-docker
variables:
Expand Down
6 changes: 1 addition & 5 deletions benchexec/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -859,11 +859,7 @@ def setup_seccomp_filter():
logging.info("Could not enable seccomp filter for container isolation: %s", e)


try:
_ALL_SIGNALS = signal.valid_signals() # pytype: disable=module-attr
except AttributeError:
# Only exists on Python 3.8+
_ALL_SIGNALS = range(1, signal.NSIG)
_ALL_SIGNALS = signal.valid_signals()


def block_all_signals():
Expand Down
4 changes: 2 additions & 2 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ Maintainer: Philipp Wendler <debian@philippwendler.de>
Build-Depends: debhelper (>= 11),
dh-apparmor,
dh-python,
python3 (>= 3.7),
python3 (>= 3.8),
python3-setuptools,
python3-lxml,
python3-yaml (>= 3.12),
python3-nose
Standards-Version: 3.9.6.1
X-Python3-Version: >= 3.7
X-Python3-Version: >= 3.8
Homepage: https://github.com/sosy-lab/benchexec
Vcs-Git: https://github.com/sosy-lab/benchexec.git
Vcs-Browser: https://github.com/sosy-lab/benchexec
Expand Down
2 changes: 1 addition & 1 deletion doc/INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ SPDX-License-Identifier: Apache-2.0

### Requirements

- Python 3.7 or newer
- Python 3.8 or newer
- Linux (cf. [Kernel Requirements](#kernel-requirements) below for details)
- Access to cgroups (cf. [Setting up Cgroups](#setting-up-cgroups) below for details)
- x86 or ARM machine (please [contact us](https://github.com/sosy-lab/benchexec/issues/new) for other architectures)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ build-backend = 'setuptools.build_meta'
[tool.black]
include = 'bin|\.py$'
exclude = 'node_modules|\.eggs'
target-version = ['py37']
target-version = ['py38']

[tool.coverage.run]
branch = true
Expand Down
32 changes: 0 additions & 32 deletions test/Dockerfile.python-3.7

This file was deleted.

0 comments on commit 0e7c0f7

Please sign in to comment.