Skip to content

Commit

Permalink
Working meson.build.
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasBreuling committed Jul 30, 2024
1 parent 009564d commit d8a9e97
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 11 deletions.
9 changes: 9 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
project(
'scipy_dae',
version: '0.0.4',
meson_version: '>= 1.1.0',
)

py3 = import('python').find_installation()

subdir('scipy_dae')
33 changes: 24 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

[tool.setuptools.packages]
find = {} # Scanning implicit namespaces is active by default
build-backend = "mesonpy"
requires = ["meson-python>=0.15.0"]

[project]
name = "scipy_dae"
Expand All @@ -20,9 +17,24 @@ dependencies = [
"matplotlib>=3.4.3",
]
classifiers = [
"Programming Language :: Python :: 3",
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries",
"Topic :: Scientific/Engineering",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS",
]

[project.optional-dependencies]
Expand All @@ -32,5 +44,8 @@ dev = [
]

[project.urls]
Homepage = "https://github.com/JonasBreuling/scipy_dae"
Issues = "https://github.com/JonasBreuling/scipy_dae/issues"
homepage = "https://github.com/JonasBreuling/scipy_dae"
documentaton = "https://github.com/JonasBreuling/scipy_dae"
source = "https://github.com/JonasBreuling/scipy_dae"
download = "https://github.com/JonasBreuling/scipy_dae/releases"
tracker = "https://github.com/JonasBreuling/scipy_dae/issues"
8 changes: 6 additions & 2 deletions scipy_dae/integrate/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
from ._dae import solve_dae, consistent_initial_conditions
from ._dae import BDFDAE, RadauDAE
from ._dae import (
solve_dae,
consistent_initial_conditions,
BDFDAE,
RadauDAE,
)
10 changes: 10 additions & 0 deletions scipy_dae/integrate/_dae/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
py3.install_sources([
'__init__.py',
'base.py',
'bdf.py',
'common.py',
'dae.py',
'radau.py',
],
subdir: 'scipy_dae/integrate/_dae'
)
7 changes: 7 additions & 0 deletions scipy_dae/integrate/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
py3.install_sources([
'__init__.py',
],
subdir: 'scipy_dae/integrate'
)

subdir('_dae')
10 changes: 10 additions & 0 deletions scipy_dae/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
python_sources = [
'__init__.py',
]

py3.install_sources(
python_sources,
subdir: 'scipy_dae'
)

subdir('integrate')

0 comments on commit d8a9e97

Please sign in to comment.