This repository has been archived by the owner on Nov 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
67 lines (53 loc) · 2.01 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
#!/usr/bin/env python
from setuptools import setup, find_packages
import os
pkg_root = os.path.dirname(__file__)
# Error-handling here is to allow package to be built w/o README included
try: readme = open(os.path.join(pkg_root, 'README.md')).read()
except IOError: readme = ''
import lafs_backup.meta
# Workaround for a weird issue with absolute paths in cffi-0.4
cwd, ext_modules = os.getcwd(), ['CStrACL', 'CStrCaps']
for i,ext in enumerate(ext_modules):
ext = ext_modules[i] = getattr(
lafs_backup.meta, ext )().ffi.verifier.get_extension()
for i, src in enumerate(ext.sources):
if src.startswith(cwd):
ext.sources[i] = src[len(cwd):].lstrip(os.sep)
setup(
name = 'lafs-backup-tool',
version = '12.10.1',
author = 'Mike Kazantsev',
author_email = '[email protected]',
license = 'WTFPL',
keywords = 'backup encryption incremental'
' deduplication tahoe-lafs tahoe lafs rsync cloud raic free xz',
url = 'http://github.com/mk-fg/lafs-backup-tool',
description = 'Tool to securely push incremental'
' (think "rsync --link-dest") backups to tahoe-lafs.',
long_description = readme,
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'Environment :: No Input/Output (Daemon)',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: System Administrators',
'License :: OSI Approved',
'Operating System :: POSIX',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 2 :: Only',
'Topic :: Internet',
'Topic :: Security',
'Topic :: System :: Archiving :: Backup',
'Topic :: System :: Archiving :: Compression',
'Topic :: Utilities' ],
install_requires = ['Twisted', 'layered-yaml-attrdict-config', 'pyliblzma', 'cffi'],
packages = find_packages(),
include_package_data = True,
zip_safe = False,
ext_modules = ext_modules,
package_data = {'lafs_backup': ['core.yaml']},
entry_points = dict(console_scripts=[
'lafs-backup-tool = lafs_backup.core:main' ]) )