nice description for pypi
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
from pathlib import Path
|
||||
from subprocess import check_output
|
||||
from sys import argv as args
|
||||
from sys import argv as args, exit
|
||||
import threading
|
||||
|
||||
|
||||
@@ -13,7 +13,15 @@ def extract_audio(dir_, fp):
|
||||
def main():
|
||||
dir_ = args[1]
|
||||
threads = []
|
||||
for fp in Path(dir_).iterdir():
|
||||
try:
|
||||
fps = list(Path(dir_).iterdir())
|
||||
except FileNotFoundError:
|
||||
print("that dir doesn't exist")
|
||||
if not fps:
|
||||
print("no files in that dir")
|
||||
exit()
|
||||
|
||||
for fp in fps:
|
||||
a = threading.Thread(
|
||||
target=extract_audio,
|
||||
args=(
|
||||
|
||||
6
pyproject.toml
Normal file
6
pyproject.toml
Normal file
@@ -0,0 +1,6 @@
|
||||
[build-system]
|
||||
requires = [
|
||||
"setuptools>=42",
|
||||
"wheel"
|
||||
]
|
||||
build-backend = "setuptools.build_meta"
|
||||
8
setup.py
8
setup.py
@@ -1,11 +1,17 @@
|
||||
from pathlib import Path
|
||||
from setuptools import setup
|
||||
|
||||
this_directory = Path(__file__).parent
|
||||
long_description = (this_directory / "README.md").read_text()
|
||||
|
||||
|
||||
setup(
|
||||
name="extract-audio",
|
||||
version="0.1",
|
||||
version="0.3",
|
||||
packages=["app"],
|
||||
description="Extract audio from a directory of video files.",
|
||||
long_description=long_description,
|
||||
long_description_content_type="text/markdown",
|
||||
author="Zev Averbach",
|
||||
author_email="zev@averba.ch",
|
||||
url="https://github.com/zevaverbach/extract_audio_from_video",
|
||||
|
||||
Reference in New Issue
Block a user