forked from Rudd-O/zfs-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·50 lines (46 loc) · 1.5 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
#!/usr/bin/env python
from setuptools import setup
import os
dir = os.path.dirname(__file__)
path_to_main_file = os.path.join(dir, "src/zfstools/__init__.py")
path_to_readme = os.path.join(dir, "README.md")
for line in open(path_to_main_file):
if line.startswith('__version__'):
version = line.split()[-1].strip("'").strip('"')
break
else:
raise ValueError, '"__version__" not found in "src/zfstools/__init__.py"'
readme = open(path_to_readme).read(-1)
classifiers = [
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Environment :: No Input/Output (Daemon)',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 2 :: Only',
'Programming Language :: Python :: 2.7',
'Topic :: System :: Filesystems',
'Topic :: Communications :: File Sharing',
'Topic :: System :: Archiving :: Backup',
'Topic :: System :: Archiving :: Mirroring',
'Topic :: Utilities',
]
setup(
name='zfs-tools',
version=version,
description='ZFS synchronization and snapshotting tools',
long_description = readme,
author='Manuel Amador (Rudd-O)',
author_email='rudd-o@rudd-o.com',
license="GPL",
url='http://github.com/Rudd-O/zfs-tools',
package_dir=dict([
("zfstools", "src/zfstools"),
]),
classifiers = classifiers,
packages=["zfstools"],
scripts=["bin/zreplicate", 'bin/zfs-shell', 'bin/zsnap'],
keywords="ZFS filesystems backup synchronization snapshot",
zip_safe=False,
)