summarylogtreecommitdiffstats
path: root/setup.py
blob: c75e598001e2fe06c8b230e7fc7e706f4fd6761c (plain)
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
#!/usr/bin/python3
# coding=utf-8

from setuptools import setup, find_packages
import os


def create_default_dir():
    default_dir = os.path.normpath(os.path.realpath(
        (os.path.join(os.path.expanduser("~"), ".spotify-ripper"))))
    if not os.path.exists(default_dir):
        print("Creating default settings directory: " + default_dir)
        os.makedirs(default_dir.encode("utf-8"))


def _read(fn):
    path = os.path.join(os.path.dirname(__file__), fn)
    return open(path).read()


setup(
    name='spotify-ripper',
    version='2.18',
    packages=find_packages(exclude=["tests"]),
    # scripts=['spotify_ripper/main.py'],
    include_package_data=True,
    zip_safe=False,

    # Executable
    entry_points={
        'console_scripts': [
            'spotify-ripper = spotify_ripper.main:main',
        ],
    },

    # Additional data
    package_data={
        '': ['README.md', 'LICENSE']
    },

    # Requirements
    install_requires=[
        'pyspotify',
        'colorama',
        'mutagen',
        'requests',
        'schedule',
        'spotipy'
    ],

    # Metadata
    author='Simone Caronni',
    author_email='negativo17@gmail.com',
    description='A small ripper for Spotify that rips Spotify URIs to media files',
    license='MIT',
    keywords="spotify ripper mp3 ogg vorbis flac opus acc mp4 m4a",
    url='https://github.com/scaronni/spotify-ripper',
    download_url='https://github.com/scaronni/spotify-ripper/tarball/2.18',
    classifiers=[
        'Topic :: Multimedia :: Sound/Audio',
        'Topic :: Multimedia :: Sound/Audio :: Capture/Recording',
        'License :: OSI Approved :: MIT License',
        'Environment :: Console',
        'Programming Language :: Python :: 3',
    ],
)

create_default_dir()