Commit 0c9e106c authored by Boris Glimcher's avatar Boris Glimcher Committed by Jim Harris
Browse files

python: use new pyproject.toml

also adding metadata required for publishing

Hatch is a modern, extensible Python project manager
See https://hatch.pypa.io/latest/

readme is added in a separate patch due to debate
if using main readme.md or create new one in python folder

entry points will be added in later patch
https://packaging.python.org/en/latest/specifications/entry-points/



Change-Id: If3be3e72821fbd13d1c16924a6dd82a139bbb0fa
Signed-off-by: default avatarBoris Glimcher <Boris.Glimcher@emc.com>
Reviewed-on: https://review.spdk.io/c/spdk/spdk/+/25761


Reviewed-by: default avatarKonrad Sztyber <ksztyber@nvidia.com>
Reviewed-by: default avatarTomasz Zawadzki <tomasz@tzawadzki.com>
Tested-by: default avatarSPDK Automated Test System <spdkbot@gmail.com>
parent f747c98f
Loading
Loading
Loading
Loading

python/pyproject.toml

0 → 100644
+52 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (C) 2025 Dell Inc, or its subsidiaries.  All rights reserved.

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "spdk"
dynamic = ["version"]
description = "Python bindings for the Storage Performance Development Kit (SPDK)"
requires-python = ">=3.8"
license = { text = "BSD-3-Clause" }

authors = [
    { name = "SPDK Authors", email = "spdk@lists.linux.dev" }
]

keywords = ["spdk", "storage", "nvme", "performance", "bindings"]

classifiers = [
    "Development Status :: 5 - Production/Stable",
    "Intended Audience :: Developers",
    "License :: OSI Approved :: BSD License",
    "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 :: System :: Hardware",
    "Topic :: Software Development :: Libraries :: Python Modules"
]

dependencies = []

[project.urls]
"Homepage" = "https://spdk.io"
"Source" = "https://github.com/spdk/spdk"
"Bug Tracker" = "https://github.com/spdk/spdk/issues"

[project.optional-dependencies]
sma = [
    "grpcio",
    "protobuf"
]
cli = [
    "configshell_fb"
]

[tool.hatch.version]
path = "spdk/version.py"

python/setup.py

deleted100755 → 0
+0 −10
Original line number Diff line number Diff line
#!/usr/bin/env python3
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (C) 2023 Intel Corporation.  All rights reserved.

from distutils.core import setup
from setuptools import find_packages
from spdk import __version__


setup(name='spdk', version=__version__, packages=find_packages())