-
Notifications
You must be signed in to change notification settings - Fork 6
358 python api #395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
358 python api #395
Conversation
Summary of included commits: 3591d1d Denis Jelovina 2025-10-24 Squash: Combined changes from 9f634c7..HEAD — merge all temp commit 9f634c7 Denis Jelovina 2025-10-22 chore(pyalp): remove vendored pybind11 and unused CMake; add cibuildwheel workflow and config 0f9840c Denis Jelovina 2025-10-22 pyalp packaging and CI: bundle prebuilt bindings, setup pinned pybind11, and add wheel smoke-test 1e4cd6e Denis Jelovina 2025-10-22 Remove deprecated Python bindings and related files a7c9900 Denis Jelovina 2025-10-22 Convert pybind11 to submodule pinned at 8d503e30be400ad431d3d140707803e87e75fad7 3b9e5b5 Petros Anastasiadis 2025-09-30 Removed numpy2alp older stuff - left .cpp ffr 1403a2a Petros Anastasiadis 2025-09-30 Added installation instructions for python part 95d51a8 Denis Jelovina 2025-06-02 Add doccumentation for test.py 58aae6a Denis Jelovina 2025-05-26 compile messages 6ba4c3e Denis Jelovina 2025-05-26 add submodule 03a00d4 Denis Jelovina 2025-05-26 disable pyalp by defualt a471cdd Denis Jelovina 2025-05-26 add pybind11 submodule 8a4ade9 Denis Jelovina 2025-05-26 refactor code add support for multiple types 68dea3d Denis Jelovina 2025-05-23 add conjugate gradient 427594b Denis Jelovina 2025-05-23 add numpy to c++ examples Diffstat: .github/workflows/pyalp-ci.yml | 169 +++++++++++++++++++++++++ .github/workflows/pyalp-publish.yml | 175 ++++++++++++++++++++++++++ .gitignore | 3 +- .gitmodules | 3 + CMakeLists.txt | 22 +++- cmake/CompileFlags.cmake | 20 ++- pyalp/CMakeLists.txt | 1 + pyalp/PINNED_PYBIND11 | 1 + pyalp/extern/pybind11 | 1 + pyalp/pyproject.toml | 30 +++++ pyalp/setup.py | 114 +++++++++++++++++ pyalp/src/CMakeLists.txt | 111 ++++++++++++++++ pyalp/src/conjugate_gradient.hpp | 109 ++++++++++++++++ pyalp/src/matrix_wrappers.hpp | 115 +++++++++++++++++ pyalp/src/numpy2alp.cpp | 57 +++++++++ pyalp/src/pyalp.cpp | 84 +++++++++++++ pyalp/src/pyalp.egg-info/PKG-INFO | 65 ++++++++++ pyalp/src/pyalp.egg-info/SOURCES.txt | 12 ++ pyalp/src/pyalp.egg-info/dependency_links.txt | 1 + pyalp/src/pyalp.egg-info/requires.txt | 1 + pyalp/src/pyalp.egg-info/top_level.txt | 1 + pyalp/src/pyalp/CMakeLists.txt | 16 +++ pyalp/src/pyalp/__init__.py | 41 ++++++ pyalp/src/pyalp/bindings.cpp | 56 +++++++++ pyalp/src/pyalp/your_module.py | 4 + pyalp/src/python2alp.cpp | 9 ++ pyalp/src/utils.hpp | 20 +++ pyalp/src/vector_wrappers.hpp | 65 ++++++++++ pyproject.toml | 4 + setup.py | 10 ++ tests/CMakeLists.txt | 4 + tests/python/CMakeLists.txt | 23 ++++ tests/python/numpy_array_print.py | 5 + tests/python/test.py | 65 ++++++++++ tools/make_wheel_from_so.py | 109 ++++++++++++++++ tools/smoke_test_pyalp.py | 66 ++++++++++ 36 files changed, 1589 insertions(+), 3 deletions(-)
- Bump version in pyproject.toml to 0.8.4 - Add Git metadata and README content handling in CMake for improved package metadata
…ce metadata in _metadata.py
…ate __init__.py to expose them for user access
…ts for backend modules
… handling in smoke test
…retry logic; bump version to 0.8.17 in pyproject.toml
…nce publishing steps
…ump version to 0.8.22 in pyproject.toml
…ump version to 0.8.23 in pyproject.toml
…e name and version, and bump version to 0.8.24 in pyproject.toml
…tic step in promote-to-pypi workflow
… in pyproject.toml; deprecate legacy workflow pyalp-publish.yml in favor of publish-to-testpypi.yml
…e installation; add numpy dependency in pyproject.toml
…ypi workflow to skip publish if no wheel assets are found
…ypi workflow to skip download if no release assets are found
…ypi workflow to handle missing release metadata
Update
|
…tion handling; bump version to 0.8.33
98304dd to
ccba46d
Compare
|
Isn't a more "natural" name |
I don't find any well established naming convention, ie. there is |
…le commit Consolidated pybind11 bindings and removed legacy duplicate source files; added a single shared binding implementation under pyalp. Packaging moved to top-level CMake with deterministic prebuilt discovery in setup.py and support for CMAKE_BUILD_DIR so wheels are built from the CMake artifacts (avoids needing pybind11 in isolated PEP517 build environment). Enabled module-local pybind11 registrations by default to allow importing multiple backend extension modules into the same interpreter safely; made it configurable via CMake option for cases that need cross-module sharing. Fixed an iterator instantiation issue in matrix_wrappers.hpp by iterating directly over M.cbegin()/M.cend(). Added an in-process smoke test test_bckds_inprocess.py to validate multiple-backend imports and object creation, and updated CI to install test wheels from TestPyPI with robust retry-and-verify logic. Updated developer docs and CI workflows to reflect the new packaging, testing, and build flows.
The last force push closed and made PR 358 deactivated, therefore I am creating the new one.
Done so far