-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·112 lines (89 loc) · 3.46 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
'''
Created on 17 janv. 2018
@author: Clement Warneys <[email protected]>
'''
from __future__ import print_function
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
import io
import codecs
import os
import sys
import lazydog
here = os.path.abspath(os.path.dirname(__file__))
def read(*filenames, **kwargs):
encoding = kwargs.get('encoding', 'utf-8')
sep = kwargs.get('sep', '\n')
buf = []
for filename in filenames:
with io.open(filename, encoding=encoding) as f:
buf.append(f.read())
return sep.join(buf)
long_description = 'Python module monitoring high-level file system events ' + \
'like Creation, Modification, Move, Copy, and Deletion of ' + \
'files and folders. Lazydog tries to aggregate low-level ' + \
'events between them in order to emit a minimum number of ' + \
'high-level events (actualy one event per user action). ' + \
'Lazydog uses python Watchdog module to detect low-level events.'
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
errcode = pytest.main(self.test_args)
sys.exit(errcode)
setup(
name='lazydog',
version=lazydog.__version__,
url='http://github.com/warniiiz/lazydog/',
license='Apache Software License',
author='Clément Warneys',
author_email='[email protected]',
python_requires='>=3.5',
tests_require=['pytest'],
#===========================================================================
# # How to know current version on your system?
# import pip
# for x in pip.get_installed_distributions(): print(x)
#===========================================================================
install_requires=['watchdog>=0.8.3',
],
cmdclass={'test': PyTest},
description='User-level filesystem event observer',
long_description=long_description,
keywords='python watchdog inotify monitoring watcher observer file filesystem filesystem-events copy move create delete modify detect',
project_urls={
'Documentation': 'http://lazydog.readthedocs.io/',
'Source': 'https://github.com/warniiiz/lazydog',
},
packages=['lazydog', 'lazydog.revised_watchdog', 'lazydog.revised_watchdog.observers'],
include_package_data=True,
platforms='any',
test_suite='lazydog.test',
classifiers = [
'Programming Language :: Python :: 3',
'Development Status :: 4 - Beta',
'Natural Language :: English',
'Environment :: No Input/Output (Daemon)',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Intended Audience :: Information Technology',
'License :: OSI Approved :: Apache Software License',
'Operating System :: POSIX :: Linux',
'Topic :: System :: Monitoring',
'Topic :: System :: Filesystems',
'Topic :: Desktop Environment :: File Managers',
'Topic :: Security',
'Topic :: Software Development :: Libraries :: Python Modules'
],
entry_points = {
'console_scripts': ['lazydog=lazydog.lazydog:main'],
},
extras_require={
'testing': ['pytest'],
}
)