diff options
| author | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-07-31 11:59:31 +0300 |
|---|---|---|
| committer | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-07-31 12:05:34 +0300 |
| commit | b401ade3b4519c20c9afc1f0a8f318525ee0cecb (patch) | |
| tree | 86aa021673b0d31b348cb07fabe519ed10ea70ea | |
| parent | 693a23d17c8783e51a97fd5a2439b5d1ceaa003c (diff) | |
Add setup.py file
All previously listed external requirements of the README.md file have now been moved into this setup.py script.
| -rw-r--r-- | README.md | 5 | ||||
| -rw-r--r-- | setup.py | 41 |
2 files changed, 42 insertions, 4 deletions
@@ -46,10 +46,7 @@ The following steps will guide you through setting up the OpenDC web server loca Make sure you have Python 2.7 installed (if not, get it [here](https://www.python.org/)), as well as pip (if not, get it [here](https://pip.pypa.io/en/stable/installing/)). Then run the following to install the requirements. ```bash -pip install flask -pip install flask_socketio -pip install oauth2client -pip install eventlet +python setup.py install ``` #### Get the code diff --git a/setup.py b/setup.py new file mode 100644 index 00000000..1dd81d5a --- /dev/null +++ b/setup.py @@ -0,0 +1,41 @@ +from setuptools import setup +from codecs import open +from os import path + +# Get the long description from the README file +here = path.abspath(path.dirname(__file__)) +with open(path.join(here, 'README.md'), encoding='utf-8') as f: + long_description = f.read() + +setup( + name='opendc-web-server', + version='0.1.0', + + description='Python web server for the OpenDC project', + long_description=long_description, + + url='http://opendc.org', + + author='The OpenDC team', + author_email='opendc@atlarge-research.com', + + license='MIT', + + classifiers=[ + 'License :: OSI Approved :: MIT License', + + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.7', + ], + + keywords='opendc datacenter simulation web-server', + + packages=['opendc'], + + install_requires=[ + 'flask', + 'flask_socketio', + 'oauth2client', + 'eventlet', + ], +) |
