|
1 | 1 | """ |
2 | | -setup.py - Setup package with the help Python's DistUtils |
| 2 | +setup.py - C extension module configuration for python-ldap |
3 | 3 |
|
4 | 4 | See https://www.python-ldap.org/ for details. |
| 5 | +This file handles only the C extension modules (_ldap) configuration, |
| 6 | +while pyproject.toml handles all project metadata, dependencies, and other settings. |
5 | 7 | """ |
6 | 8 |
|
7 | 9 | import sys,os |
@@ -54,55 +56,8 @@ class OpenLDAP2: |
54 | 56 | LDAP_CLASS.extra_link_args.append('-pg') |
55 | 57 | LDAP_CLASS.libs.append('gcov') |
56 | 58 |
|
57 | | -#-- Let distutils/setuptools do the rest |
58 | | -name = 'python-ldap' |
59 | | - |
| 59 | +#-- C extension modules configuration only |
60 | 60 | setup( |
61 | | - #-- Package description |
62 | | - name = name, |
63 | | - license=pkginfo.__license__, |
64 | | - version=pkginfo.__version__, |
65 | | - description = 'Python modules for implementing LDAP clients', |
66 | | - long_description = """python-ldap: |
67 | | - python-ldap provides an object-oriented API to access LDAP directory servers |
68 | | - from Python programs. Mainly it wraps the OpenLDAP 2.x libs for that purpose. |
69 | | - Additionally the package contains modules for other LDAP-related stuff |
70 | | - (e.g. processing LDIF, LDAPURLs, LDAPv3 schema, LDAPv3 extended operations |
71 | | - and controls, etc.). |
72 | | - """, |
73 | | - author = 'python-ldap project', |
74 | | - author_email = 'python-ldap@python.org', |
75 | | - url = 'https://www.python-ldap.org/', |
76 | | - download_url = 'https://pypi.org/project/python-ldap/', |
77 | | - classifiers = [ |
78 | | - 'Development Status :: 5 - Production/Stable', |
79 | | - 'Intended Audience :: Developers', |
80 | | - 'Intended Audience :: System Administrators', |
81 | | - 'Operating System :: OS Independent', |
82 | | - 'Operating System :: MacOS :: MacOS X', |
83 | | - 'Operating System :: Microsoft :: Windows', |
84 | | - 'Operating System :: POSIX', |
85 | | - 'Programming Language :: C', |
86 | | - |
87 | | - 'Programming Language :: Python', |
88 | | - 'Programming Language :: Python :: 3', |
89 | | - 'Programming Language :: Python :: 3.6', |
90 | | - 'Programming Language :: Python :: 3.7', |
91 | | - 'Programming Language :: Python :: 3.8', |
92 | | - 'Programming Language :: Python :: 3.9', |
93 | | - 'Programming Language :: Python :: 3.10', |
94 | | - 'Programming Language :: Python :: 3.11', |
95 | | - 'Programming Language :: Python :: 3.12', |
96 | | - 'Programming Language :: Python :: 3.13', |
97 | | - # Note: when updating Python versions, also change tox.ini and .github/workflows/* |
98 | | - |
99 | | - 'Topic :: Database', |
100 | | - 'Topic :: Internet', |
101 | | - 'Topic :: Software Development :: Libraries :: Python Modules', |
102 | | - 'Topic :: System :: Systems Administration :: Authentication/Directory :: LDAP', |
103 | | - 'License :: OSI Approved :: Python Software Foundation License', |
104 | | - ], |
105 | | - #-- C extension modules |
106 | 61 | ext_modules = [ |
107 | 62 | Extension( |
108 | 63 | '_ldap', |
@@ -145,28 +100,4 @@ class OpenLDAP2: |
145 | 100 | ] |
146 | 101 | ), |
147 | 102 | ], |
148 | | - #-- Python "stand alone" modules |
149 | | - py_modules = [ |
150 | | - 'ldapurl', |
151 | | - 'ldif', |
152 | | - |
153 | | - ], |
154 | | - packages = [ |
155 | | - 'ldap', |
156 | | - 'ldap.controls', |
157 | | - 'ldap.extop', |
158 | | - 'ldap.schema', |
159 | | - 'slapdtest', |
160 | | - 'slapdtest.certs', |
161 | | - ], |
162 | | - package_dir = {'': 'Lib',}, |
163 | | - data_files = LDAP_CLASS.extra_files, |
164 | | - include_package_data=True, |
165 | | - install_requires=[ |
166 | | - 'pyasn1 >= 0.3.7', |
167 | | - 'pyasn1_modules >= 0.1.5', |
168 | | - ], |
169 | | - zip_safe=False, |
170 | | - python_requires='>=3.6', |
171 | | - test_suite = 'Tests', |
172 | 103 | ) |
0 commit comments