Skip to content

Commit

Permalink
install stubs as stub package
Browse files Browse the repository at this point in the history
There doesn't seem to be another way to make mypy find these.
  • Loading branch information
jvansanten committed Sep 19, 2023
1 parent c080055 commit ff78cf7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
python-version: "3.11"
- run: pip install numpy mypy
- run: sudo apt-get install libsuitesparse-dev libbtbb-dev liblapack-dev libcfitsio-dev libmetis-dev libgsl-dev
- run: cmake -DPython_EXECUTABLE=$(which python) . && make && sudo make install
- run: cmake -DPython_EXECUTABLE=$(which python) . && make pyphotospline && sudo make install
- run: mypy test/*.py
linux:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ print(pl.relative_to(d))"
INSTALL(TARGETS pyphotospline LIBRARY DESTINATION ${PYTHON_MODULE_DIR})
IF(${Python_VERSION} VERSION_GREATER_EQUAL "3.9")
MESSAGE("-- + typing stubs")
INSTALL(FILES typings/photospline.pyi DESTINATION ${PYTHON_MODULE_DIR})
INSTALL(FILES typings/photospline-stubs/__init__.pyi DESTINATION ${PYTHON_MODULE_DIR}/photospline-stubs)
ENDIF()
ELSEIF(NOT PYTHON_FOUND)
MESSAGE("-- Python not found, skipping build of python module")
Expand Down
File renamed without changes.

0 comments on commit ff78cf7

Please sign in to comment.