This repository has been archived by the owner on Oct 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
51 lines (42 loc) · 1.44 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
from setuptools import setup, find_packages
import re, os
try:
import pypandoc
description = pypandoc.convert("README.md", "rst")
except (IOError, ImportError):
description = "An Asyncio friendly wrapper for Riot's League API"
on_rtd = os.getenv('READTHEDOCS') == 'True'
requirements = ["aiohttp>=2.2.3"]
if on_rtd:
requirements.append('sphinxcontrib-napoleon')
requirements.append('sphinxcontrib-asyncio')
requirements.append("sphinx==1.5.6")
version = ''
with open('league/__init__.py') as f:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', f.read(), re.MULTILINE).group(1)
if not version:
raise RuntimeError('version is not set')
setup(
name='league.py',
version=version,
packages=['league'],
url='https://github.com/datmellow/League.py',
python_requires='>=3.5',
license='MIT',
author='datmellow',
author_email='[email protected]',
install_requires=requirements,
description=description,
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.5',
'Topic :: Internet',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities',
]
)