-
Notifications
You must be signed in to change notification settings - Fork 166
/
setup.py
71 lines (64 loc) · 1.86 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# LyricsGenius
# copyright 2024 john w. miller
# See LICENSE for details.
import sys
import re
from os import path
from setuptools import find_packages, setup
assert sys.version_info[0] == 3, "LyricsGenius requires Python 3."
VERSIONFILE = "lyricsgenius/__init__.py"
ver_file = open(VERSIONFILE, "rt").read()
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(VSRE, ver_file, re.M)
if mo:
version = mo.group(1)
else:
raise RuntimeError(
"Unable to find version string in {}".format(VERSIONFILE))
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
extras_require = {
'docs': [
'sphinx',
'sphinx-rtd-theme',
],
'checks': [
'tox',
'doc8',
'flake8',
'flake8-bugbear',
'pygments',
]
}
extras_require['dev'] = (
extras_require['docs'] + extras_require['checks']
)
setup(
name='lyricsgenius',
version=version,
description='Download lyrics and metadata from Genius.com',
long_description=long_description,
long_description_content_type='text/markdown',
license="MIT",
author='John W. Miller',
author_email='[email protected]',
url='https://github.com/johnwmillr/lyricsgenius',
keywords='genius api genius-api music lyrics artists albums songs',
packages=find_packages(exclude=['tests']),
install_requires=[
'beautifulsoup4>=4.6.0',
'requests>=2.20.0'
],
extras_require=extras_require,
entry_points={
'console_scripts': [
'lyricsgenius = lyricsgenius.__main__:main']
},
classifiers=[
'Topic :: Software Development :: Libraries',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
]
)