Blame view

setup.py 2.4 KB
Vincent Pelletier committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
# This file is part of caucase
# Copyright (C) 2017  Nexedi
#     Alain Takoudjou <alain.takoudjou@nexedi.com>
#     Vincent Pelletier <vincent@nexedi.com>
#
# caucase is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# caucase is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with caucase.  If not, see <http://www.gnu.org/licenses/>.
Alain Takoudjou committed
18 19 20 21 22

from setuptools import setup, find_packages
import glob
import os

Alain Takoudjou committed
23
version = '0.1.1'
Alain Takoudjou committed
24 25 26
name = 'caucase'
long_description = open("README.rst").read() + "\n"

Alain Takoudjou committed
27
for f in sorted(glob.glob(os.path.join('caucase', 'README.*.rst'))):
Alain Takoudjou committed
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 75 76 77
  long_description += '\n' + open(f).read() + '\n'

# long_description += open("CHANGES.txt").read() + "\n"

# Provide a way to install additional requirements
additional_install_requires = []
try:
  import argparse
except ImportError:
  additional_install_requires.append('argparse')

setup(name=name,
      version=version,
      description="Certificate Authority.",
      long_description=long_description,
      classifiers=[
          "Programming Language :: Python",
        ],
      keywords='certificate authority',
      license='GPLv3',
      namespace_packages=['caucase'],
      packages=find_packages(),
      include_package_data=True,
      install_requires=[
        'Flask', # needed by servers
        'flask_user',
        'setuptools', # namespaces
        'pyOpenSSL', # manage ssl certificates
        'pyasn1', # ASN.1 types and codecs for certificates
        'pyasn1-modules',
        'requests', # http requests
        'pem', # Parse PEM files
      ] + additional_install_requires,
      extras_require = {

      },
      tests_require = [
        'Flask-Testing',
      ],
      zip_safe=False, # proxy depends on Flask, which has issues with
                      # accessing templates
      entry_points={
        'console_scripts': [
          'ca-bin = caucase.web:start',
          'ca-cli = caucase.cli:main',
          'ca-cliweb = caucase.cli_flask:main',
        ]
      },
      test_suite='caucase.test',
    )