forked from abhimanyuPathania/lyrico
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
79 lines (57 loc) · 2.04 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
72
73
74
75
76
77
78
79
# -*- coding: utf-8 -*-
"""setup.py: setuptools control. Always build with Python3"""
import sys
import re
from setuptools import setup, find_packages
from subprocess import call
from setuptools.command.install import install
version = re.search(
'^__version__\s*=\s*"(.*)"',
open('lyrico/lyrico.py').read(),
re.M
).group(1)
# http://rst.ninjs.org/?n=86de1f4d5843b454098745d4a6026376&theme=basic
with open("README.rst", "rb") as f:
long_descr = f.read().decode("utf-8")
# Install dependencies from requirements.txt (install_requires is not working)
# With requirements.txt, win-unicode-console will only be installed for Windows users.
class MyInstall(install):
def run(self):
# Call subprocess to run te 'pip' command.
# Only works, when user installs from sdist
call(['pip', 'install', '-r', 'requirements.txt'])
# Run 'install' to install lyrico
install.run(self)
setup(
name = "lyrico",
packages = ["lyrico"],
entry_points = {
"console_scripts": ['lyrico = lyrico.lyrico:main']
},
cmdclass={'install': MyInstall},
version = version,
description = "A simple command-line lyrics downloader.",
long_description = long_descr,
keywords='lyrics audio foobar2000 tags mp3',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: End Users/Desktop',
'Topic :: Multimedia :: Sound/Audio',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Operating System :: Microsoft',
'Operating System :: Unix',
],
author = "Abhimanyu Pathania",
author_email = "[email protected]",
url = "https://github.com/abhimanyuPathania/lyrico",
license='MIT',
include_package_data = True,
package_data = {
# If any package contains *.ini files, include them:
'': ['*.ini'],
},
)