Skip to content

Commit 68c35a1

Browse files
committed
Migration to Meson build system
1 parent 26ee866 commit 68c35a1

File tree

16 files changed

+115
-69
lines changed

16 files changed

+115
-69
lines changed

dustpylib/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@
99
from dustpylib import radtrans
1010
from dustpylib import substructures
1111

12+
from importlib import metadata as _md
1213

13-
__version__ = "0.5.0"
14+
__name__ = 'simframe'
15+
__version__ = _md.version('simframe')
1416

1517
__all__ = [
1618
"dynamics",
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
python_sources = [
2+
'__init__.py',
3+
'functions_backreaction.py',
4+
'setup_backreaction.py',
5+
]
6+
py3.install_sources(python_sources, subdir: 'dustpylib/dynamics/backreaction')

dustpylib/dynamics/meson.build

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
python_sources = ['__init__.py']
2+
py3.install_sources(python_sources, subdir: 'dustpylib/dynamics')
3+
4+
subdir('backreaction')

dustpylib/grid/meson.build

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
python_sources = ['__init__.py']
2+
py3.install_sources(python_sources, subdir: 'dustpylib/grid')
3+
4+
subdir('refinement')

dustpylib/grid/refinement/meson.build

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
python_sources = [
2+
'__init__.py',
3+
'refinement.py',
4+
]
5+
py3.install_sources(python_sources, subdir: 'dustpylib/grid/refinement')

dustpylib/meson.build

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
python_sources = ['__init__.py']
2+
py3.install_sources(python_sources, subdir: 'dustpylib')
3+
4+
subdir('dynamics')
5+
subdir('grid')
6+
subdir('planetesimals')
7+
subdir('radtrans')
8+
subdir('substructures')
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
python_sources = [
2+
'__init__.py',
3+
'formation.py',
4+
]
5+
py3.install_sources(python_sources, subdir: 'dustpylib/planetesimals/formation')

dustpylib/planetesimals/meson.build

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
python_sources = ['__init__.py']
2+
py3.install_sources(python_sources, subdir: 'dustpylib/planetesimals')
3+
4+
subdir('formation')

dustpylib/radtrans/meson.build

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
python_sources = ['__init__.py']
2+
py3.install_sources(python_sources, subdir: 'dustpylib/radtrans')
3+
4+
subdir('radmc3d')
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
python_sources = [
2+
'__init__.py',
3+
'radmc3d.py',
4+
]
5+
py3.install_sources(python_sources, subdir: 'dustpylib/radtrans/radmc3d')
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
python_sources = [
2+
'__init__.py',
3+
'gaps.py',
4+
]
5+
py3.install_sources(python_sources, subdir: 'dustpylib/substructures/gaps')

dustpylib/substructures/meson.build

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
python_sources = ['__init__.py']
2+
py3.install_sources(python_sources, subdir: 'dustpylib/substructures')
3+
4+
subdir('gaps')

meson.build

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
project('dustpylib', 'c')
2+
3+
py_mod = import('python')
4+
py3 = py_mod.find_installation(pure: true)
5+
py_dep = py3.dependency()
6+
7+
subdir('dustpylib')

pyproject.toml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
[build-system]
2+
build-backend = 'mesonpy'
3+
requires = ['meson-python', 'numpy']
4+
5+
[project]
6+
classifiers = [
7+
'Development Status :: 4 - Beta',
8+
'Environment :: Console',
9+
'Intended Audience :: Developers',
10+
'Intended Audience :: Science/Research',
11+
'License :: OSI Approved :: BSD License',
12+
'Natural Language :: English',
13+
'Operating System :: OS Independent',
14+
'Programming Language :: Python',
15+
'Programming Language :: Python :: 3 :: Only',
16+
'Topic :: Education',
17+
'Topic :: Scientific/Engineering',
18+
'Topic :: Scientific/Engineering :: Astronomy',
19+
'Topic :: Scientific/Engineering :: Physics',
20+
'Topic :: Scientific/Engineering :: Visualization',
21+
]
22+
name = 'dustpylib'
23+
version = '0.5.0'
24+
description = 'Library of DustPy extensions'
25+
readme = { file = 'README.md', content-type = 'text/markdown' }
26+
keywords = ['science', 'physics', 'mathematics', 'visualization']
27+
authors = [
28+
{ name = 'Sebastian Stammler', email = 'sebastian.stammler@gmail.com' },
29+
{ name = 'Til Birnstiel', email = 'til.birnstiel@lmu.de' },
30+
{ name = 'Matías Garaté' },
31+
]
32+
maintainers = [
33+
{ name = 'Sebastian Stammler', email = 'sebastian.stammler@gmail.com' },
34+
{ name = 'Tilman Birnstiel', email = 'til.birnstiel@lmu.de' },
35+
]
36+
license = { file = 'LICENSE' }
37+
dependencies = [
38+
'astropy',
39+
'dsharp_opac',
40+
'dustpy',
41+
'matplotlib',
42+
'numpy',
43+
'scipy',
44+
'simframe',
45+
]
46+
47+
[project.urls]
48+
Repository = 'https://github.com/stammler/dustpylib/'
49+
Documentation = 'https://dustpylib.readthedocs.io/'

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ dustpy
44
matplotlib
55
numpy
66
scipy
7-
simframe
7+
simframe
8+
.

setup.py

Lines changed: 0 additions & 67 deletions
This file was deleted.

0 commit comments

Comments
 (0)