1
0
Fork 0
mirror of https://github.com/kakwa/ldapcherry synced 2025-07-03 03:47:35 +02:00

few tweaks for python3 support

* switch from script to entry_points in setup.py
* move the cli script in ldapcherry (to be used as a module)
* put the __main__ code in a dedicated function constituting the entry
point
* add a few python3 environments in travis file
This commit is contained in:
kakwa 2019-02-07 20:34:49 +01:00
parent 3d6e24eb73
commit c81429a870
3 changed files with 27 additions and 9 deletions

View file

@ -29,8 +29,12 @@ if sys.version_info[0] == 2:
'Mako'
],
elif sys.version_info[0] == 3:
print('unsupported version')
exit(1)
install_requires = [
'CherryPy >= 3.0.0',
'python-ldap',
'PyYAML',
'Mako'
],
else:
print('unsupported version')
exit(1)
@ -120,7 +124,9 @@ setup(
'ldapcherry.ppolicy'
],
data_files=resources_files,
scripts=['scripts/ldapcherryd'],
entry_points = {
'console_scripts': ['ldapcherryd = ldapcherry.cli:main']
},
url='https://github.com/kakwa/ldapcherry',
license=license,
description=small_description,