From 5825d55e4dc77a731b6c42757bd2ec2b3d5855ac Mon Sep 17 00:00:00 2001 From: Subhamoy Biswas Date: Mon, 21 Oct 2024 23:30:45 +0530 Subject: [PATCH] (refactor): switched to modern pyproject.toml build format from setup.py --- pyproject.toml | 60 ++++++++++++++++++++++++++++++++++++++++++++++++ requirements.txt | 3 ++- setup.py | 60 ------------------------------------------------ 3 files changed, 62 insertions(+), 61 deletions(-) create mode 100644 pyproject.toml delete mode 100644 setup.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..be13323 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,60 @@ +[build-system] +requires = ["setuptools>=67.4.0"] +build-backend = "setuptools.build_meta" + +[project] +name = "pytubepp" +version = "1.1.0" +authors = [ + { name="Subhamoy Biswas", email="hey@neosubhamoy.com" }, +] +description = "A Simple CLI Tool to Download Your Favorite YouTube Videos Effortlessly!" +readme = "README.md" +requires-python = ">=3.8" +license = {text = "MIT"} +keywords = ["youtube", "download", "video", "pytube", "cli"] +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Environment :: Console", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Natural Language :: English", + "Operating System :: OS Independent", + "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", + "Programming Language :: Python :: 3.13", + "Programming Language :: Python", + "Topic :: Internet", + "Topic :: Multimedia :: Video", + "Topic :: Multimedia :: Sound/Audio :: Conversion", + "Topic :: Multimedia :: Video :: Conversion", + "Topic :: Software Development :: Libraries :: Python Modules", + "Topic :: Terminals", + "Topic :: Utilities", +] +dependencies = [ + "pytubefix", + "requests", + "ffmpy", + "mutagen", + "tabulate", + "tqdm", + "appdirs", + "setuptools", +] + +[project.scripts] +pytubepp = "pytubepp.main:main" + +[project.urls] +"Homepage" = "https://github.com/neosubhamoy/pytubepp" +"Bug Reports" = "https://github.com/neosubhamoy/pytubepp/issues" + +[tool.setuptools.packages.find] +include = ["pytubepp*"] + +[tool.setuptools] +license-files = ["LICENSE"] \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 19ef1c1..c0fa5fa 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,4 +7,5 @@ tqdm appdirs setuptools wheel -twine \ No newline at end of file +twine +build \ No newline at end of file diff --git a/setup.py b/setup.py deleted file mode 100644 index be910a0..0000000 --- a/setup.py +++ /dev/null @@ -1,60 +0,0 @@ -from setuptools import setup, find_packages - -with open('README.md', 'r', encoding='utf8') as file: - readme = file.read() - - -setup( - name='pytubepp', - version='1.1.0', - description='A Simple CLI Tool to Download Your Favorite YouTube Videos Effortlessly!', - long_description=readme, - long_description_content_type='text/markdown', - author='Subhamoy Biswas', - author_email='hey@neosubhamoy.com', - license='MIT', - packages=find_packages(), - python_requires=">=3.8", - url="https://github.com/neosubhamoy/pytubepp", - entry_points={ - 'console_scripts': [ - 'pytubepp=pytubepp.main:main', - ], - }, - install_requires=[ - 'pytubefix', - 'requests', - 'ffmpy', - 'mutagen', - 'tabulate', - 'tqdm', - 'appdirs', - 'setuptools', - ], - classifiers=[ - "Development Status :: 5 - Production/Stable", - "Environment :: Console", - "Intended Audience :: Developers", - "License :: OSI Approved :: MIT License", - "Natural Language :: English", - "Operating System :: OS Independent", - "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", - "Programming Language :: Python :: 3.13", - "Programming Language :: Python", - "Topic :: Internet", - "Topic :: Multimedia :: Video", - "Topic :: Multimedia :: Sound/Audio :: Conversion", - "Topic :: Multimedia :: Video :: Conversion", - "Topic :: Software Development :: Libraries :: Python Modules", - "Topic :: Terminals", - "Topic :: Utilities", - ], - keywords=["youtube", "download", "video", "pytube", "cli"], - project_urls={ - "Bug Reports": "https://github.com/neosubhamoy/pytubepp/issues", - }, -) \ No newline at end of file