This release introduces a major overhaul of the `mediacurator` command-line interface (CLI) and comprehensive updates to the documentation. The CLI has transitioned from a custom argument parsing system to utilizing Python's `argparse` and `argcomplete` libraries, greatly enhancing usability and flexibility. Due to these significant changes, the version is incremented from **0.0.13** to **1.0.1**. - **Refactored** `tools.py` for standardized command-line argument handling using `argparse` and `argcomplete`. - **Improved** user interaction with structured arguments and built-in help, error handling, and validation. - **Consolidated** video detail printing logic into a reusable method within the `Video` class. - **Enhanced** `MediaLibrary` class with better clarity, functionality, and expanded support for video formats. - **Reorganized** `main.py` to streamline argument handling and improve error feedback. - **Updated** `setup.py` for release preparation, including new classifiers and dependencies. - **Revised** README.md for clarity, including structured command usage and improved descriptions. - **Moved** and improved old documentation, removing outdated content and adding new screenshots. - **Maintained** legacy commands for backward compatibility while enhancing usability with clear examples. - **Removed** non-existent `bcolors` from the public API. - **Upgraded** requirements.txt to include `argcomplete` for command-line completion. - **Updated** docstrings and function documentation for clarity on functionality and parameters.
55 lines
2.0 KiB
Python
Executable File
55 lines
2.0 KiB
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
import setuptools
|
|
|
|
with open("README.md", "r", encoding="utf-8") as fh:
|
|
long_description = fh.read()
|
|
|
|
setuptools.setup(
|
|
name="mediacurator",
|
|
version="1.0.1",
|
|
author="Fabrice Quenneville",
|
|
author_email="fab@fabq.ca",
|
|
url="https://github.com/fabquenneville/mediacurator",
|
|
download_url="https://pypi.python.org/pypi/mediacurator",
|
|
project_urls={
|
|
"Bug Tracker": "https://github.com/fabquenneville/mediacurator/issues",
|
|
"Documentation": "https://fabquenneville.github.io/mediacurator/",
|
|
"Source Code": "https://github.com/fabquenneville/mediacurator",
|
|
},
|
|
description=
|
|
"mediacurator is a Python command line tool to manage a media database.",
|
|
long_description=long_description,
|
|
long_description_content_type="text/markdown",
|
|
packages=setuptools.find_packages(),
|
|
classifiers=[
|
|
"Topic :: Multimedia :: Video :: Conversion",
|
|
"Development Status :: 5 - Production/Stable",
|
|
"Intended Audience :: End Users/Desktop",
|
|
"Natural Language :: English",
|
|
"Programming Language :: Python :: 3.6",
|
|
"Programming Language :: Python :: 3.7",
|
|
"Programming Language :: Python :: 3.8",
|
|
"Programming Language :: Python :: 3.9",
|
|
"Programming Language :: Python :: 3.10",
|
|
"Programming Language :: Python :: 3.11",
|
|
"Programming Language :: Python :: 3.12",
|
|
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
|
|
"Operating System :: OS Independent",
|
|
"Environment :: Console",
|
|
],
|
|
entry_points={
|
|
'console_scripts': ['mediacurator=mediacurator.mediacurator:main'],
|
|
},
|
|
keywords=[
|
|
"codecs", "filters", "video", "x265", "av1", "media-database",
|
|
"python-command", "hevc", "multimedia", "video-processing"
|
|
],
|
|
install_requires=["pathlib", "colorama", "argcomplete"],
|
|
license='GPL-3.0',
|
|
license_files=('LICENSE', ),
|
|
python_requires='>=3.6',
|
|
platforms='any',
|
|
zip_safe=True,
|
|
)
|