Add pyproject.toml and make transcode.py a command
This commit is contained in:
@@ -361,6 +361,9 @@ def main():
|
||||
configured_encoder,
|
||||
)
|
||||
log_path = write_output_log(output_dir, merged_output)
|
||||
with open(os.path.join(output_dir, "output_file_list.txt"), "w", encoding="utf-8") as output_file_list:
|
||||
for filename in generated_files:
|
||||
output_file_list.write(f"{filename}\n")
|
||||
|
||||
if return_code != 0:
|
||||
print(f"\nFFmpeg exited with code {return_code}", file=sys.stderr)
|
||||
@@ -0,0 +1,29 @@
|
||||
[build-system]
|
||||
requires = ["setuptools>=68", "setuptools_scm[toml]>=8", "wheel"]
|
||||
build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "privatestudio"
|
||||
description = "Video transcoding tools with multi-profile H.264 encoding support"
|
||||
readme = "notes.md"
|
||||
requires-python = ">=3.8"
|
||||
dependencies = [
|
||||
"PyYAML>=6.0",
|
||||
]
|
||||
dynamic = ["version"]
|
||||
|
||||
[project.optional-dependencies]
|
||||
dev = [
|
||||
"pytest>=7.0",
|
||||
"pytest-cov>=4.0",
|
||||
]
|
||||
|
||||
[project.scripts]
|
||||
ps-transcode = "privatestudio.transcode:main"
|
||||
|
||||
[tool.setuptools]
|
||||
packages = ["privatestudio"]
|
||||
|
||||
[tool.setuptools_scm]
|
||||
write_to = "privatestudio/_version.py"
|
||||
fallback_version = "0.1.0-dev"
|
||||
Reference in New Issue
Block a user