From 51f15c8f6b3896a6c2fa0b0e49969be8318d3c6f Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Sun, 13 Mar 2022 13:37:19 +0100 Subject: [PATCH 1/2] Fix Python 3.10 compatibility Fixes: #13 --- cgroupspy/interfaces.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgroupspy/interfaces.py b/cgroupspy/interfaces.py index be3066c..0b6df50 100644 --- a/cgroupspy/interfaces.py +++ b/cgroupspy/interfaces.py @@ -24,7 +24,7 @@ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. """ -from collections import Iterable +from collections.abc import Iterable from cgroupspy.contenttypes import BaseContentType From f6db376864d57ec472e424e91922053dc74c5335 Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Sat, 19 Mar 2022 13:50:13 +0100 Subject: [PATCH 2/2] fixup! Fix Python 3.10 compatibility --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 4afcd93..ceda235 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ 'cgroups', ], classifiers=[ - "Programming Language :: Python", + "Programming Language :: Python :: 3" "Development Status :: 4 - Beta", "Intended Audience :: System Administrators", "Intended Audience :: Developers", @@ -33,4 +33,5 @@ description="Python library for managing cgroups", long_description=long_description, long_description_content_type='text/markdown', + python_requires=">=3.7" )