Skip to content

Commit f82fb8e

Browse files
egparedeshavogt
authored andcommitted
Export typings and fix minor style issue in python bindings (#1743)
1 parent 70bc563 commit f82fb8e

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.python_package/setup.cfg.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ python_requires = >=3.8
3131
*.hpp
3232
*.h
3333
*.cmake
34+
py.typed
3435

3536
[options.packages.find]
3637
where = src

.python_package/src/gridtools_cpp/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
import pathlib
1010

1111

12-
_file = pathlib.Path(__file__)
12+
_FILE = pathlib.Path(__file__)
1313

1414

1515
def get_cmake_dir() -> pathlib.Path:
16-
return _file.parent / "data" / "lib" / "cmake" / "GridTools"
16+
return _FILE.parent / "data" / "lib" / "cmake" / "GridTools"
1717

1818

1919
def get_include_dir() -> pathlib.Path:
20-
return _file.parent / "data" / "include"
20+
return _FILE.parent / "data" / "include"

.python_package/src/gridtools_cpp/py.typed

Whitespace-only changes.

0 commit comments

Comments
 (0)