ci: add unit test workflow and package setup for ldapsm

- Add GitHub Actions workflow to run make test
- Introduce pyproject.toml with python-ldap dependency and CLI entrypoint
- Add Makefile with install/test/clean targets
- Move tests to src-based package layout and fix imports
- Remove legacy requirements.yml

https://chatgpt.com/share/695d2615-d664-800f-b821-5705c631bfe8
This commit is contained in:
2026-01-06 16:11:04 +01:00
parent b9b6c22e89
commit 65663de7a7
16 changed files with 277 additions and 81 deletions

28
pyproject.toml Normal file
View File

@@ -0,0 +1,28 @@
[build-system]
requires = ["setuptools>=69", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "ldapsm"
version = "0.1.0"
description = "CLI tool to manage OpenLDAP schema snippets under cn=config"
readme = "README.md"
requires-python = ">=3.9"
license = { text = "MIT" }
authors = [
{ name = "Kevin Veen-Birkenbach" }
]
dependencies = [
"python-ldap>=3.4",
]
[project.scripts]
ldapsm = "ldapsm.__main__:main"
[tool.setuptools]
package-dir = { "" = "src" }
[tool.setuptools.packages.find]
where = ["src"]