Skip to content

Commit 1e7212e

Browse files
committed
BLD: switch to meson-python
1 parent 0e124bf commit 1e7212e

File tree

5 files changed

+47
-14
lines changed

5 files changed

+47
-14
lines changed

.gitattributes

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,15 @@
1+
# Excluding files from an sdist generated by meson-python
2+
#########################################################
3+
4+
# Note: when adding to this list, be aware that you need to commit your changes
5+
# before they take effect (can be confusing during testing)
6+
7+
.github/* export-ignore
8+
.git* export-ignore
9+
codecov.yml export-ignore
10+
pixi.lock export-ignore
11+
RELEASING.md export-ignore
12+
renovate.json export-ignore
13+
114
# GitHub syntax highlighting
215
pixi.lock linguist-language=YAML linguist-generated=true

RELEASING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
1. Update the version in `src/array_api_extra/__init__.py`
1+
1. Update the version in `meson.build` and `src/array_api_extra/__init__.py`
22
2. Update the lockfile with `pixi update; pixi install`
33
3. Push your changes
44
4. Cut a release via the GitHub GUI
5-
5. Update the version to `{next micro version}.dev0`
5+
5. Update the version to `{next micro version}.dev0` in `meson.build` and `src/array_api_extra/__init__.py`
66
6. `pixi clean cache --pypi; pixi update; pixi install`
77
7. Push your changes
88
8. Merge the automated PR to conda-forge/array-api-extra-feedstock

meson.build

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
project(
2+
'array-api-extra',
3+
version: '0.10.0.dev0'
4+
)
5+
6+
sources = {
7+
'array_api_extra': files(
8+
'array_api_extra/src/array_api_extra/__init__.py',
9+
'array_api_extra/src/array_api_extra/_delegation.py',
10+
'array_api_extra/src/array_api_extra/testing.py',
11+
),
12+
'array_api_extra/_lib': files(
13+
'array_api_extra/src/array_api_extra/_lib/__init__.py',
14+
'array_api_extra/src/array_api_extra/_lib/_at.py',
15+
'array_api_extra/src/array_api_extra/_lib/_backends.py',
16+
'array_api_extra/src/array_api_extra/_lib/_funcs.py',
17+
'array_api_extra/src/array_api_extra/_lib/_lazy.py',
18+
'array_api_extra/src/array_api_extra/_lib/_testing.py',
19+
),
20+
'array_api_extra/_lib/_utils': files(
21+
'array_api_extra/src/array_api_extra/_lib/_utils/__init__.py',
22+
'array_api_extra/src/array_api_extra/_lib/_utils/_compat.py',
23+
'array_api_extra/src/array_api_extra/_lib/_utils/_compat.pyi',
24+
'array_api_extra/src/array_api_extra/_lib/_utils/_helpers.py',
25+
'array_api_extra/src/array_api_extra/_lib/_utils/_typing.py',
26+
'array_api_extra/src/array_api_extra/_lib/_utils/_typing.pyi',
27+
),
28+
}

pixi.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
2-
requires = ["hatchling"]
3-
build-backend = "hatchling.build"
2+
requires = ["meson-python"]
3+
build-backend = "mesonpy"
44

55
[project]
66
name = "array-api-extra"
@@ -32,15 +32,7 @@ Homepage = "https://github.com/data-apis/array-api-extra"
3232
"Bug Tracker" = "https://github.com/data-apis/array-api-extra/issues"
3333
Changelog = "https://github.com/data-apis/array-api-extra/releases"
3434

35-
# Hatch
36-
37-
[tool.hatch]
38-
version.path = "src/array_api_extra/__init__.py"
39-
40-
[tool.hatch.build.targets.sdist]
41-
exclude = ["codecov.yml", "pixi.lock", "RELEASING.md", "renovate.json"]
42-
43-
#  Pixi
35+
# Pixi
4436

4537
[tool.pixi.workspace]
4638
channels = ["https://prefix.dev/conda-forge"]

0 commit comments

Comments
 (0)