-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathsetup.py
executable file
·54 lines (46 loc) · 1.55 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
import io
import re
import sys
if sys.version_info < (2, 6):
sys.stderr.write('ERROR: requires Python versions >= 2.6 or 3.3+\n')
sys.exit(1)
from setuptools import setup
def find_version(filename):
"""Uses re to pull out the assigned value to __version__ in filename."""
with io.open(filename, "r", encoding="utf-8") as version_file:
version_match = re.search(r'^__version__ = [\'"]([^\'"]*)[\'"]',
version_file.read(), re.M)
if version_match:
return version_match.group(1)
return "0.0.0"
setup(
# GENERAL INFO
name='eveapi',
version=find_version("eveapi.py"),
description='Python library for accessing the EVE Online API.',
author='Jamie van den Berge',
author_email='[email protected]',
url='https://github.com/ntt/eveapi',
keywords=('eve-online', 'api'),
platforms='any',
install_requires=[
'future>=0.15',
],
classifiers=[
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Games/Entertainment',
],
# CONTENTS
zip_safe=True,
py_modules=['eveapi'],
)