-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use scikit-build-core and pyproject.toml for top-level install (#673)
* Try out scikit-build-core * Install checking packages * Disable mypy * Config update * pytest-xdist * dependencies * In right place... * Install optional dependencies * Add scipy * Sort out package name * Tweak * More tweaking * Add sphinx * Add markdown * yaml * pyyaml * pylit * Revert python folder * Path with SKbuild * Use ci tag for Mac build * Use CI tag * remove ffcx test - should be in ffcx not here * Break up optional dependencies * Copy over from setup.py * Try re-enabling mypy * Remove macos-11, C++ compiler too old. * Bump cibuildwheel action and use build to create sdist. * Push. * Make Python 3.8 the minimum * Typo. * Try buildjet for arm64 linux. * Revert "Try buildjet for arm64 linux." This reverts commit f938ae6. --------- Co-authored-by: Jack S. Hale <[email protected]>
- Loading branch information
1 parent
b082121
commit 0fc130f
Showing
6 changed files
with
44 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,35 @@ | ||
[project] | ||
name = "fenics-basix" | ||
version = "0.7.0.dev0" | ||
description = "Basix Python interface" | ||
readme = "README.md" | ||
requires-python = ">=3.8.0" | ||
license = {file = "LICENSE"} | ||
authors = [{email="[email protected]"}, {name="FEniCS Project"}] | ||
packages = ["basix"] | ||
dependencies = ["numpy>=1.21"] | ||
|
||
[project.optional-dependencies] | ||
docs = ["markdown", "pylit3", "pyyaml", "sphinx==5.0.2", "sphinx_rtd_theme"] | ||
lint = ["flake8", "pydocstyle"] | ||
optional = ["numba", "fenics-ufl@git+https://github.com/fenics/ufl"] | ||
test = ["pytest", "sympy", "scipy", "matplotlib", "fenics-basix[optional]"] | ||
ci = ["mypy", "pytest-xdist", "fenics-basix[docs]", "fenics-basix[lint]", | ||
"fenics-basix[optional]", "fenics-basix[test]"] | ||
|
||
[tool.pytest.ini_options] | ||
testpaths = ["test"] | ||
# addopts = "-n auto --durations 20" | ||
|
||
[build-system] | ||
requires = ["setuptools>=42", "wheel", "pybind11>=2.9.1", "cmake>=3.16", "scikit-build>=0.12"] | ||
requires = ["pybind11>=2.9.1", "cmake>=3.19", "scikit-build-core"] | ||
build-backend = "scikit_build_core.build" | ||
|
||
build-backend = "setuptools.build_meta" | ||
[tool.scikit-build] | ||
wheel.packages = ["python/basix"] | ||
|
||
[tool.cibuildwheel] | ||
build = ["cp{37,38,39}-manylinux_x86_64", "cp{37,38,39}-manylinux_aarch64", "cp{37,38,39}-macosx_x86_64", "cp{38,39}-macosx_arm64"] | ||
build = ["cp{38,39,310}-manylinux_x86_64", "cp{38,39,310}-manylinux_aarch64", "cp{38,39,310}-macosx_x86_64", "cp{38,39,310}-macosx_arm64"] | ||
|
||
test-command = [ | ||
"cmake -G Ninja -DPython3_EXECUTABLE=$(which python) -B build-dir -S {project}/test/test_cmake", | ||
|
@@ -16,7 +41,7 @@ test-requires = ["pytest-xdist"] | |
test-extras = ["test"] | ||
test-skip = "*-macosx_arm64 *-*linux_aarch64" | ||
|
||
manylinux-x86_64-image = "manylinux2014" | ||
manylinux-x86_64-image = "manylinux_2_28" | ||
|
||
[tool.cibuildwheel.linux] | ||
archs = ["x86_64", "aarch64"] # Forces arm64 build on x86_64 runner using emulation. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters