Skip to content

Commit 4c18921

Browse files
glimchbigaw
authored andcommitted
build: switch to new python meson backend
Fixes #976 Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
1 parent 4727ac4 commit 4c18921

File tree

2 files changed

+25
-11
lines changed

2 files changed

+25
-11
lines changed

.github/workflows/release-python.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ jobs:
2525
- name: Build sdist
2626
run: pipx run build --sdist
2727

28+
- name: Validate sdist
29+
run: pipx run twine check dist/*.tar.gz
30+
2831
- uses: actions/upload-artifact@v4
2932
with:
3033
path: dist/*.tar.gz

pyproject.toml

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,33 @@
11
# SPDX-License-Identifier: LGPL-2.1-or-later
22
[build-system]
3-
requires = ["mesonpep517", "wheel", "meson", "ninja"] # PEP 508 specifications.
4-
build-backend = "mesonpep517.buildapi"
3+
build-backend = 'mesonpy'
4+
requires = ['meson-python']
5+
6+
[project]
7+
name = "libnvme"
8+
dynamic = ["version"]
9+
description = "python bindings for libnvme"
10+
readme = "README.md"
11+
requires-python = ">=3.6"
12+
license = { text = "LGPL-2.1-or-later" }
13+
14+
authors = [
15+
{ name = "Hannes Reinecke", email = "hare@suse.de" }
16+
]
17+
18+
keywords = ["nvme", "storage", "bindings"]
519

6-
[tool.mesonpep517.metadata]
7-
author="Hannes Reinecke"
8-
author-email="hare@suse.de"
920
classifiers = [
1021
"Intended Audience :: Developers",
1122
"Development Status :: 5 - Production/Stable",
1223
"License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)",
1324
"Programming Language :: Python :: 3",
1425
"Topic :: Software Development :: Libraries :: Python Modules",
1526
]
16-
description="Provides library functions for accessing and managing nvme devices on a Linux system."
17-
description-file="README.md"
18-
home-page = "https://github.com/linux-nvme/libnvme"
19-
license="LGPL-2.1-or-later"
20-
requires-python=">=3.6"
21-
summary="python bindings for libnvme"
2227

28+
dependencies = []
29+
30+
[project.urls]
31+
"Homepage" = "https://github.com/linux-nvme/libnvme"
32+
"Source" = "https://github.com/linux-nvme/libnvme"
33+
"Bug Tracker" = "https://github.com/linux-nvme/libnvme/issues"

0 commit comments

Comments
 (0)