1#! /usr/bin/env python
2
3"""
4<Program Name>
5  setup.py
6
7<Author>
8  Vladimir Diaz <vladimir.v.diaz@gmail.com>
9
10<Started>
11  December 7, 2016.
12
13<Copyright>
14  See LICENSE for licensing information.
15
16<Purpose>
17  BUILD SOURCE DISTRIBUTION
18
19  The following shell command generates a TUF source archive that can be
20  distributed to other users.  The packaged source is saved to the 'dist'
21  folder in the current directory.
22
23  $ python setup.py sdist
24
25
26  INSTALLATION OPTIONS
27
28  pip - installing and managing Python packages (recommended):
29
30  # Installing from Python Package Index (https://pypi.python.org/pypi).
31  $ pip install securesystemslib
32
33  # Installing from local source archive.
34  $ pip install <path to archive>
35
36  # Or from the root directory of the unpacked archive.
37  $ pip install .
38
39  Alternate installation options:
40
41  Navigate to the root directory of the unpacked archive and
42  run one of the following shell commands:
43
44  Install to the global site-packages directory.
45  $ python setup.py install
46
47  Install to the user site-packages directory.
48  $ python setup.py install --user
49
50  Install to a chosen directory.
51  $ python setup.py install --home=<directory>
52
53
54  Note: The last two installation options may require modification of
55  Python's search path (i.e., 'sys.path') or updating an OS environment
56  variable.  For example, installing to the user site-packages directory might
57  result in the installation of TUF scripts to '~/.local/bin'.  The user may
58  then be required to update his $PATH variable:
59  $ export PATH=$PATH:~/.local/bin
60"""
61
62from setuptools import setup
63from setuptools import find_packages
64
65
66with open('README.rst') as file_object:
67  long_description = file_object.read()
68
69setup(
70  name = 'securesystemslib',
71  version = '0.11.3',
72  description = 'A library that provides cryptographic and general-purpose'
73      ' routines for Secure Systems Lab projects at NYU',
74  long_description = long_description,
75  author = 'https://www.updateframework.com',
76  author_email = 'theupdateframework@googlegroups.com',
77  url = 'https://github.com/secure-systems-lab/securesystemslib',
78  keywords = 'cryptography, keys, signatures, rsa, ed25519, ecdsa',
79  classifiers = [
80    'Development Status :: 4 - Beta',
81    'Intended Audience :: Developers',
82    'License :: OSI Approved :: MIT License',
83    'Natural Language :: English',
84    'Operating System :: POSIX',
85    'Operating System :: POSIX :: Linux',
86    'Operating System :: MacOS :: MacOS X',
87    'Operating System :: Microsoft :: Windows',
88    'Programming Language :: Python',
89    'Programming Language :: Python :: 2',
90    'Programming Language :: Python :: 2.7',
91    'Programming Language :: Python :: 3',
92    'Programming Language :: Python :: 3.4',
93    'Programming Language :: Python :: 3.5',
94    'Programming Language :: Python :: 3.6',
95    'Programming Language :: Python :: Implementation :: CPython',
96    'Topic :: Security',
97    'Topic :: Software Development'
98  ],
99  install_requires = ['six>=1.11.0'],
100  extras_require = {'crypto': ['cryptography>=2.2.2', 'colorama>=0.3.9'],
101      'pynacl': ['pynacl>1.2.0']},
102  packages = find_packages(exclude=['tests', 'debian']),
103  scripts = []
104)
105