-
Notifications
You must be signed in to change notification settings - Fork 22
/
setup.py
56 lines (46 loc) · 1.48 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
import io
import re
from setuptools import setup
from setuptools import find_packages
DESCRIPTION = "Python client for the Radio Browser API"
def get_version():
content = open("pyradios/__init__.py").read()
mo = re.search(r"__version__\s+=\s+'([^']+)'", content)
if not mo:
raise RuntimeError(
'Unable to find version string in pyradios/__init__.py'
)
return mo[1]
def readme():
with io.open("README.md", "r", encoding="utf-8") as f:
return f.read()
def required(sfx=''):
with open(f"requirements{sfx}.txt") as f:
return f.read().splitlines()
setup(
name="pyradios",
version=get_version(),
description=DESCRIPTION,
long_description=readme(),
long_description_content_type="text/markdown",
keywords="pyradios wrapper radios api",
author="André P. Santos",
author_email="[email protected]",
url="https://github.com/andreztz/pyradios",
license="MIT",
packages=find_packages(exclude=["test*"]),
install_requires=required(),
extras_require={'dev': required('-dev')},
classifiers=[
"Development Status :: 1 - Planning",
"Environment :: Console",
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
],
python_requires=">=3.6",
project_urls={
"Source": "https://github.com/andreztz/pyradios/",
"Upstream": "https://api.radio-browser.info/",
},
)