|
| 1 | +[build-system] |
| 2 | +requires = [ |
| 3 | + "setuptools>=61.0", |
| 4 | + "wheel", |
| 5 | + "setuptools-scm", |
| 6 | +] |
| 7 | +build-backend = "setuptools.build_meta" |
| 8 | + |
| 9 | +[project] |
| 10 | +name = "python-ldap" |
| 11 | +license.text = "python-ldap" # Replace with 'license' once Python 3.8 is dropped |
| 12 | +dynamic = ["version"] |
| 13 | +description = "Python modules for implementing LDAP clients" |
| 14 | +# TODO: Make sure we have the info displayed correctly |
| 15 | +# long_description = """python-ldap: |
| 16 | +# python-ldap provides an object-oriented API to access LDAP directory servers |
| 17 | +# from Python programs. Mainly it wraps the OpenLDAP 2.x libs for that purpose. |
| 18 | +# Additionally the package contains modules for other LDAP-related stuff |
| 19 | +# (e.g. processing LDIF, LDAPURLs, LDAPv3 schema, LDAPv3 extended operations |
| 20 | +# and controls, etc.). |
| 21 | +# """ |
| 22 | +authors = [ |
| 23 | + {name = "python-ldap project", email = "python-ldap@python.org"}, |
| 24 | +] |
| 25 | +readme = "README.rst" |
| 26 | +requires-python = ">=3.6" |
| 27 | +keywords = ["ldap", "directory", "authentication"] |
| 28 | +classifiers = [ |
| 29 | + "Development Status :: 5 - Production/Stable", |
| 30 | + "Intended Audience :: Developers", |
| 31 | + "Intended Audience :: System Administrators", |
| 32 | + "Operating System :: OS Independent", |
| 33 | + "Operating System :: MacOS :: MacOS X", |
| 34 | + "Operating System :: Microsoft :: Windows", |
| 35 | + "Operating System :: POSIX", |
| 36 | + "Programming Language :: C", |
| 37 | + "Programming Language :: Python", |
| 38 | + "Programming Language :: Python :: 3", |
| 39 | + "Programming Language :: Python :: 3.6", |
| 40 | + "Programming Language :: Python :: 3.7", |
| 41 | + "Programming Language :: Python :: 3.8", |
| 42 | + "Programming Language :: Python :: 3.9", |
| 43 | + "Programming Language :: Python :: 3.10", |
| 44 | + "Programming Language :: Python :: 3.11", |
| 45 | + "Programming Language :: Python :: 3.12", |
| 46 | + "Programming Language :: Python :: 3.13", |
| 47 | + "Topic :: Database", |
| 48 | + "Topic :: Internet", |
| 49 | + "Topic :: Software Development :: Libraries :: Python Modules", |
| 50 | + "Topic :: System :: Systems Administration :: Authentication/Directory :: LDAP", |
| 51 | + "License :: OSI Approved :: Python Software Foundation License", |
| 52 | +] |
| 53 | +dependencies = [ |
| 54 | + "pyasn1 >= 0.3.7", |
| 55 | + "pyasn1_modules >= 0.1.5", |
| 56 | +] |
| 57 | + |
| 58 | +[project.urls] |
| 59 | +Homepage = "https://www.python-ldap.org/" |
| 60 | +Documentation = "https://python-ldap.readthedocs.io/" |
| 61 | +Repository = "https://github.com/python-ldap/python-ldap" |
| 62 | +Download = "https://pypi.org/project/python-ldap/" |
| 63 | +Changelog = "https://github.com/python-ldap/python-ldap/blob/main/CHANGES" |
| 64 | + |
| 65 | +[project.optional-dependencies] |
| 66 | +dev = [ |
| 67 | + "tox", |
| 68 | + "pytest", |
| 69 | + "coverage", |
| 70 | + "black", |
| 71 | + "isort", |
| 72 | +] |
| 73 | +doc = [ |
| 74 | + "docutils", |
| 75 | + "markdown", |
| 76 | + "sphinx", |
| 77 | + "sphinxcontrib-spelling", |
| 78 | +] |
| 79 | + |
| 80 | +[tool.setuptools] |
| 81 | +zip-safe = false |
| 82 | +include-package-data = true |
| 83 | +license-files = ["LICENCE", "LICENCE.MIT"] |
| 84 | + |
| 85 | +[tool.setuptools.dynamic] |
| 86 | +version = {attr = "ldap.pkginfo.__version__"} |
| 87 | + |
| 88 | +[tool.setuptools.packages.find] |
| 89 | +where = ["Lib"] |
| 90 | + |
| 91 | +[tool.setuptools.package-dir] |
| 92 | +"" = "Lib" |
| 93 | + |
| 94 | +[tool.black] |
| 95 | +line-length = 88 |
| 96 | +target-version = ['py36', 'py37', 'py38', 'py39', 'py310', 'py311', 'py312'] |
| 97 | +extend-exclude = ''' |
| 98 | +/( |
| 99 | + \.eggs |
| 100 | + | \.git |
| 101 | + | \.hg |
| 102 | + | \.mypy_cache |
| 103 | + | \.tox |
| 104 | + | \.venv |
| 105 | + | _build |
| 106 | + | buck-out |
| 107 | + | build |
| 108 | + | dist |
| 109 | + | Modules |
| 110 | +)/ |
| 111 | +''' |
| 112 | + |
1 | 113 | [tool.isort] |
2 | | -line_length=88 |
3 | | -known_first_party=['ldap', '_ldap', 'ldapurl', 'ldif', 'slapdtest'] |
4 | | -sections=['FUTURE', 'STDLIB', 'THIRDPARTY', 'FIRSTPARTY', 'LOCALFOLDER'] |
| 114 | +profile = "black" |
| 115 | +line_length = 88 |
| 116 | +known_first_party = ["ldap", "_ldap", "ldapurl", "ldif", "slapdtest"] |
| 117 | +sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"] |
| 118 | +skip_glob = ["Modules/*"] |
| 119 | + |
| 120 | +[tool.pytest.ini_options] |
| 121 | +testpaths = ["Tests"] |
| 122 | +python_files = ["t_*.py"] |
| 123 | +filterwarnings = [ |
| 124 | + "error", |
| 125 | + "ignore::ldap.LDAPBytesWarning", |
| 126 | +] |
| 127 | + |
| 128 | +[tool.coverage.run] |
| 129 | +branch = true |
| 130 | +source = [ |
| 131 | + "ldap", |
| 132 | + "ldif", |
| 133 | + "ldapurl", |
| 134 | + "slapdtest", |
| 135 | +] |
| 136 | + |
| 137 | +[tool.coverage.paths] |
| 138 | +source = [ |
| 139 | + "Lib/", |
| 140 | + ".tox/*/lib/python*/site-packages/", |
| 141 | +] |
| 142 | + |
| 143 | +[tool.coverage.report] |
| 144 | +ignore_errors = false |
| 145 | +precision = 1 |
| 146 | +exclude_lines = [ |
| 147 | + "pragma: no cover", |
| 148 | + "raise NotImplementedError", |
| 149 | + "if 0:", |
| 150 | + "if __name__ == .__main__.:", |
| 151 | + "if PY2", |
| 152 | + "if not PY2", |
| 153 | +] |
| 154 | + |
| 155 | +[tool.coverage.html] |
| 156 | +directory = "build/htmlcov" |
| 157 | +title = "python-ldap coverage report" |
0 commit comments