Skip to content

Commit 7ed3b6e

Browse files
committed
Add: meson
1 parent bb5d440 commit 7ed3b6e

File tree

5 files changed

+69
-0
lines changed

5 files changed

+69
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
[binaries]
3+
python = '/private/var/folders/r8/3vljpqb55psbgb1ghc2qsn700000gn/T/build-env-hhn5zprt/bin/python'

example5_meson/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Pure python meson example
2+
3+
This
4+
`pip install meson-python`
5+
6+
This creates a build using meson
7+
`pip install --no-build-isolation .`

example5_meson/meson.build

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
project(
2+
'pure',
3+
version: '1.0.0',
4+
)
5+
6+
py_mod = import('python')
7+
py = py_mod.find_installation()
8+
9+
py.install_sources('pure.py')

example5_meson/pure.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
def foo():
2+
return 'bar'
3+
4+
"""
5+
More on this module here
6+
"""
7+
8+
9+
def add_values(num1, num2):
10+
"""A function that adds two integer values.
11+
12+
Parameters
13+
----------
14+
num1 : int
15+
mmm
16+
num2 : int
17+
mmm
18+
19+
Returns
20+
-------
21+
value : int
22+
num 1 and num 2 added together
23+
24+
"""
25+
return num1 + num2

example5_meson/pyproject.toml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
[build-system]
2+
build-backend = 'mesonpy'
3+
requires = ['meson-python']
4+
5+
6+
[project]
7+
name = "examplePy"
8+
version = "0.1.00"
9+
description = "The best package ever made."
10+
authors = [
11+
{name = "pyOpenSci", email = "[email protected]"},
12+
]
13+
classifiers = [
14+
'Development Status :: 4 - Beta',
15+
'Programming Language :: Python',
16+
]
17+
dependencies = [
18+
"requests",
19+
]
20+
requires-python = ">=3.8"
21+
readme = "README.md"
22+
license = {text = "MIT"}
23+
24+
[project.urls]
25+
homepage = 'https://github.com/examplePy'

0 commit comments

Comments
 (0)