-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·89 lines (76 loc) · 2.79 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#!/usr/bin/env python
# setup
# Setup script for the actors simulation (gvas)
#
# Author: Benjamin Bengfort <[email protected]>
# Created: Thu Nov 05 15:13:02 2015 -0500
#
# Copyright (C) 2015 University of Maryland
# For license information, see LICENSE.txt
#
# ID: setup.py [] [email protected] $
"""
Setup script for the actors simulation (gvas)
"""
##########################################################################
## Imports
##########################################################################
try:
from setuptools import setup
from setuptools import find_packages
except ImportError:
raise ImportError("Could not import \"setuptools\"."
"Please install the setuptools package.")
##########################################################################
## Package Information
##########################################################################
# Read the __init__.py file for version info
version = None
versfile = os.path.join(os.path.dirname(__file__), "gvas", "__init__.py")
with open(versfile, 'r') as versf:
exec(versf.read(), namespace)
version = namespace['get_version']()
## Discover the packages
packages = find_packages(where=".", exclude=("tests", "bin", "docs", "fixtures", "register",))
## Load the requirements
requires = []
with open('requirements.txt', 'r') as reqfile:
for line in reqfile:
requires.append(line.strip())
## Define the classifiers
classifiers = (
'Development Status :: 4 - Beta',
'Environment :: Console',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
)
## Define the keywords
keywords = ('simulation', 'actors', 'distributed computing')
## Define the description
long_description = ""
## Define the configuration
config = {
"name": "GVAS Actors Simulation",
"version": version,
"description": "A simulation of the Actor model of communication for a variety of applications.",
"long_description": long_description,
"license": "MIT",
"author": "Benjamin Bengfort, Allen Leis, Konstantinos Xirogiannopoulos",
"url": "https://github.com/tipsybear/actors-simulation",
"download_url": 'https://github.com/tipsybear/actors-simulation/tarball/v%s' % version,
"packages": packages,
"install_requires": requires,
"classifiers": classifiers,
"keywords": keywords,
"zip_safe": True,
"scripts": ['simulate.py'],
}
##########################################################################
## Run setup script
##########################################################################
if __name__ == '__main__':
setup(**config)