Skip to content
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

Update scikit-build branch #508

Open
wants to merge 6 commits into
base: scikit-build
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/check-sdist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,13 @@ jobs:
with:
python-version: '3.10'

- name: Install requirements
run:
python -m pip install build

- name: Build a source tarball
run:
python setup.py sdist
python -m build --sdist

- name: Test tarball
run: |
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/publish-sdist-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,13 @@ jobs:
with:
python-version: '3.10'

- name: Install Dependencies
run:
python -m pip install build

- name: Build a source tarball
run:
python setup.py sdist
python -m build --sdist

- name: Test tarball
run: |
Expand Down
2 changes: 1 addition & 1 deletion 3rdparty/HighFive
Submodule HighFive updated 134 files
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.2)
cmake_minimum_required(VERSION 3.15)
#allow using of HDF5_ROOT for building with a custom HDF5 version
cmake_policy(SET CMP0074 NEW)
project(MorphIO VERSION 2.0.0)
Expand Down Expand Up @@ -42,6 +42,9 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
if (EXTERNAL_HIGHFIVE)
find_package(HighFive REQUIRED)
endif()

set(PYBIND11_NEWPYTHON ON)

if (EXTERNAL_PYBIND11)
find_package(pybind11 REQUIRED CONFIG)
endif()
Expand Down
2 changes: 1 addition & 1 deletion binds/python/pybind11
Submodule pybind11 updated 178 files
60 changes: 27 additions & 33 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
[build-system]
requires = [
"scikit-build-core",
"setuptools_scm>=8",
"cmake>=3.14",
"ninja",
"pybind11",
"scikit-build-core>=0.10,<1",
# use h5py's hdf5 install on Windows so we don't have to redistribute hdf5
'h5py; platform_system == "Windows"'
]
build-backend = "scikit_build_core.build"

Expand All @@ -25,50 +23,46 @@ classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"License :: OSI Approved :: Apache Software License v2.0",
]
keywords = [
"computational neuroscience",
"morphology",
"neuron",
"neurolucida",
"neuromorphology",
]
dynamic = ["version"]
#dependencies = [
# "blueetl-core>=0.1.0",
#]

[tool.setuptools_scm]
#
# install_requires=install_requires,
# extras_require={
# 'docs': ['sphinx-bluebrain-theme'],
# },
# url='https://github.com/BlueBrain/MorphIO/',
# ext_modules=[CMakeExtension('morphio._morphio'),
# ],
# cmdclass={'build_ext': CMakeBuild,
# },
# packages=[],
# license="LGPLv3",
# zip_safe=False,
# use_scm_version=True,
# setup_requires=[
# 'setuptools_scm',
# ],
# python_requires=">=3.8",
#)
[project.optional-dependencies]
docs = ["sphinx-bluebrain-theme"]

[project.urls]
Homepage = "https://github.com/BlueBrain/MorphIO"
Repository = "https://github.com/BlueBrain/MorphIO.git"
Documentation = "https://morphio.readthedocs.io/"
Tracker = "https://github.com/BlueBrain/MorphIO/issues"

[tool.scikit-build]
cmake.targets = ["_morphio"]
build.targets = ["_morphio"]
metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
wheel.packages = [ 'morphio', 'morphio.mut', 'morphio.vasculature' ]
cmake.args = [
"-DHIGHFIVE_EXAMPLES=OFF",
"-DHIGHFIVE_UNIT_TESTS=OFF",
'-DMORPHIO_TESTS=OFF',
"-DMORPHIO_TESTS=OFF",
"-DMorphIO_CXX_WARNINGS=OFF",
"-GNinja",
]
#sdist.include = ["src/some_generated_file.txt"]
#sdist.exclude = [".github"]

[tool.setuptools_scm]
local_scheme = "no-local-version"

[tool.pytest.ini_options]
testpaths = ["tests"]

#'-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=' + extdir,
#'-DMORPHIO_VERSION_STRING=' + self.distribution.get_version(),
#'-DPYTHON_EXECUTABLE=' + sys.executable,
101 changes: 0 additions & 101 deletions setup.py

This file was deleted.

8 changes: 7 additions & 1 deletion tests/test_0_API.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,14 @@ def test_doc_exists():
morphio.mut.Section,
morphio.mut.Soma,
]
ignored_methods = {
"_pybind11_conduit_v1_"
}
for cls in classes:
public_methods = (method for method in dir(cls) if not method[:2] == '__')
public_methods = (
method for method in dir(cls)
if not (method.startswith("__") or method in ignored_methods)
)
for method in public_methods:
assert getattr(cls, method).__doc__, \
'Public method {} of class {} is not documented !'.format(method, cls)
Expand Down
Loading