feat: build
This commit is contained in:
parent
5ba38916d6
commit
fc2414dc68
@ -11,7 +11,7 @@ from .utils.config import logging_settings, main_settings, read_config
|
|||||||
|
|
||||||
read_config()
|
read_config()
|
||||||
|
|
||||||
console: Console = Console(width=220)
|
console: Console = Console()
|
||||||
def init_logging():
|
def init_logging():
|
||||||
log_file = main_settings['log_file']
|
log_file = main_settings['log_file']
|
||||||
|
|
@ -314,7 +314,7 @@ class Connection:
|
|||||||
> The internationally recommended unit symbol for the kilobyte is kB.
|
> The internationally recommended unit symbol for the kilobyte is kB.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
with tqdm(total=total_size - target.size, unit='B', unit_scale=True, unit_divisor=1024, desc=name) as t:
|
with tqdm(total=total_size, initial=target.size, unit='B', unit_scale=True, unit_divisor=1024, desc=name) as t:
|
||||||
try:
|
try:
|
||||||
for chunk in r.iter_content(chunk_size=chunk_size):
|
for chunk in r.iter_content(chunk_size=chunk_size):
|
||||||
size = f.write(chunk)
|
size = f.write(chunk)
|
@ -1,12 +1,24 @@
|
|||||||
[build-system]
|
[build-system]
|
||||||
requires = ["setuptools>=58.0.4", "wheel>=0.37.0"]
|
requires = ["hatchling", "hatch-requirements-txt" ]
|
||||||
build-backend = "setuptools.build_meta"
|
build-backend = "hatchling.build"
|
||||||
|
|
||||||
|
[tool.hatch.build]
|
||||||
|
directory = "dist"
|
||||||
|
|
||||||
|
[tool.hatch.build.targets.sdist]
|
||||||
|
include = ["music_kraken/*.py" ]
|
||||||
|
|
||||||
|
[tool.hatch.build.targets.wheel]
|
||||||
|
packages = ["music_kraken"]
|
||||||
|
|
||||||
|
[project.scripts]
|
||||||
|
music-kraken = "music_kraken.__main__:cli"
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "music-kraken"
|
name = "music-kraken"
|
||||||
version = "1.2.1"
|
version = "1.2.1"
|
||||||
description = "An extensive music downloader crawling the internet. It gets its metadata from a couple of metadata providers, and it scrapes the audiofiles."
|
description = "An extensive music downloader crawling the internet. It gets its metadata from a couple of metadata providers, and it scrapes the audiofiles."
|
||||||
authors = [{ name = "Hellow2", email = "Hellow2@outlook.de" }]
|
authors = [{ name = "Hellow2", email = "hazel_is_cute@proton.me" }]
|
||||||
license = "AGPL-3.0-or-later"
|
license = "AGPL-3.0-or-later"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
repository = "https://github.com/HeIIow2/music-downloader"
|
repository = "https://github.com/HeIIow2/music-downloader"
|
||||||
@ -22,26 +34,31 @@ classifiers = [
|
|||||||
"Topic :: Multimedia :: Sound/Audio",
|
"Topic :: Multimedia :: Sound/Audio",
|
||||||
"Topic :: Utilities",
|
"Topic :: Utilities",
|
||||||
]
|
]
|
||||||
[project.dependencies]
|
|
||||||
requests = "~=2.28.1"
|
dependencies = [
|
||||||
mutagen = "~=1.46.0"
|
"requests~=2.31.0",
|
||||||
musicbrainzngs = "~=0.7.1"
|
"responses~=0.24.1",
|
||||||
jellyfish = "~=0.9.0"
|
"beautifulsoup4~=4.11.1",
|
||||||
pydub = "~=0.25.1"
|
|
||||||
youtube_dl = "*"
|
"ffmpeg-python~=0.2.0",
|
||||||
beautifulsoup4 = "~=4.11.1"
|
"ffmpeg-progress-yield~=0.7.8",
|
||||||
pycountry = "~=22.3.5"
|
"mutagen~=1.46.0",
|
||||||
|
"pandoc~=2.3",
|
||||||
|
|
||||||
|
"jellyfish~=0.9.0",
|
||||||
|
"transliterate~=1.10.2",
|
||||||
|
"pycountry~=24.0.1",
|
||||||
|
|
||||||
|
"tqdm~=4.65.0",
|
||||||
|
"platformdirs~=4.2.0",
|
||||||
|
"pathvalidate~=2.5.2",
|
||||||
|
"toml~=0.10.2",
|
||||||
|
"typing_extensions~=4.7.1",
|
||||||
|
|
||||||
|
"sponsorblock~=0.1.3",
|
||||||
|
"youtube_dl",
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
[tool.setuptools.entry_points]
|
[tool.setuptools.entry_points]
|
||||||
music-kraken = "music_kraken:cli"
|
music-kraken = "music_kraken:cli"
|
||||||
|
|
||||||
[tool.setuptools]
|
|
||||||
packages = ['music_kraken', 'music_kraken.lyrics', 'music_kraken.not_used_anymore', 'music_kraken.target', 'music_kraken.tagging', 'music_kraken.utils', 'music_kraken.not_used_anymore.sources', 'music_kraken.database', 'music_kraken.static_files']
|
|
||||||
include_package_data = true
|
|
||||||
package_dir = {''= 'src', 'music_kraken'= 'src/music_kraken'}
|
|
||||||
package_data = {'music_kraken'= ['*.sql']}
|
|
||||||
data_files = ["", ["requirements.txt", "README.md", "version"]]
|
|
||||||
|
|
||||||
[tool.setuptools.command.test]
|
|
||||||
# ...
|
|
||||||
|
@ -18,7 +18,6 @@ pyffmpeg~=2.4.2.18
|
|||||||
ffmpeg-progress-yield~=0.7.8
|
ffmpeg-progress-yield~=0.7.8
|
||||||
pathvalidate~=2.5.2
|
pathvalidate~=2.5.2
|
||||||
guppy3~=3.1.3
|
guppy3~=3.1.3
|
||||||
|
|
||||||
toml~=0.10.2
|
toml~=0.10.2
|
||||||
typing_extensions~=4.7.1
|
typing_extensions~=4.7.1
|
||||||
responses~=0.24.1
|
responses~=0.24.1
|
||||||
|
2
setup.py
2
setup.py
@ -53,7 +53,7 @@ setup(
|
|||||||
packages=packages,
|
packages=packages,
|
||||||
package_dir={'': 'src', 'music_kraken': 'src/music_kraken'},
|
package_dir={'': 'src', 'music_kraken': 'src/music_kraken'},
|
||||||
install_requires=install_requires,
|
install_requires=install_requires,
|
||||||
entry_points={'console_scripts': ['music-kraken = music_kraken:cli']},
|
entry_points={'_scripts': ['music-kraken = music_kraken:cli']},
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
package_data={'music_kraken': ['*.sql']},
|
package_data={'music_kraken': ['*.sql']},
|
||||||
data_files=[
|
data_files=[
|
||||||
|
Loading…
Reference in New Issue
Block a user