Skip to content

Commit

Permalink
add stub file generation and installation
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheng Peng authored and strasdat committed Sep 25, 2023
1 parent 1d12c8c commit 1108cb9
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
9 changes: 9 additions & 0 deletions generate_stubs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import subprocess

subprocess.run("mkdir -p sophus_pybind-stubs/sophus_pybind", shell=True, check=True)

subprocess.run(
"pybind11-stubgen sophus_pybind -o sophus_pybind-stubs/sophus_pybind",
shell=True,
check=True,
)
14 changes: 14 additions & 0 deletions sophus_pybind-stubs/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

[project]
name = "sophus-pybind-stubs"
version = "1.22.10"
description = "Stubs for sophus-pybind"

[tool.setuptools.packages.find]
where = ["./"]

[tool.setuptools.package-data]
"*" = ["*.pyi"]

0 comments on commit 1108cb9

Please sign in to comment.