From 792a0afb9f929187b6a85dd13211bd54b61362d7 Mon Sep 17 00:00:00 2001 From: Qubitium Date: Wed, 5 Aug 2026 03:17:40 +0000 Subject: [PATCH 1/2] fix: add setup.py fallback and use PEP 621 license text for broader setuptools compatibility --- pyproject.toml | 4 ++-- setup.py | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 setup.py diff --git a/pyproject.toml b/pyproject.toml index f22655a..f804760 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["setuptools>=77.0.1,<83"] +requires = ["setuptools>=61,<83"] build-backend = "setuptools.build_meta" [project] @@ -8,7 +8,7 @@ version = "0.4.11" description = "A unified Logger and ProgressBar util with zero dependencies." readme = "README.md" requires-python = ">=3" -license = "Apache-2.0" +license = { text = "Apache-2.0" } authors = [ { name = "ModelCloud", email = "qubitium@modelcloud.ai" } ] diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..d3cab5b --- /dev/null +++ b/setup.py @@ -0,0 +1,20 @@ +from setuptools import find_packages, setup + +setup( + name="LogBar", + version="0.4.11", + description="A unified Logger and ProgressBar util with zero dependencies.", + long_description=open("README.md", encoding="utf-8").read(), + long_description_content_type="text/markdown", + author="ModelCloud", + author_email="qubitium@modelcloud.ai", + url="https://github.com/ModelCloud/LogBar", + license="Apache-2.0", + packages=find_packages(exclude=["tests*", "test*"]), + python_requires=">=3", + classifiers=[ + "Programming Language :: Python :: 3", + "Operating System :: OS Independent", + ], + keywords="logger logging progressbar progress bar cli terminal lightweight zero dependency tqdm tabulate", +) From 153368affdd35ef8ba5dbea36e51cf7bb04a8ed3 Mon Sep 17 00:00:00 2001 From: Qubitium Date: Wed, 5 Aug 2026 03:48:49 +0000 Subject: [PATCH 2/2] refactor: mark license as dynamic and let setup.py provide it to avoid setuptools 83 deprecation warning --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index f804760..e660d7b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ version = "0.4.11" description = "A unified Logger and ProgressBar util with zero dependencies." readme = "README.md" requires-python = ">=3" -license = { text = "Apache-2.0" } +dynamic = ["license"] authors = [ { name = "ModelCloud", email = "qubitium@modelcloud.ai" } ]