From b271c1a3510569b4c5432236db060e5ca5d334ad Mon Sep 17 00:00:00 2001 From: Clinton Collins Date: Fri, 27 Mar 2026 13:11:24 -0700 Subject: [PATCH] Fix license metadata discovery for tools like GitHub Licensed Switch from distutils to setuptools and add license classifier so that license-compliance tools (e.g. GitHub Licensed) can detect the MIT license from installed package metadata (.dist-info/METADATA). Co-Authored-By: Claude Opus 4.6 (1M context) --- setup.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index c560c91..d139d70 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,4 @@ -from distutils.core import setup +from setuptools import setup setup( name = 'GPUtil', @@ -10,6 +10,9 @@ url = 'https://github.com/anderskm/gputil', download_url = 'https://github.com/anderskm/gputil/tarball/v1.4.0', keywords = ['gpu','utilization','load','memory','available','usage','free','select','nvidia'], - classifiers = [], + classifiers = [ + 'License :: OSI Approved :: MIT License', + ], license = 'MIT', + license_files = ['LICENSE.txt'], )