forked from theupdateframework/python-tuf
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
executable file
·87 lines (62 loc) · 1.92 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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
78
79
80
81
82
83
84
85
86
87
#! /usr/bin/env python
"""
<Program Name>
setup.py
<Author>
Vladimir Diaz <[email protected]>
<Started>
March 2013.
<Copyright>
See LICENSE for licensing information.
<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.
$ python setup.py sdist
INSTALLATION OPTIONS
Navigate to the root directory of the unpacked archive and
run one of the following shell commands:
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>
Note: The last two installation options may require modification of
Python's search path (i.e., 'sys.path') or updating an OS environment
variable.
E.g., 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:
$ export PATH=$PATH:~/.local/bin
TUF scripts can then be run from any directory.
$ quickstart.py --project ./project-files
$ signercli.py --genrsakey ./keystore
"""
from setuptools import setup
setup(
name='tuf',
version='0.7.5',
description='A secure updater framework for Python',
author='https://www.updateframework.com',
author_email='[email protected]',
url='https://www.updateframework.com',
install_requires=['pycrypto>=2.6'],
packages=[
'tuf',
'tuf.client',
'tuf.compatibility',
'tuf.interposition',
'tuf.pushtools',
'tuf.pushtools.transfer',
'tuf.repo',
'tuf.tests'
],
scripts=[
'tuf/repo/quickstart.py',
'tuf/pushtools/push.py',
'tuf/pushtools/receivetools/receive.py',
'tuf/repo/signercli.py'
]
)