|
| 1 | +[build-system] |
| 2 | +requires = [ |
| 3 | + "setuptools", |
| 4 | + "setuptools-scm", |
| 5 | +] |
| 6 | +build-backend = "setuptools.build_meta" |
| 7 | + |
| 8 | +[project] |
| 9 | +name = "python-ldap" |
| 10 | +license.text = "python-ldap" # Replace with 'license' once Python 3.8 is dropped |
| 11 | +dynamic = ["version"] |
| 12 | +description = "Python modules for implementing LDAP clients" |
| 13 | +authors = [ |
| 14 | + {name = "python-ldap project", email = "python-ldap@python.org"}, |
| 15 | +] |
| 16 | +readme = "README" |
| 17 | +requires-python = ">=3.6" |
| 18 | +keywords = ["ldap", "directory", "authentication"] |
| 19 | +classifiers = [ |
| 20 | + "Development Status :: 5 - Production/Stable", |
| 21 | + "Intended Audience :: Developers", |
| 22 | + "Intended Audience :: System Administrators", |
| 23 | + "Operating System :: OS Independent", |
| 24 | + "Operating System :: MacOS :: MacOS X", |
| 25 | + "Operating System :: Microsoft :: Windows", |
| 26 | + "Operating System :: POSIX", |
| 27 | + "Programming Language :: C", |
| 28 | + "Programming Language :: Python", |
| 29 | + "Programming Language :: Python :: 3", |
| 30 | + "Programming Language :: Python :: 3.6", |
| 31 | + "Programming Language :: Python :: 3.7", |
| 32 | + "Programming Language :: Python :: 3.8", |
| 33 | + "Programming Language :: Python :: 3.9", |
| 34 | + "Programming Language :: Python :: 3.10", |
| 35 | + "Programming Language :: Python :: 3.11", |
| 36 | + "Programming Language :: Python :: 3.12", |
| 37 | + "Programming Language :: Python :: 3.13", |
| 38 | + "Topic :: Database", |
| 39 | + "Topic :: Internet", |
| 40 | + "Topic :: Software Development :: Libraries :: Python Modules", |
| 41 | + "Topic :: System :: Systems Administration :: Authentication/Directory :: LDAP", |
| 42 | + "License :: OSI Approved :: Python Software Foundation License", |
| 43 | +] |
| 44 | +dependencies = [ |
| 45 | + "pyasn1 >= 0.3.7", |
| 46 | + "pyasn1_modules >= 0.1.5", |
| 47 | +] |
| 48 | + |
| 49 | +[project.urls] |
| 50 | +Homepage = "https://www.python-ldap.org/" |
| 51 | +Documentation = "https://python-ldap.readthedocs.io/" |
| 52 | +Repository = "https://github.com/python-ldap/python-ldap" |
| 53 | +Download = "https://pypi.org/project/python-ldap/" |
| 54 | +Changelog = "https://github.com/python-ldap/python-ldap/blob/main/CHANGES" |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | +[tool.setuptools] |
| 59 | +zip-safe = false |
| 60 | +include-package-data = true |
| 61 | +license-files = ["LICENCE", "LICENCE.MIT"] |
| 62 | +# Explicitly list all Python modules |
| 63 | +py-modules = ["ldapurl", "ldif"] |
| 64 | + |
| 65 | +[tool.setuptools.dynamic] |
| 66 | +version = {attr = "ldap.pkginfo.__version__"} |
| 67 | + |
| 68 | +[tool.setuptools.packages.find] |
| 69 | +where = ["Lib"] |
| 70 | + |
| 71 | +[tool.setuptools.package-dir] |
| 72 | +"" = "Lib" |
| 73 | + |
1 | 74 | [tool.isort] |
2 | | -line_length=88 |
3 | | -known_first_party=['ldap', '_ldap', 'ldapurl', 'ldif', 'slapdtest'] |
4 | | -sections=['FUTURE', 'STDLIB', 'THIRDPARTY', 'FIRSTPARTY', 'LOCALFOLDER'] |
| 75 | +line_length = 88 |
| 76 | +known_first_party = ["ldap", "_ldap", "ldapurl", "ldif", "slapdtest"] |
| 77 | +sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"] |
| 78 | + |
| 79 | +[tool.coverage.run] |
| 80 | +branch = true |
| 81 | +source = [ |
| 82 | + "ldap", |
| 83 | + "ldif", |
| 84 | + "ldapurl", |
| 85 | + "slapdtest", |
| 86 | +] |
| 87 | + |
| 88 | +[tool.coverage.paths] |
| 89 | +source = [ |
| 90 | + "Lib/", |
| 91 | + ".tox/*/lib/python*/site-packages/", |
| 92 | +] |
| 93 | + |
| 94 | +[tool.coverage.report] |
| 95 | +ignore_errors = false |
| 96 | +precision = 1 |
| 97 | +exclude_lines = [ |
| 98 | + "pragma: no cover", |
| 99 | + "raise NotImplementedError", |
| 100 | + "if 0:", |
| 101 | + "if __name__ == .__main__.:", |
| 102 | + "if PY2", |
| 103 | + "if not PY2", |
| 104 | +] |
| 105 | + |
| 106 | +[tool.coverage.html] |
| 107 | +directory = "build/htmlcov" |
| 108 | +title = "python-ldap coverage report" |
0 commit comments