This repository has been archived by the owner on Feb 27, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 88
/
setup.py
56 lines (49 loc) · 1.98 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Setup script"""
from setuptools import setup
import re
with open('dota2api/__init__.py', 'r') as fd:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
fd.read(),
re.MULTILINE).group(1)
with open('dota2api/__init__.py', 'r') as fd:
author = re.search(r'^__author__\s*=\s*[\'"]([^\'"]*)[\'"]',
fd.read(),
re.MULTILINE).group(1)
with open('dota2api/__init__.py', 'r') as fd:
licence = re.search(r'^__licence__\s*=\s*[\'"]([^\'"]*)[\'"]',
fd.read(),
re.MULTILINE).group(1)
setup(
name="dota2api",
version=version,
author=author,
author_email="[email protected]",
url="https://github.com/joshuaduffy/dota2api",
description="Dota 2 API wrapper and parser in Python",
license=licence,
keywords="dota2 dota api dota2api parser",
packages=['dota2api', 'dota2api.src', 'dota2api.ref'],
package_data={'dota2api.ref': ['abilities.json',
'heroes.json',
'leaver.json',
'items.json',
'lobbies.json',
'modes.json',
'regions.json']},
install_requires=['requests'],
classifiers=[
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries :: Python Modules",
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: GNU General Public License (GPL)",
"Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
]
)