README moves to markdown
[nepi.git] / setup.py
1 #!/usr/bin/env python
2
3 from distutils.core import setup
4 import sys
5
6 PY2 = sys.version_info[0] == 2
7
8 with open('VERSION') as f:
9     version_tag = f.read().strip()
10 with open("COPYING") as f:
11     license = f.read()
12 with open("README.md") as f:
13     long_description = f.read()
14
15 # we'd probably would be better off with this some place else
16 data_files = [ ('/etc/nepi', [ 'COPYING', 'README.md' ] ) ]
17
18 ### requirements - used by pip install
19 required_modules = [ ]
20    # we are now using six for a portable code
21 required_modules.append('six')
22    # ipaddr in py2 used to be a separate lib
23    # within recent py3, it is now in standard library but named ipaddress
24 if PY2:
25     required_modules.append('ipaddr')
26    # this is required regardless of the python version
27 required_modules.append('networkx')
28    # refrain from mentioning these ones that are not exactly crucial
29    # and that have additional, non-python, dependencies
30    # that can easily break the whole install
31 #required_modules.append('matplotlib')
32 #required_modules.append('pygraphviz')
33
34 setup(
35     name             = "nepi",
36     version          = version_tag,
37     description      = "Network Experiment Management Framework",
38     long_description = long_description,
39     license          = license,
40     author           = "Alina Quereilhac",
41     author_email     = "alina.quereilhac@inria.fr",
42     download_url     = "http://build.onelab.eu/nepi/nepi-{v}.tar.gz".format(v=version_tag),
43     url              = "http://nepi.inria.fr/",
44     platforms        = "Linux, OSX",
45     data_files       = data_files,
46     package_dir      = {"": "src"},
47     packages         = [
48         "nepi",
49         "nepi.execution",
50         "nepi.resources",
51         "nepi.resources.all",
52         "nepi.resources.linux",
53         "nepi.resources.linux.ccn",
54         "nepi.resources.linux.ns3",
55         "nepi.resources.linux.ns3.ccn",
56         "nepi.resources.linux.netns",
57         "nepi.resources.netns",
58         "nepi.resources.ns3",
59         "nepi.resources.ns3.classes",
60         "nepi.resources.omf",
61         "nepi.resources.planetlab",
62         "nepi.resources.planetlab.ns3",
63         "nepi.resources.planetlab.openvswitch",
64         "nepi.util",
65         "nepi.util.parsers",
66         "nepi.data",
67         "nepi.data.processing",
68         "nepi.data.processing.ccn",
69         "nepi.data.processing.ping"],
70     package_data     = {
71         "nepi.resources.planetlab" : [ "scripts/*.py" ],
72         "nepi.resources.linux" : [ "scripts/*.py" ],
73         "nepi.resources.linux.ns3" : [ "dependencies/*.tar.gz" ]
74     },
75     install_requires = required_modules,
76 )