From 93608bd2f420d70f0ad667168a61d160beb52262 Mon Sep 17 00:00:00 2001 From: mathieui Date: Tue, 8 Oct 2024 10:29:28 +0200 Subject: [PATCH] setup.py: Add python versions --- setup.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/setup.py b/setup.py index fc3fc474..91430a76 100755 --- a/setup.py +++ b/setup.py @@ -33,12 +33,17 @@ CLASSIFIERS = [ 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: 3.10', + 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', + 'Programming Language :: Python :: 3.13', 'Topic :: Internet :: XMPP', 'Topic :: Software Development :: Libraries :: Python Modules', ] packages = [str(mod.parent) for mod in Path('slixmpp').rglob('__init__.py')] + def check_include(library_name, header): command = [os.environ.get('PKG_CONFIG', 'pkg-config'), '--cflags', library_name] try: @@ -59,6 +64,7 @@ def check_include(library_name, header): print('%s headers not found.' % library_name) return False + HAS_PYTHON_HEADERS = check_include('python3', 'Python.h') HAS_STRINGPREP_HEADERS = check_include('libidn', 'stringprep.h')