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).
|
2020-06-17 14:10:56 +00:00
|
|
|
# Support for creation of Ed25519 signatures and support for RSA and ECDSA
|
|
|
|
|
# signatures in general requires optional dependencies:
|
|
|
|
|
$ pip install securesystemslib[crypto,pynacl]
|
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',
|
2021-02-16 15:55:30 +00:00
|
|
|
version = '0.17.0', # 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',
|
2017-09-21 21:27:28 +00:00
|
|
|
'Programming Language :: Python :: 3.6',
|
2019-12-13 08:41:45 +00:00
|
|
|
'Programming Language :: Python :: 3.7',
|
|
|
|
|
'Programming Language :: Python :: 3.8',
|
2020-11-05 17:47:13 +00:00
|
|
|
'Programming Language :: Python :: 3.9',
|
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
|
|
|
],
|
2020-08-04 09:29:27 +00:00
|
|
|
project_urls={
|
|
|
|
|
'Source': 'https://github.com/theupdateframework/tuf',
|
|
|
|
|
'Issues': 'https://github.com/theupdateframework/tuf/issues'
|
|
|
|
|
},
|
2020-12-10 17:01:31 +00:00
|
|
|
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, <4",
|
2018-08-30 23:18:10 +00:00
|
|
|
install_requires = [
|
|
|
|
|
'requests>=2.19.1',
|
|
|
|
|
'six>=1.11.0',
|
2020-11-11 08:54:33 +00:00
|
|
|
'securesystemslib>=0.18.0'
|
2018-08-30 23:18:10 +00:00
|
|
|
],
|
2019-11-19 16:10:46 +00:00
|
|
|
tests_require = [
|
|
|
|
|
'mock; python_version < "3.3"'
|
|
|
|
|
],
|
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',
|
2020-02-25 11:28:00 +00:00
|
|
|
'tuf/scripts/client.py'
|
2013-03-04 23:01:15 +00:00
|
|
|
]
|
|
|
|
|
)
|