setup.py 2.75 KB
Newer Older
1
# This file is part of caucase
2
# Copyright (C) 2017-2019  Nexedi SA
3 4 5
#     Alain Takoudjou <alain.takoudjou@nexedi.com>
#     Vincent Pelletier <vincent@nexedi.com>
#
6 7 8
# This program is free software: you can Use, Study, Modify and Redistribute
# it under the terms of the GNU General Public License version 3, or (at your
# option) any later version, as published by the Free Software Foundation.
9
#
10 11 12 13 14
# You can also Link and Combine this program with other software covered by
# the terms of any of the Free Software licenses or any of the Open Source
# Initiative approved licenses and Convey the resulting work. Corresponding
# source of such a combination shall include the source code for all other
# software used.
15
#
16 17 18 19 20
# This program is distributed WITHOUT ANY WARRANTY; without even the implied
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# See COPYING file for full licensing terms.
# See https://www.nexedi.com/licensing for rationale and options.
21 22 23 24

from setuptools import setup, find_packages
import glob
import os
25
import sys
26
import versioneer
27 28

long_description = open("README.rst").read() + "\n"
29
for f in sorted(glob.glob(os.path.join('caucase', 'README.*.rst'))):
30
  long_description += '\n' + open(f).read() + '\n'
31
  long_description += open("CHANGES.txt").read() + "\n"
32

Vincent Pelletier's avatar
Vincent Pelletier committed
33 34
setup(
  name='caucase',
35 36
  version=versioneer.get_version(),
  cmdclass=versioneer.get_cmdclass(),
37 38
  author='Vincent Pelletier',
  author_email='vincent@nexedi.com',
Vincent Pelletier's avatar
Vincent Pelletier committed
39 40 41 42 43 44 45 46 47 48 49 50 51 52
  description="Certificate Authority.",
  long_description=long_description,
  classifiers=[
    'Environment :: Console',
    'Environment :: Web Environment',
    'Intended Audience :: System Administrators',
    'Intended Audience :: Information Technology',
    'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
    'Topic :: Security :: Cryptography',
    'Topic :: System :: Systems Administration :: Authentication/Directory',
    'Topic :: Internet :: WWW/HTTP :: WSGI :: Application',
  ],
  keywords='certificate authority',
  url='https://lab.nexedi.com/nexedi/caucase',
53
  license='GPLv3+ with wide exception for FOSS',
Vincent Pelletier's avatar
Vincent Pelletier committed
54 55
  packages=find_packages(),
  install_requires=[
56 57
    'cryptography>=2.2.1', # everything x509 except...
    'pyOpenSSL>=18.0.0', # ...certificate chain validation
58
    'pem>=17.1.0', # Parse PEM files
59
    'PyJWT', # CORS token signature
Vincent Pelletier's avatar
Vincent Pelletier committed
60 61 62 63 64 65
  ],
  zip_safe=True,
  entry_points={
    'console_scripts': [
      'caucase = caucase.cli:main',
      'caucase-probe = caucase.cli:probe',
66
      'caucase-updater = caucase.cli:updater',
Vincent Pelletier's avatar
Vincent Pelletier committed
67 68 69
      'caucase-rerequest = caucase.cli:rerequest',
      'caucase-key-id = caucase.cli:key_id',
      'caucased = caucase.http:main',
70
      'caucased-manage = caucase.http:manage',
Vincent Pelletier's avatar
Vincent Pelletier committed
71 72 73
    ]
  },
  test_suite='caucase.test',
74
  use_2to3=sys.version_info >= (3, ),
Vincent Pelletier's avatar
Vincent Pelletier committed
75
)