2017-11-30 18:24:35 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
2018-01-24 22:28:15 +00:00
|
|
|
# Copyright 2013 - 2018, New York University and the TUF contributors
|
2017-11-30 18:24:35 +00:00
|
|
|
# SPDX-License-Identifier: MIT OR Apache-2.0
|
2013-01-31 18:54:15 +00:00
|
|
|
|
2013-03-12 02:34:50 +00:00
|
|
|
"""
|
|
|
|
|
<Program Name>
|
|
|
|
|
setup.py
|
|
|
|
|
|
|
|
|
|
<Author>
|
|
|
|
|
Vladimir Diaz <vladimir.v.diaz@gmail.com>
|
|
|
|
|
|
|
|
|
|
<Started>
|
|
|
|
|
March 2013.
|
|
|
|
|
|
|
|
|
|
<Copyright>
|
2018-02-05 16:31:19 +00:00
|
|
|
See LICENSE-MIT OR LICENSE for licensing information.
|
2013-03-12 02:34:50 +00:00
|
|
|
|
|
|
|
|
<Purpose>
|
|
|
|
|
BUILD SOURCE DISTRIBUTION
|
|
|
|
|
|
|
|
|
|
The following shell command generates a TUF source archive that can be
|
|
|
|
|
distributed to other users. The packaged source is saved to the 'dist'
|
|
|
|
|
folder in the current directory.
|
2017-01-12 21:33:32 +00:00
|
|
|
|
2013-03-12 02:34:50 +00:00
|
|
|
$ python setup.py sdist
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
INSTALLATION OPTIONS
|
2017-01-12 21:33:32 +00:00
|
|
|
|
2014-03-08 04:36:32 +00:00
|
|
|
pip - installing and managing Python packages (recommended):
|
|
|
|
|
|
|
|
|
|
# Installing from Python Package Index (https://pypi.python.org/pypi).
|
|
|
|
|
$ pip install tuf
|
|
|
|
|
|
|
|
|
|
# Installing from local source archive.
|
|
|
|
|
$ pip install <path to archive>
|
2017-01-12 21:33:32 +00:00
|
|
|
|
2014-03-08 04:36:32 +00:00
|
|
|
# Or from the root directory of the unpacked archive.
|
2017-01-12 21:33:32 +00:00
|
|
|
$ pip install .
|
|
|
|
|
|
2014-03-08 04:36:32 +00:00
|
|
|
# Installing optional requirements (i.e., after installing tuf).
|
2014-03-08 22:56:40 +00:00
|
|
|
# The 'tools' optional requirement is currently supported, which enables
|
2014-03-11 12:07:18 +00:00
|
|
|
# fast and secure ed25519 key generation, and signature verification
|
2014-03-08 22:56:40 +00:00
|
|
|
# computations with PyNaCl+libsodium. General-purpose cryptography is also
|
2014-03-11 12:07:18 +00:00
|
|
|
# provided. 'tools' is needed by the TUF repository tools. Clients that
|
|
|
|
|
# require verification of RSASSA-PSS signatures must also install tuf[tools].
|
2014-03-08 22:56:40 +00:00
|
|
|
$ pip install tuf[tools]
|
2014-03-08 04:36:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
Alternate installation options:
|
|
|
|
|
|
2013-03-12 02:34:50 +00:00
|
|
|
Navigate to the root directory of the unpacked archive and
|
|
|
|
|
run one of the following shell commands:
|
2017-01-12 21:33:32 +00:00
|
|
|
|
2013-03-12 02:34:50 +00:00
|
|
|
Install to the global site-packages directory.
|
|
|
|
|
$ python setup.py install
|
|
|
|
|
|
|
|
|
|
Install to the user site-packages directory.
|
|
|
|
|
$ python setup.py install --user
|
|
|
|
|
|
|
|
|
|
Install to a chosen directory.
|
|
|
|
|
$ python setup.py install --home=<directory>
|
|
|
|
|
|
2017-01-12 21:33:32 +00:00
|
|
|
|
2013-03-12 02:34:50 +00:00
|
|
|
Note: The last two installation options may require modification of
|
|
|
|
|
Python's search path (i.e., 'sys.path') or updating an OS environment
|
2014-03-08 04:36:32 +00:00
|
|
|
variable. For example, installing to the user site-packages directory might
|
|
|
|
|
result in the installation of TUF scripts to '~/.local/bin'. The user may
|
|
|
|
|
then be required to update his $PATH variable:
|
2013-03-12 02:34:50 +00:00
|
|
|
$ export PATH=$PATH:~/.local/bin
|
|
|
|
|
"""
|
|
|
|
|
|
2013-09-09 18:40:08 +00:00
|
|
|
from setuptools import setup
|
2014-03-08 04:36:32 +00:00
|
|
|
from setuptools import find_packages
|
|
|
|
|
|
2017-01-13 16:05:20 +00:00
|
|
|
|
2018-05-17 15:50:11 +00:00
|
|
|
with open('README.md') as file_object:
|
2014-07-16 16:51:35 +00:00
|
|
|
long_description = file_object.read()
|
|
|
|
|
|
2018-08-31 18:51:31 +00:00
|
|
|
|
2013-03-04 23:01:15 +00:00
|
|
|
setup(
|
2014-03-08 04:36:32 +00:00
|
|
|
name = 'tuf',
|
2019-01-10 16:52:42 +00:00
|
|
|
version = '0.11.2.dev3', # If updating version, also update it in tuf/__init__.py
|
2014-03-08 04:36:32 +00:00
|
|
|
description = 'A secure updater framework for Python',
|
2014-07-16 16:51:35 +00:00
|
|
|
long_description = long_description,
|
2018-06-20 21:52:34 +00:00
|
|
|
long_description_content_type='text/markdown',
|
2016-01-22 15:59:21 +00:00
|
|
|
author = 'https://www.updateframework.com',
|
2014-03-08 04:36:32 +00:00
|
|
|
author_email = 'theupdateframework@googlegroups.com',
|
2016-01-22 15:59:21 +00:00
|
|
|
url = 'https://www.updateframework.com',
|
2014-03-08 04:36:32 +00:00
|
|
|
keywords = 'update updater secure authentication key compromise revocation',
|
|
|
|
|
classifiers = [
|
|
|
|
|
'Development Status :: 4 - Beta',
|
|
|
|
|
'Intended Audience :: Developers',
|
2017-11-09 22:46:02 +00:00
|
|
|
'License :: OSI Approved :: MIT License',
|
|
|
|
|
'License :: OSI Approved :: Apache Software License',
|
2014-03-08 04:36:32 +00:00
|
|
|
'Natural Language :: English',
|
|
|
|
|
'Operating System :: POSIX',
|
|
|
|
|
'Operating System :: POSIX :: Linux',
|
|
|
|
|
'Operating System :: MacOS :: MacOS X',
|
|
|
|
|
'Operating System :: Microsoft :: Windows',
|
|
|
|
|
'Programming Language :: Python',
|
|
|
|
|
'Programming Language :: Python :: 2',
|
|
|
|
|
'Programming Language :: Python :: 2.7',
|
2014-06-07 00:26:52 +00:00
|
|
|
'Programming Language :: Python :: 3',
|
|
|
|
|
'Programming Language :: Python :: 3.4',
|
2016-01-22 15:59:21 +00:00
|
|
|
'Programming Language :: Python :: 3.5',
|
2017-09-21 21:27:28 +00:00
|
|
|
'Programming Language :: Python :: 3.6',
|
2014-03-08 04:36:32 +00:00
|
|
|
'Programming Language :: Python :: Implementation :: CPython',
|
|
|
|
|
'Topic :: Security',
|
|
|
|
|
'Topic :: Software Development'
|
2013-03-04 23:01:15 +00:00
|
|
|
],
|
2018-08-30 23:18:10 +00:00
|
|
|
install_requires = [
|
|
|
|
|
'iso8601>=0.1.12',
|
|
|
|
|
'requests>=2.19.1',
|
|
|
|
|
'six>=1.11.0',
|
2018-10-03 02:24:14 +00:00
|
|
|
'securesystemslib>=0.11.3'
|
2018-08-30 23:18:10 +00:00
|
|
|
],
|
2014-04-19 18:27:53 +00:00
|
|
|
packages = find_packages(exclude=['tests']),
|
2014-03-08 04:36:32 +00:00
|
|
|
scripts = [
|
2018-01-25 21:41:53 +00:00
|
|
|
'tuf/scripts/repo.py',
|
2018-01-24 22:32:21 +00:00
|
|
|
'tuf/scripts/client.py',
|
|
|
|
|
'tuf/scripts/simple_server.py',
|
2013-03-04 23:01:15 +00:00
|
|
|
]
|
|
|
|
|
)
|