|
| 1 | +#!/usr/bin/env python2 |
1 | 2 | try: |
2 | 3 | from setuptools import setup |
3 | 4 | except ImportError: |
4 | 5 | from distutils.core import setup |
5 | 6 |
|
6 | | - |
7 | | -config = { |
8 | | - 'description': """MiniCPS is a lightweight simulator for accurate network |
9 | | - traffic in an industrial control system, with basic support for physical |
10 | | - layer interaction.""", |
11 | | - |
12 | | - 'author': 'Daniele Antonioli', |
13 | | - |
14 | | - 'url': 'https://github.com/scy-phy/minicps', |
15 | | - |
16 | | - 'download_url': 'https://github.com/scy-phy/minicps', |
17 | | - |
18 | | - 'author email': '[email protected]', |
19 | | - |
20 | | - 'version': '1.1.0', |
21 | | - |
22 | | - 'install_requires': [ |
| 7 | +# NOTE: https://docs.python.org/2/distutils/setupscript.html |
| 8 | +setup( |
| 9 | + name='minicps', |
| 10 | + version='1.1.0', |
| 11 | + description='MiniCPS: a framework for Cyber-Physical Systems \ |
| 12 | + real-time simulation, built on top of mininet.', |
| 13 | + # NOTE: long_description displayed on PyPi |
| 14 | + long_description='MiniCPS is a framework for Cyber-Physical Systems \ |
| 15 | + real-time simulation. It includes support for physical process and \ |
| 16 | + control devices simulation, and network emulation. It is build \ |
| 17 | + on top of mininet.', |
| 18 | + url='https://github.com/scy-phy/minicps', |
| 19 | + author='Daniele Antonioli', |
| 20 | + |
| 21 | + license='MIT', |
| 22 | + classifiers=[ |
| 23 | + 'License :: OSI Approved :: MIT License', |
| 24 | + 'Programming Language :: Python :: 2', |
| 25 | + 'Programming Language :: Python :: 2.7', |
| 26 | + ], |
| 27 | + keywords='simulation cyber-physical systems security real-time mininet', |
| 28 | + packages=['minicps'], |
| 29 | + # packages=find_packages(exclude=['docs', 'tests*', 'examples', 'temp', |
| 30 | + # 'bin']), |
| 31 | + # NOTE: for the uses, see requirements for the developer |
| 32 | + install_requires=[ |
23 | 33 | 'cryptography', |
24 | 34 | 'pyasn1', |
25 | 35 | 'pymodbus', |
26 | 36 | 'cpppo', |
27 | 37 | ], |
| 38 | + # NOTE: specify files relative to the module path |
| 39 | + package_data={}, |
| 40 | + # NOTE: specify files with absolute paths |
| 41 | + data_files=None, |
| 42 | + scripts=[], |
| 43 | +) |
28 | 44 |
|
29 | | - 'package': ['minicps'], |
30 | | - 'scripts': [], |
31 | | - 'name': 'minicps' |
32 | | -} |
33 | | - |
34 | | - |
35 | | -setup(**config) |
|
0 commit comments