-
Notifications
You must be signed in to change notification settings - Fork 10
/
setup.py
57 lines (44 loc) · 1.54 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
57
from setuptools import setup, find_packages
import re
import os
on_rtd = os.getenv('READTHEDOCS') == 'True'
requirements = []
with open('requirements.txt') as f:
requirements = f.read().splitlines()
if on_rtd:
requirements.append('sphinxcontrib-napoleon')
readme = ''
with open('README.md') as f:
readme = f.read()
version = ''
with open('challonge/__init__.py') as f:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', f.read(), re.MULTILINE).group(1)
setup(name='achallonge',
version=version,
description='A python library to use the Challonge API',
long_description=readme,
long_description_content_type="text/markdown",
license='MIT',
author='Fabien Poupineau (fp12)',
url='https://github.com/fp12/achallonge',
packages=find_packages(),
install_requires=requirements,
extras_require={
'speed': ['cchardet', 'aiodns']
},
include_package_data=True,
classifiers=[
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Internet',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities',
],
keywords=['challonge', 'tournament', 'match']
)