setup.py 1.46 KB
from setuptools import setup, find_packages
import os

name = "slapos.libnetworkcache"
version = '0.19'


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"
    )