-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
74 lines (63 loc) · 2.03 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
##!/usr/bin/env python
## -*- coding: utf-8 -*-
################################################################################
#
# setup.py
#
# Philipp Meier - <pmeier82 at googlemail dot com>
# 2011-05-10
#
##---IMPORTS
import ez_setup
ez_setup.use_setuptools()
from setuptools import setup, find_packages
##---STINGS
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'License :: Free for non-commercial use',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Programming Language :: Python :: 2.6',
'Topic :: Scientific/Engineering :: Bio-Informatics'
]
DESCRIPTION = 'python bindings for the blockstream shared library'
LONG_DESCRIPTION = """%s
Python bindings to interface with the blockstream network package protocol.
The blockstream protocol implements a container type package, called a block,
that is used as a transport proxy for other more specific protocols. The
protocol lives in layer 5 and 6 of the OSI network model.
""" % DESCRIPTION
def get_version():
rval = '0.0.0'
with open('./blockstream/__init__.py', 'r') as f:
for line in f:
if line.startswith('__version__'):
rval = line.strip().split('=')[-1]
break
return rval.replace('\'', '').strip()
VERSION = get_version()
##---SETUP BLOCK
setup(
# names and description
name='Blockstream',
version=VERSION,
author='Philipp Meier',
author_email='[email protected]',
maintainer='Philipp Meier',
maintainer_email='[email protected]',
url='http://www.ni.tu-berlin.de/',
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
# package distribution
packages=['blockstream'],
package_data={'':['*.dll', '*.so', '*.ini']},
zip_safe=False,
include_package_data=True,
license='free for non-commercial use',
classifiers=CLASSIFIERS,
platforms=['any'],
install_requires=[],
)