"CLI-Anything: Making ALL Software Agent-Native" -- CLI-Hub: https://clianything.cc/
Python
Refactor setup.py for better clarity and structure
Chill Guy 3:00PM957d03fb4f98
diff --git a/blender/agent-harness/setup.py b/blender/agent-harness/setup.pyindex 02cfc6cc2..946880f31 100644--- a/blender/agent-harness/setup.py+++ b/blender/agent-harness/setup.py@@ -1,53 +1,86 @@#!/usr/bin/env python3"""-setup.py for cli-anything-blender+Setup script for cli-anything-blender-Install with: pip install -e .-Or publish to PyPI: python -m build && twine upload dist/*+Install (dev mode):+ pip install -e .++Build:+ python -m build++Publish:+ twine upload dist/*"""+from pathlib import Pathfrom setuptools import setup, find_namespace_packages-with open("cli_anything/blender/README.md", "r", encoding="utf-8") as fh:- long_description = fh.read()+ROOT = Path(__file__).parent+README = ROOT / "cli_anything/blender/README.md"++long_description = README.read_text(encoding="utf-8") if README.exists() else ""setup(name="cli-anything-blender",version="1.0.0",- author="cli-anything contributors",- author_email="",- description="CLI harness for Blender - 3D modeling, animation, and rendering via blender --background --python. Requires: blender (apt install blender)",+ description="CLI harness for Blender - run 3D modeling, animation, and rendering via blender --background --python",long_description=long_description,long_description_content_type="text/markdown",++ author="cli-anything contributors",+ author_email="",url="https://github.com/HKUDS/CLI-Anything",- packages=find_namespace_packages(include=["cli_anything.*"]),- classifiers=[- "Development Status :: 4 - Beta",- "Intended Audience :: Developers",- "Topic :: Software Development :: Libraries :: Python Modules",- "Topic :: Multimedia :: Graphics :: 3D Modeling",- "License :: OSI Approved :: MIT License",- "Programming Language :: Python :: 3",- "Programming Language :: Python :: 3.10",- "Programming Language :: Python :: 3.11",- "Programming Language :: Python :: 3.12",- ],++ project_urls={+ "Source": "https://github.com/HKUDS/CLI-Anything",+ "Tracker": "https://github.com/HKUDS/CLI-Anything/issues",+ },++ license="MIT",++ packages=find_namespace_packages(include=("cli_anything.*",)),+python_requires=">=3.10",+install_requires=[- "click>=8.0.0",- "prompt-toolkit>=3.0.0",+ "click>=8.1",+ "prompt-toolkit>=3.0",],+extras_require={"dev": [- "pytest>=7.0.0",- "pytest-cov>=4.0.0",+ "pytest>=7",+ "pytest-cov>=4",],},+entry_points={"console_scripts": ["cli-anything-blender=cli_anything.blender.blender_cli:main",],},+include_package_data=True,zip_safe=False,++ keywords=[+ "cli",+ "blender",+ "3d",+ "rendering",+ "automation",+ ],++ classifiers=[+ "Development Status :: 4 - Beta",+ "Intended Audience :: Developers",+ "Topic :: Multimedia :: Graphics :: 3D Modeling",+ "Topic :: Software Development :: Libraries :: Python Modules",+ "License :: OSI Approved :: MIT License",++ "Programming Language :: Python :: 3",+ "Programming Language :: Python :: 3.10",+ "Programming Language :: Python :: 3.11",+ "Programming Language :: Python :: 3.12",+ ],)