-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
318 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
.PHONY: install mypy lint pytest test fmt fmtcheck | ||
|
||
install: | ||
poetry install --with=dev | ||
|
||
mypy: | ||
poetry run mypy splipy | ||
|
||
lint: | ||
poetry run ruff splipy | ||
|
||
pytest: | ||
poetry run pytest --benchmark-skip | ||
|
||
bench: | ||
poetry run pytest --benchmark-only | ||
|
||
fmt: | ||
poetry run black splipy | ||
poetry run isort splipy | ||
|
||
fmtcheck: | ||
poetry run black splipy --check | ||
poetry run isort splipy --check | ||
|
||
test: mypy pytest lint fmtcheck |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import os | ||
import sys | ||
|
||
from setuptools import Extension | ||
from Cython.Build import cythonize | ||
import numpy as np | ||
|
||
extensions = cythonize( | ||
Extension( | ||
"splipy.basis_eval", | ||
["splipy/basis_eval.pyx"], | ||
include_dirs=[np.get_include()], | ||
) | ||
) | ||
|
||
def build(setup_kwargs): | ||
setup_kwargs.update({ | ||
"ext_modules": extensions, | ||
}) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,66 @@ | ||
[tool.poetry] | ||
name = "splipy" | ||
version = "1.7.4" | ||
description = "Spline modelling library for Python" | ||
authors = [ | ||
"Kjetil Andre Johannessen <kjetijo@gmail.com>", | ||
"Eivind Fonn <evfonn@gmail.com>", | ||
] | ||
maintainers = [ | ||
"Kjetil Andre Johannessen <kjetijo@gmail.com>", | ||
"Eivind Fonn <evfonn@gmail.com>", | ||
] | ||
license = "GLP-3.0-only" | ||
readme = "README.rst" | ||
homepage = "https://github.com/SINTEF/Splipy" | ||
repository = "https://github.com/SINTEF/Splipy" | ||
documentation = "https://sintef.github.io/Splipy/" | ||
keywords = [ | ||
"Bspline", | ||
"Splines", | ||
"NURBS", | ||
"Curve", | ||
"Surface", | ||
"Volume", | ||
"Interpolation", | ||
"Approximation", | ||
"Fit", | ||
"Integration", | ||
"Differentiation", | ||
] | ||
classifiers = [ | ||
"Development Status :: 5 - Beta", | ||
"Topic :: Multimedia :: Graphics :: 3D Modeling", | ||
"Topic :: Scientific/Engineering :: Mathematics", | ||
"Intended Audience :: Science/Research", | ||
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)", | ||
"Programming Language :: Python :: 3", | ||
] | ||
include = [ | ||
"splipy/templates/*.bpt", | ||
{ path = "splipy/*.so", format="wheel" }, | ||
] | ||
|
||
[tool.poetry.build] | ||
script = "build_ext.py" | ||
generate-setup-file = true | ||
|
||
[tool.poetry.dependencies] | ||
python = ">=3.8,<3.12" | ||
cython = "^0.29.34" | ||
numpy = "^1.24.2" | ||
scipy = "^1.10.1" | ||
|
||
[tool.poetry.extras] | ||
FiniteElement = ["nutils"] | ||
Images = ["opencv-python"] | ||
Rhino = ["rhino3dm"] | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
mypy = "^1.2.0" | ||
pytest = "^7.3.0" | ||
pytest-benchmark = "^4.0.0" | ||
|
||
[build-system] | ||
requires = ["poetry-core", "cython", "numpy", "wheel", "setuptools"] | ||
build-backend = "poetry.core.masonry.api" |
File renamed without changes.