Fix dependencies

Removes now-unused dependency titlecase and add tqdm. Also read
current spotdl version without depending on external dependencies.
This commit is contained in:
Ritiek Malhotra
2020-04-21 13:13:48 +05:30
parent 42dd650ed8
commit b9e2a23846
3 changed files with 11 additions and 6 deletions

View File

@@ -1,9 +1,12 @@
from setuptools import setup from setuptools import setup
import os
with open("README.md", "r", encoding="utf-8") as f: with open("README.md", "r", encoding="utf-8") as f:
long_description = f.read() long_description = f.read()
import spotdl # __version__ comes into namespace from here
with open(os.path.join("spotdl", "version.py")) as version_file:
exec(version_file.read())
setup( setup(
# 'spotify-downloader' was already taken :/ # 'spotify-downloader' was already taken :/
@@ -22,20 +25,20 @@ setup(
"spotdl.authorize", "spotdl.authorize",
"spotdl.authorize.services", "spotdl.authorize.services",
], ],
version=spotdl.__version__, version=__version__,
install_requires=[ install_requires=[
"pathlib >= 1.0.1", "pathlib >= 1.0.1",
"youtube_dl >= 2017.9.26", "youtube_dl >= 2017.9.26",
"pafy >= 0.5.3.1", "pytube3 >= 9.6.4",
"spotipy >= 2.4.4", "spotipy >= 2.4.4",
"mutagen >= 1.41.1", "mutagen >= 1.41.1",
"beautifulsoup4 >= 4.6.3", "beautifulsoup4 >= 4.6.3",
"unicode-slugify >= 0.1.3", "unicode-slugify >= 0.1.3",
"titlecase >= 0.10.0",
"logzero >= 1.3.1", "logzero >= 1.3.1",
"lyricwikia >= 0.1.8", "lyricwikia >= 0.1.8",
"PyYAML >= 3.13", "PyYAML >= 3.13",
"appdirs >= 1.4.3", "appdirs >= 1.4.3",
"tqdm >= 4.45.0"
], ],
description="Download songs from YouTube using Spotify song URLs or playlists with albumart and meta-tags.", description="Download songs from YouTube using Spotify song URLs or playlists with albumart and meta-tags.",
long_description=long_description, long_description=long_description,

View File

@@ -1,3 +1,3 @@
__version__ = "2.0.0" from spotdl.version import __version__
from spotdl.track import Track from spotdl.track import Track

2
spotdl/version.py Normal file
View File

@@ -0,0 +1,2 @@
__version__ = "2.0.0"