-
Notifications
You must be signed in to change notification settings - Fork 29
/
setup.py
55 lines (47 loc) · 1.96 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
# -*- coding: utf-8 -*-
from __future__ import with_statement
import re
from setuptools import setup
from setuptools.command.test import test
# detect the current version
with open('glicko2.py') as f:
version = re.search(r'__version__\s*=\s*\'(.+?)\'', f.read()).group(1)
assert version
# use pytest instead
def run_tests(self):
test_file = re.sub(r'\.pyc$', '.py', __import__(self.test_suite).__file__)
raise SystemExit(__import__('pytest').main([test_file]))
test.run_tests = run_tests
setup(
name='glicko2',
version=version,
license='BSD',
author='Heungsub Lee',
author_email='s'r'u'r'b'r'@'r's'r'u'r'b'r'l'r'.'r'e'r'e',
url='http://github.com/sublee/glicko2',
description='The Glicko-2 rating system',
long_description=__doc__,
platforms='any',
py_modules=['glicko2'],
classifiers=['Development Status :: 1 - Planning',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.1',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: Jython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Games/Entertainment'],
install_requires=['distribute'],
test_suite='glicko2tests',
tests_require=['pytest'],
)