-
-
Notifications
You must be signed in to change notification settings - Fork 49
/
setup.py
67 lines (53 loc) · 1.91 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
import json
import os
import setuptools
from setuptools import setup
from setuptools.command.develop import develop
from setuptools.command.install import install
with open(os.path.join('carball', 'analysis', 'PROTOBUF_VERSION'), 'r') as f:
PROTOBUF_VERSION = json.loads(f.read())
with open(os.path.join('CARBALL_VERSION'), 'r') as f:
subversion = json.loads(f.read())
version_string = '0.' + str(PROTOBUF_VERSION) + '.' + str(subversion)
if os.path.isfile('README.md'):
with open("README.md", "r") as readme_file:
long_description = readme_file.read()
else:
long_description = ''
class PostDevelopCommand(develop):
"""Post-installation for development mode."""
def run(self):
from init import initialize_project
initialize_project()
# this needs to be last
develop.run(self)
class PostInstallCommand(install):
"""Post-installation for installation mode."""
def run(self):
from init import initialize_project
initialize_project()
# this needs to be last
install.run(self)
setup(
name='carball',
version=version_string,
packages=setuptools.find_packages(),
include_package_data=True,
install_requires=['pandas==1.0.3', 'protobuf==3.6.1', 'xlrd==1.1.0', 'numpy==1.18.2', 'boxcars-py==0.1.*'],
url='https://github.com/SaltieRL/carball',
keywords=['rocket-league'],
license='Apache 2.0',
author='Matthew Mage, Harry Xie, David Turner',
author_email='sciguymjm@gmail.com',
description='Rocket League replay parsing and analysis.',
long_description=long_description,
exclude_package_data={'': ['.gitignore', '.git/*', '.git/**/*', 'replays/*']},
long_description_content_type='text/markdown',
cmdclass={
'develop': PostDevelopCommand,
'install': PostInstallCommand,
},
entry_points={
'console_scripts': ['carball=carball.command_line:main']
}
)