forked from twisted/ldaptor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·75 lines (65 loc) · 2.53 KB
/
setup.py
File metadata and controls
executable file
·75 lines (65 loc) · 2.53 KB
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
#!/usr/bin/python
import codecs
import os
import re
from setuptools import setup
here = os.path.abspath(os.path.dirname(__file__))
def read(*parts):
with codecs.open(os.path.join(here, *parts), 'r') as f:
return f.read()
def find_version(*file_paths):
version_file = read(*file_paths)
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
version_file, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
if __name__ == '__main__':
setup(name="ldaptor",
version=find_version("ldaptor", "__init__.py"),
description="A Pure-Python Twisted library for LDAP",
long_description=read('README.rst'),
author="Tommi Virtanen",
author_email="tv@eagain.net",
maintainer="Bret Curtis",
maintainer_email="psi29a@gmail.com",
url="https://github.com/twisted/ldaptor",
license="MIT",
install_requires=[
'passlib',
'Twisted[tls]',
'pyparsing',
'six >= 1.7',
'zope.interface',
],
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Development Status :: 5 - Production/Stable',
'Framework :: Twisted', 'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Systems Administration '
':: Authentication/Directory :: LDAP'
],
packages=["ldaptor",
"ldaptor.protocols",
"ldaptor.protocols.ldap",
"ldaptor.protocols.ldap.autofill",
"ldaptor.samba",
"ldaptor.test"],
scripts=["bin/ldaptor-ldap2dhcpconf",
"bin/ldaptor-ldap2maradns",
"bin/ldaptor-ldap2dnszones",
"bin/ldaptor-search",
"bin/ldaptor-namingcontexts",
"bin/ldaptor-passwd",
"bin/ldaptor-ldap2passwd",
"bin/ldaptor-getfreenumber",
"bin/ldaptor-ldap2pdns",
"bin/ldaptor-find-server",
"bin/ldaptor-rename",
"bin/ldaptor-fetchschema",
"bin/ldaptor-ldifdiff",
"bin/ldaptor-ldifpatch"]
)