From 7a88d97709791589561b6bef856aeebbcaaa212d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Ro=C3=9F?= Date: Mon, 22 Jul 2024 17:13:08 +0200 Subject: [PATCH] Fix recent workflow fail and react on latest flake8 lint warnings --- setup.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index acc1989..c6e314d 100644 --- a/setup.py +++ b/setup.py @@ -1,11 +1,15 @@ from setuptools import setup import platform + def check_platform(): if platform.system() != "Linux": raise RuntimeError("This package does only support Linux") print("Installing on platform: ", platform.system()) + +check_platform() + setup(name="pyframebuffer", version="1.0", author="Adrian Roß", @@ -16,6 +20,4 @@ def check_platform(): long_description="A linux library written in C and Python to draw with graphic primitives to the framebuffer.", maintainer="Adrian Roß", maintainer_email="adrian.ross@ross-agentur.de", - url="https://github.com/RossAdrian/pyframebuffer", - cmdclass={'install': check_platform} - ) + url="https://github.com/RossAdrian/pyframebuffer")