|
1 | 1 | [build-system] |
2 | | -requires = ["poetry-core"] |
3 | | -build-backend = "poetry.core.masonry.api" |
4 | | - |
| 2 | +build-backend = "mesonpy" |
| 3 | +requires = [ |
| 4 | + "meson-python>=0.15.0", |
| 5 | + "Cython>=3.0.9", |
| 6 | + "numpy>=1.23.5", |
| 7 | +] |
5 | 8 |
|
6 | | -[tool.poetry] |
| 9 | +[project] |
7 | 10 | name = "numpy-financial" |
8 | 11 | version = "2.0.0" |
| 12 | +requires-python = ">=3.10" |
9 | 13 | description = "Simple financial functions" |
10 | 14 | license = "BSD-3-Clause" |
11 | 15 | authors = ["Travis E. Oliphant et al."] |
@@ -34,30 +38,41 @@ classifiers = [ |
34 | 38 | "Operating System :: Unix", |
35 | 39 | "Operating System :: MacOS", |
36 | 40 | ] |
37 | | -packages = [{include = "numpy_financial"}] |
38 | | - |
39 | | -[tool.poetry.dependencies] |
40 | | -python = "^3.10" |
41 | | -numpy = "^1.23" |
42 | | -numba = "^0.59.1" |
43 | | - |
44 | | -[tool.poetry.group.test.dependencies] |
45 | | -pytest = "^8.0" |
46 | | -hypothesis = {extras = ["numpy"], version = "^6.99.11"} |
47 | | -pytest-xdist = {extras = ["psutil"], version = "^3.5.0"} |
48 | | - |
49 | | - |
50 | | -[tool.poetry.group.docs.dependencies] |
51 | | -sphinx = "^7.0" |
52 | | -numpydoc = "^1.5" |
53 | | -pydata-sphinx-theme = "^0.15" |
54 | | -myst-parser = "^2.0.0" |
55 | | - |
56 | 41 |
|
| 42 | +[project.optional-dependencies] |
| 43 | +test = [ |
| 44 | + "pytest", |
| 45 | + "pytest-xdist", |
| 46 | + "hypothesis", |
| 47 | +] |
| 48 | +doc = [ |
| 49 | + "sphinx>=7.0", |
| 50 | + "numpydoc>=1.5", |
| 51 | + "pydata-sphinx-theme>=0.15", |
| 52 | + "myst-parser>=2.0.0", |
| 53 | +] |
| 54 | +dev = [ |
| 55 | + "ruff>=0.3.0", |
| 56 | + "asv>=0.6.0", |
| 57 | +] |
57 | 58 |
|
58 | | -[tool.poetry.group.lint.dependencies] |
59 | | -ruff = "^0.3" |
60 | 59 |
|
| 60 | +[tool.spin] |
| 61 | +package = 'numpy_financial' |
61 | 62 |
|
62 | | -[tool.poetry.group.bench.dependencies] |
63 | | -asv = "^0.6" |
| 63 | +[tool.spin.commands] |
| 64 | +"Build" = [ |
| 65 | + "spin.cmds.meson.build", |
| 66 | + "spin.cmds.meson.test", |
| 67 | + "spin.cmds.build.sdist", |
| 68 | + "spin.cmds.pip.install", |
| 69 | +] |
| 70 | +"Documentation" = [ |
| 71 | + "spin.cmds.meson.docs" |
| 72 | +] |
| 73 | +"Environments" = [ |
| 74 | + "spin.cmds.meson.shell", |
| 75 | + "spin.cmds.meson.ipython", |
| 76 | + "spin.cmds.meson.python", |
| 77 | + "spin.cmds.meson.run" |
| 78 | +] |
0 commit comments