-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathsetup.py
More file actions
106 lines (96 loc) · 4.77 KB
/
setup.py
File metadata and controls
106 lines (96 loc) · 4.77 KB
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#td /usr/bin/python3
# vim: set et sw=4 sts=4 fileencoding=utf-8:
#
# Tardis: A Backup System
# Copyright 2013-2019, Eric Koldinger, All Rights Reserved.
# kolding@washington.edu
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the copyright holder nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
import os, sys
import subprocess
from setuptools import setup, find_packages
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)), 'src'))
import Tardis
longdesc = '''
This is a system for performing backups, supporting incremental, delta backups, with option encryption, and
recovery of data via either a filesystem based interface, or via explicit tools. Please pardon any Dr. Who
jokes.
'''
buildVersion = subprocess.check_output(['git', 'describe', '--dirty', '--tags', '--always']).strip()
versionfile = "src/Tardis/tardisversion"
print(buildVersion.decode('utf8'), file=open(versionfile, "w"))
version = Tardis.__version__
add_pkgs = Tardis.check_features()
setup( name = 'Tardis-Backup',
version = version,
description = "Tardis Backup System",
long_description = longdesc,
python_requires = ">=3.13",
packages = find_packages('src', exclude=['ez_setup', 'examples', 'tests']),
author = "Eric Koldinger",
author_email = "kolding@washington.edu",
url = "https://github.com/koldinger/Tardis",
license = "BSD",
platforms = "Posix; MacOS X",
include_package_data = True,
zip_safe = False,
install_requires = ['msgpack>=1.0', 'daemonize', 'parsedatetime', 'pycryptodomex',
'termcolor', 'python-snappy', 'zstandard', 'srp',
'pid', 'python-magic', 'colorlog', 'reportlab',
'qrcode', 'fusepy', 'requests_cache','requests',
'flask', 'tornado', 'zstandard', 'lz4',
'StrEnum']
+ add_pkgs,
package_dir = {'': 'src'},
package_data = {
'Tardis': [ 'tardisversion', 'schema/tardis.sql' ],
},
entry_points = {
'console_scripts' : [
'tardis = Tardis.Client:main',
'tardisd = Tardis.Daemon:main',
'tardisfs = Tardis.TardisFS:main',
'regenerate = Tardis.Regenerate:main',
'lstardis = Tardis.List:main',
'sonic = Tardis.Sonic:main',
'tardiff = Tardis.Diff:main',
'tardisremote = Tardis.HttpInterface:tornado',
],
},
classifiers = [
'License :: OSI Approved :: BSD License',
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Topic :: System :: Archiving :: Backup',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Operating System :: MacOS :: MacOS X',
'Operating System :: POSIX',
'Operating System :: POSIX :: Linux',
'System::Archiving::Backup',
]
)
os.remove(versionfile)