Skip to content

Release 2025#68

Merged
thomasarsouze merged 16 commits intomasterfrom
67-release-2025---structure-analysis
Nov 3, 2025
Merged

Release 2025#68
thomasarsouze merged 16 commits intomasterfrom
67-release-2025---structure-analysis

Conversation

@pradal
Copy link
Contributor

@pradal pradal commented Sep 8, 2025

Release Structure Analysis

  • Move from nosetests to pytest
  • Python packaging (pyproject.toml)
  • conda meta.yaml
  • Build on CI
  • Doc on RTFD
  • Notebook Tutorials

@pradal pradal linked an issue Sep 8, 2025 that may be closed by this pull request
10 tasks
Copy link
Collaborator

@jbdurand jbdurand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes approved

Copy link
Contributor Author

@pradal pradal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work.
Some comments to consider...

file(GLOB HEADERS "*.h" "*.hpp")
file(GLOB SOURCES "*.cpp")

add_library(vpstat_tool STATIC ${SOURCES} ${HEADERS})
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here, you need to build the lib as a shared library.
Replace static by dynamic

endif()

# Add include directories
target_include_directories(vpstat_tool PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to install the headers in $CONDA_PREFIX/include/stat_tool
And also the lib into $CONDA_PREFIX/lib

I am sure scikit_build_core define correctly the PREFIX or ORIGIN variable.

@@ -0,0 +1,21 @@
file(GLOB HEADERS "*.h")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here, the aim is to link with the lib vpstat_tool.
And to niclude the headers.

file(GLOB HEADERS "*.h")
file(GLOB SOURCES "*.cpp")

add_library(_stat_tool MODULE ${SOURCES} ${HEADERS})
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This library is a wrapper and need to stay with the Python code...

add_library(_stat_tool MODULE ${SOURCES} ${HEADERS})

target_include_directories(_stat_tool PRIVATE
${CMAKE_SOURCE_DIR}/src/cpp
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The best way is to rely not on the source dir but where the headers have been installed.
This is more robust and will be used in other libs that depend on stat_tool (like sequence_analysis)

@thomasarsouze thomasarsouze merged commit 100ad41 into master Nov 3, 2025
2 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Release 2025 - Structure Analysis

3 participants