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()
|
|
|
|
|
|
|
|
|
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-04-09 23:08:41 -04:00
|
|
|
version="0.4",
|
2021-03-29 21:00:14 -04:00
|
|
|
author="Nathan",
|
|
|
|
author_email="nathanthomas707@gmail.com",
|
|
|
|
keywords="lossless, hi-res, qobuz, tidal, deezer, audio, convert",
|
2021-03-25 15:12:15 -04:00
|
|
|
description="A stream downloader for Qobuz, Tidal, and Deezer.",
|
|
|
|
long_description=read_file("README.md"),
|
2021-03-28 00:44:38 -04:00
|
|
|
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
|
|
|
)
|
|
|
|
|
|
|
|
# rm -f dist/*
|
|
|
|
# python3 setup.py sdist bdist_wheel
|
|
|
|
# twine upload dist/*
|