Create missing CLI tools

Actually create the ifcquery, ifcedit and ifcmcp executables on pip
install instead of relying on `python3 -m ifcquery` style usage
This commit is contained in:
Bruno Postle
2026-02-20 22:22:29 +00:00
parent 249c498112
commit 3ed2da23be
4 changed files with 17 additions and 2 deletions
+3
View File
@@ -17,6 +17,9 @@ classifiers = [
]
dependencies = ["ifcopenshell"]
[project.scripts]
ifcedit = "ifcedit.__main__:main"
[project.urls]
Homepage = "http://ifcopenshell.org"
Documentation = "https://docs.ifcopenshell.org"
+8 -2
View File
@@ -1,5 +1,11 @@
# ifc_cli/src/ifcmcp/ifcmcp/__main__.py
from ifcmcp.server import build_server
server = build_server()
server.run(transport="stdio")
def main():
server = build_server()
server.run(transport="stdio")
if __name__ == "__main__":
main()
+3
View File
@@ -19,6 +19,9 @@ dependencies = ["ifcopenshell", "ifcquery", "ifcedit"]
[project.optional-dependencies]
mcp = ["mcp"]
[project.scripts]
ifcmcp = "ifcmcp.__main__:main"
[project.urls]
Homepage = "http://ifcopenshell.org"
Documentation = "https://docs.ifcopenshell.org"
+3
View File
@@ -17,6 +17,9 @@ classifiers = [
]
dependencies = ["ifcopenshell"]
[project.scripts]
ifcquery = "ifcquery.__main__:main"
[project.urls]
Homepage = "http://ifcopenshell.org"
Documentation = "https://docs.ifcopenshell.org"