From f975144f25d34f97329b2d4e52891061573cea08 Mon Sep 17 00:00:00 2001 From: Aeliton G. Silva Date: Mon, 12 Jan 2026 22:39:55 -0300 Subject: Use pyproject.toml + uv_build This replaces setup.py by a modern pyproject.toml using uv_build backend. Dependencies are being also managed by uv, so to install dependencies and run the project one can execute: ``` uv sync uv run pytest # optional python -m avp ``` To build the both source and binary (wheel) distribution package run: ``` uv build ``` Uv can be installed with `pip install uv`. The directory structure has been changed to reflect best practices. - src/* -> src/avp/ - src/tests -> ../tests --- pyproject.toml | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 pyproject.toml (limited to 'pyproject.toml') diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..58fb936 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,55 @@ +[build-system] +requires = ["uv_build>=0.9.23,<0.10.0"] +build-backend = "uv_build" + +[project] +name = "audio-visualizer-python" +description = "Create audio visualization videos from a GUI or commandline" +version = "2.1.0" +requires-python = ">= 3.13" +license = "MIT" +classifiers=[ + "Development Status :: 4 - Beta", + "License :: OSI Approved :: MIT License", + "Programming Language :: Python :: 3 :: Only", + "Intended Audience :: End Users/Desktop", + "Topic :: Multimedia :: Video :: Non-Linear Editor", +] +keywords = [ + "visualizer", + "visualization", + "commandline video", + "video editor", + "ffmpeg", + "podcast", +] +authors = [ + {name = "Martin Kaistra", email = "admin@djfun.de"}, + {name = "Brianna Rainey", email = "rutachigal@gmail.com"}, + {name = "DH4", email = "wayne@bitstorm.pw"}, + {name = "HunterwolfAT", email = "hunterwolf0815@gmail.com"}, + {name = "rikai"}, +] +dependencies = [ + "numpy>=2.4.1", + "pillow>=12.1.0", + "pyqt6>=6.10.2", +] + +[dependency-groups] +dev = [ + "pytest", + "pytest-qt", +] + +[tool.uv.build-backend] +module-name = "avp" + +[external] +dependencies = ["pkg:generic/ffmpeg"] + +[project.urls] +repository="https://github.com/djfun/audio-visualizer-python" + +[project.scripts] +avp = "avp.cli:main" -- cgit v1.2.3