From 699787b5c689e32f4d06c8cc89cd2931b74371a0 Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Tue, 26 Nov 2019 23:40:16 +0100 Subject: [PATCH] Stop supporting Python 2 This just changes the documentation and stop testing with Python 2. Future patches will actually drop compatibility. --- Makefile | 3 ++- README.rst | 7 ++----- setup.py | 1 + 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 4744319..6535f02 100644 --- a/Makefile +++ b/Makefile @@ -35,7 +35,8 @@ distcheck: dist echo "All good, you can upload $(DISTFILE)!" test: - @for ver in 2.7 3.0 3.1 3.2 3.3 3.4 3.5 3.6 3.7 3.8; do \ + @set -e; \ + for ver in 3.4 3.5 3.6 3.7 3.8; do \ for flavour in "" "-dbg"; do \ if type python$$ver$$flavour >/dev/null; then \ echo Testing with python$$ver$$flavour; \ diff --git a/README.rst b/README.rst index aab03c2..71465b8 100644 --- a/README.rst +++ b/README.rst @@ -1,7 +1,7 @@ pylibacl ======== -This is a Python 2.7+ extension module allows you to manipulate the +This is a Python 3.4+ extension module allows you to manipulate the POSIX.1e Access Control Lists present in some OS/file-systems combinations. @@ -38,7 +38,7 @@ FreeBSD 7 also has quite good support. If any other platform implements the POSIX.1e draft, pylibacl can be used. I heard that Solaris does, but I can't test it. -- Python 2.7 or newer. +- Python 3.4 or newer. Python 2.4+ was supported in the 0.5.x branch. - Operating system: - Linux, kernel v2.4 or newer, and the libacl library and development packages (all modern distributions should have this, @@ -48,9 +48,6 @@ Solaris does, but I can't test it. - The sphinx python module, for your python version, if building the documentation. -Note: to build from source, by default, Python 3 is needed. It can -still be built with Python 2, by calling `make PYTHON=python2`. - FreeBSD +++++++ diff --git a/setup.py b/setup.py index 9a5b199..5b258e8 100755 --- a/setup.py +++ b/setup.py @@ -45,4 +45,5 @@ setup(name="pylibacl", define_macros=macros, )], test_suite="tests", + python_requires = ">=3.4", ) -- 2.39.5