streamrip/setup.py

52 lines
1.7 KiB
Python
Raw Normal View History

2021-03-22 12:21:27 -04:00
from setuptools import find_packages, setup
2021-03-25 13:33:58 -04:00
pkg_name = "streamrip"
2021-03-22 12:21:27 -04:00
def read_file(fname):
with open(fname, "r") as f:
return f.read()
requirements = read_file("requirements.txt").strip().split()
requirements.append("simple-term-menu; platform_system == 'Linux'")
requirements.append("simple-term-menu; platform_system == 'Darwin'")
requirements.append("pick; platform_system == 'Windows'")
# Needed for pick to work
requirements.append("windows-curses; platform_system == 'Windows'")
2021-03-22 12:21:27 -04:00
# required for click colors
# can be removed when click v8.0 is released
requirements.append("colorama; platform_system == 'Windows'")
2021-03-22 12:21:27 -04:00
2021-03-22 16:03:08 -04:00
# https://github.com/pypa/sampleproject/blob/main/setup.py
2021-03-22 12:21:27 -04:00
setup(
name=pkg_name,
2021-05-14 02:07:20 -04:00
version="0.5.3",
author="Nathan",
author_email="nathanthomas707@gmail.com",
2021-04-12 18:52:08 -04:00
keywords="lossless, hi-res, qobuz, tidal, deezer, audio, convert, soundcloud, mp3",
description="A stream downloader for Qobuz, Tidal, SoundCloud, and Deezer.",
2021-03-25 15:12:15 -04:00
long_description=read_file("README.md"),
long_description_content_type="text/markdown",
2021-03-22 12:21:27 -04:00
install_requires=requirements,
2021-03-25 13:33:58 -04:00
py_modules=["streamrip"],
2021-03-22 12:21:27 -04:00
entry_points={
"console_scripts": [
2021-03-25 13:52:40 -04:00
"rip = streamrip.cli:main",
2021-03-22 12:21:27 -04:00
],
},
packages=find_packages(),
classifiers=[
2021-03-22 16:03:08 -04:00
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
2021-03-22 12:21:27 -04:00
"License :: OSI Approved :: GNU General Public License (GPL)",
"Operating System :: OS Independent",
],
2021-04-08 15:19:03 -04:00
python_requires=">=3.8",
2021-03-22 16:03:08 -04:00
project_urls={
2021-03-25 13:52:40 -04:00
"Source": "https://github.com/nathom/streamrip",
2021-03-25 15:12:15 -04:00
"Bug Reports": "https://github.com/nathom/streamrip/issues",
2021-03-22 21:00:04 -04:00
},
2021-03-22 12:21:27 -04:00
)