forked from panzarino/mlbgame
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
70 lines (64 loc) · 2.01 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
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/usr/bin/env python
from distutils.core import setup
import codecs
import sys
import os
import os.path as path
# where this file is located
cwd = path.dirname(__file__)
# get full description from rst file
longdesc = codecs.open(path.join(cwd, 'description.rst'), 'r', 'ascii').read()
version = '0.0.0'
# read version file to get version
with codecs.open(path.join(cwd, 'mlbgame/version.py'), 'r', 'ascii') as f:
exec(f.read())
version = __version__
# make sure version is not default
# make sure file reading worked
assert version != '0.0.0'
# download link based off tagged releases
download_link = 'https://github.com/zachpanz88/mlbgame/archive/v{}.zip'.format(
version)
# setup options
setup(
name='mlbgame',
author='Zach Panzarino',
author_email='zach@panz.io',
version=version,
license='MIT',
description='An API to retrieve and read MLB GameDay data',
long_description=longdesc,
url='https://github.com/zachpanz88/mlbgame',
download_url=download_link,
classifiers=[
'License :: OSI Approved :: MIT License',
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Other Audience',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Natural Language :: English',
'Topic :: Other/Nonlisted Topic',
],
keywords=[
'MLB',
'baseball',
'Major League Baseball',
'baseball scores',
'baseball stats',
'baseball data',
'MLB GameDay',
],
platforms='ANY',
packages=['mlbgame'],
package_data={'mlbgame': ['default.xml']},
data_files=[('docs', ['README.md', 'LICENSE', 'description.rst'])],
install_requires=['lxml'],
extras_require={
'dev': ['pytest', 'pytest-cov', 'coveralls']
}
)