Skip to content

Commit

Permalink
Revert to package autodiscovery
Browse files Browse the repository at this point in the history
  • Loading branch information
jbarlow83 committed Jul 15, 2023
1 parent 311941c commit 5f19a92
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
10 changes: 2 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,18 +85,12 @@ test = [
"tomli;python_version < '3.11'",
]

[tool.setuptools]

[tool.setuptools.package-dir]
pikepdf = "src/pikepdf"
"pikepdf._core" = "src/core"
[tool.setuptools.packages.find]
where = ["src"]

[tool.setuptools.package-data]
pikepdf = ["*.dll", "py.typed"]

[tool.setuptools.exclude-package-data]
"pikepdf" = ["*.cpp", "*.h"]

[tool.black]
line-length = 88
target-version = ["py38", "py39", "py310", "py311"]
Expand Down
4 changes: 2 additions & 2 deletions src/core/pikepdf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ PYBIND11_MODULE(_core, m)
// py::options options;
// options.disable_function_signatures();

m.doc() = "pikepdf provides a Pythonic interface for QPDF";

m.doc() = "pikepdf provides a Pythonic interface for QPDF";
m.attr("__name__") = "pikepdf._core";
m.def("qpdf_version", &QPDF::QPDFVersion, "Get libqpdf version");

// -- Core objects --
Expand Down

0 comments on commit 5f19a92

Please sign in to comment.