-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
46 lines (43 loc) · 1.6 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
#!/usr/bin/env python
#from distutils.core import setup
from setuptools import setup
packages = {
'themis_core_package' : {
'name' : 'themis-core',
'version' : '0.1.4',
'author' : 'Sandro Mello',
'author_email' : '[email protected]',
'url' : 'https://github.com/sandromello/themis-py',
'description' : 'Core themis library',
'long_description' : 'Themis Core Tools is responsible for providing helper functions for themis',
'packages' : ['themis'],
'install_requires' : [
'netaddr', 'pyyaml', 'redis', 'numpy'
],
'package_dir' : {'themis' : 'src/themis'},
'scripts' : [ 'src/sbin/tmscli' ],
},
'themis_package' : {
'name' : 'themis',
'version' : '0.1.4',
'author' : 'Sandro Mello',
'author_email' : '[email protected]',
'url' : 'https://github.com/sandromello/themis-py',
'description' : 'Postfix milter behavior rate limiter',
'long_description' : 'Themis is a policy daemon to predict and control the rate of sending mails in Postfix. \
Is designed for large scale mail hosting environments, build on top of the python-milter API. \
The features was built not only for rate limiting but also to provide useful information about your mail environment.',
'install_requires' : [
'pymilter', 'pyspf'
],
'scripts' : ['src/themismilter.py'],
'data_files' : [
('/etc/themis', ['src/config/config.yaml']),
('/etc/init.d', ['src/init.d/themisd']),
('/var/log/themis', [])
]
}
}
core = 'themis_core_package'
tms = 'themis_package'
setup(**packages[core])