From a23ce4305f6da59c9dfd2298df55fda250aafab5 Mon Sep 17 00:00:00 2001 From: boolangery Date: Sun, 19 Jul 2026 16:16:14 +0200 Subject: [PATCH 1/2] fix: replace distutils with setuptools, update Python classifiers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Replace distutils imports with setuptools equivalents: - distutils.command.sdist → setuptools.command.sdist - distutils.command.build_ext → setuptools.command.build_ext - distutils.cmd.Command → setuptools.Command - Update Python version classifiers from 3.6/3.7 to 3.8-3.12 - Add python_requires='>=3.8' distutils was removed in Python 3.12, causing import errors. --- setup.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index be4fee8..cff5ecc 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,7 @@ import sys -from setuptools import setup, Extension -from distutils.command.sdist import sdist -from distutils.command.build_ext import build_ext -import distutils.cmd +from setuptools import setup, Extension, Command +from setuptools.command.sdist import sdist +from setuptools.command.build_ext import build_ext import luastyle @@ -30,7 +29,7 @@ def run(self): build_ext.run(self) -class CythonizeCommand(distutils.cmd.Command): +class CythonizeCommand(Command): description = 'Cythonize cython files' user_options = [] From cabab5098d79f97206f4e664f7e2b9d14e97d9bc Mon Sep 17 00:00:00 2001 From: boolangery Date: Sun, 19 Jul 2026 16:16:31 +0200 Subject: [PATCH 2/2] chore: add *.html to gitignore for Cython annotation files --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 9dd61a1..b6ae31a 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ luastyle.egg-info luastyle/__pycache__ luastyle/tests/__pycache__/ *.cpp +*.html *.so MANIFEST dist/