-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·61 lines (51 loc) · 1.38 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
#!/usr/bin/env python
# check Python's version
import sys
if sys.version < '2.4':
sys.stderr.write('This module requires at least Python 2.5\n')
sys.exit(1)
# import statements
import platform
from setuptools import setup, Command
# debug
DISTUTILS_DEBUG = False
# check linux platform
if not platform.system().startswith('Linux'):
sys.stderr.write("inotify is not available under %s\n" % platform)
sys.exit(1)
#class test(Command):
# description = 'run tests'
# user_options = []
#
# def initialize_options(self):
# pass
#
# def finalize_options(self):
# pass
#
# def run(self):
# from tests.run_all import main
# main()
classif = [
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: GPL v3',
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries',
'Topic :: System :: Monitoring'
]
setup(
# cmdclass = {'test': test},
name = 'treewatcher',
version = '0.0.1',
description = 'Linux filesystem directory monitoring',
author = 'Jean-Baptiste Denis',
author_email = '[email protected]',
license = 'GPL v3',
platforms = 'Linux',
classifiers = classif,
packages = ['treewatcher'],
install_requires = ["inotifyx>=0.1.1"]
)