diff --git a/Products/__init__.py b/Products/__init__.py new file mode 100644 index 0000000..f48ad10 --- /dev/null +++ b/Products/__init__.py @@ -0,0 +1,6 @@ +# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages +try: + __import__('pkg_resources').declare_namespace(__name__) +except ImportError: + from pkgutil import extend_path + __path__ = extend_path(__path__, __name__) diff --git a/README.txt b/README.txt new file mode 100644 index 0000000..22920f0 --- /dev/null +++ b/README.txt @@ -0,0 +1 @@ +(see Products/LDAPMultiPlugins/README.txt) diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..160114e --- /dev/null +++ b/setup.py @@ -0,0 +1,51 @@ +import os +from setuptools import setup +from setuptools import find_packages + +NAME = 'LDAPMultiPlugins' +here = os.path.abspath(os.path.dirname(__file__)) +package = os.path.join(here, 'Products', NAME) + +def _package_doc(name): + f = open(os.path.join(package, name)) + return f.read() + +VERSION = _package_doc('VERSION.txt').strip() + +_boundary = '\n' + ('-' * 60) + '\n' +README = _package_doc('README.txt') + _boundary + _package_doc('CHANGES.txt') + +setup(name='Products.%s' % NAME, + version=VERSION, + description='LDAP-backed plugins for the Zope2 PluggableAuthService', + long_description=README, + classifiers=[ + "Development Status :: 5 - Production/Stable", + "Framework :: Zope2", + "Intended Audience :: Developers", + "License :: OSI Approved :: Zope Public License", + "Programming Language :: Python", + "Topic :: Internet :: WWW/HTTP :: Site Management", + "Topic :: Software Development", + "Topic :: System :: Systems Administration :: Authentication/Directory :: LDAP", + ], + keywords='web application server zope zope2 ldap', + author="Jens Vagelpohl and contributors", + author_email="jens@dataflake.org", + url="http://www.dataflake.org/software/ldapmultiplugins", + license="ZPL 2.1 (http://www.zope.org/Resources/License/ZPL-2.1)", + packages=find_packages(), + include_package_data=True, + namespace_packages=['Products'], + zip_safe=False, + install_requires=[ + #"Zope >= 2.8", + "setuptools", + "Products.LDAPUserFolder >= 2.9", + ], + entry_points=""" + [zope2.initialize] + Products.LDAPMultiPlugins = Products.LDAPMultiPlugins:initialize + """, + ) +