From e249cf1922363523c414a9888f8850cf4b904e9d Mon Sep 17 00:00:00 2001 From: Jay Zhang Date: Thu, 4 Apr 2024 20:18:19 +0800 Subject: [PATCH] feat: packaging --- plot-av/__init__.py | 1 + pyproject.toml | 38 ++++++++++++++++++++++++++++++++++++++ tests/.gitignore | 0 3 files changed, 39 insertions(+) create mode 100644 plot-av/__init__.py create mode 100644 pyproject.toml create mode 100644 tests/.gitignore diff --git a/plot-av/__init__.py b/plot-av/__init__.py new file mode 100644 index 0000000..4c98504 --- /dev/null +++ b/plot-av/__init__.py @@ -0,0 +1 @@ +# This file is empty, but it tells the Python interpreter that this directory is a Python package. diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..fca8470 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,38 @@ +[build-system] +requires = ["hatchling", "hatch_vcs"] +build-backend = "hatchling.build" + +[tool.hatch.version] +source = "vcs" + +[tool.hatch.build.targets.wheel] +packages = ["plot-av"] + +[project] +name = "plot-av" +dynamic = ["version"] +dependencies = [ + "pyav", + "matplotlib", +] +authors = [ + { name="Jay Zhang", email="wangyoucao577@gmail.com" }, +] +description = "Plot Audio/Video streams for better insights" +readme = "README.md" +license = {file = "LICENSE"} +requires-python = ">=3.8" +classifiers = [ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: Apache Software License", + "Operating System :: OS Independent", + "Framework :: Matplotlib", +] + +[project.scripts] +plot-av = "plot-av:main" + + +[project.urls] +Homepage = "https://github.com/wangyoucao577/plot-av" +Issues = "https://github.com/wangyoucao577/plot-av/issues" diff --git a/tests/.gitignore b/tests/.gitignore new file mode 100644 index 0000000..e69de29