setup.py
1.46 KB
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
from setuptools import setup, find_packages
import os
name = "slapos.libnetworkcache"
version = '0.16'
def read(*rnames):
with open(os.path.join(os.path.dirname(__file__), *rnames)) as f:
return f.read()
long_description = (
read('README.rst')
+ '\n' +
read('CHANGELOG.rst')
)
additional_install_requires = []
# Even if argparse is available in python2.7, some python2.7 installations
# do not have it, so checking python version is dangerous
try:
import argparse
except ImportError:
additional_install_requires.append('argparse')
setup(
name=name,
version=version,
description="libnetworkcache - Client for ShaCache and ShaDir HTTP Server",
long_description=long_description,
license="GPLv3",
keywords="slapos networkcache shadir shacache",
install_requires=[
'setuptools', # for namespace
#'pyOpenSSL',
] + additional_install_requires,
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Programming Language :: Python :: 2',
],
entry_points={
'console_scripts': [
'generate-signature-key = slapos.signature:run',
'networkcache-download = slapos.libnetworkcache:cmd_download',
'networkcache-upload = slapos.libnetworkcache:cmd_upload',
]
},
zip_safe=True,
packages=find_packages(),
namespace_packages=['slapos'],
test_suite="slapos.libnetworkcachetests"
)