-
Notifications
You must be signed in to change notification settings - Fork 32
/
setup.py
54 lines (49 loc) · 1.87 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
#!/usr/bin/env python
from setuptools import setup, find_packages
from codecs import open
from os import path
import sys
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()\
.replace('.io/en/latest/', '.io/en/stable/')\
.replace('?badge=latest', '?badge=stable')\
.replace('projects/dota2/badge/?version=latest', 'projects/dota2/badge/?version=stable')
with open(path.join(here, 'dota2/__init__.py'), encoding='utf-8') as f:
__version__ = f.readline().split('"')[1]
install_requires = [
'steam[client]~=1.0',
'gevent-eventemitter~=2.1',
'gevent>=1.3.0',
'protobuf>=3.0.0',
]
if sys.version_info < (3, 4):
install_requires.append('enum34>=1.0.4')
setup(
name='dota2',
version=__version__,
description='Module for interacting Dota2\'s Game Coordinator',
long_description=long_description,
url='https://github.com/ValvePython/dota2',
author="Rossen Georgiev",
author_email='rossen@rgp.io',
license='MIT',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Topic :: Software Development :: Libraries :: Python Modules',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
],
keywords='valve steam steamid api webapi',
packages=['dota2'] + ['dota2.'+x for x in find_packages(where='dota2')],
install_requires=install_requires,
zip_safe=True,
)