pathrs 0.2.4

C-friendly API to make path resolution safer on Linux.
Documentation
#!/usr/bin/python3
# SPDX-License-Identifier: MPL-2.0
#
# libpathrs: safe path resolution on Linux
# Copyright (C) 2019-2025 SUSE LLC
# Copyright (C) 2026 Aleksa Sarai <cyphar@cyphar.com>
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

[build-system]
requires = [
	"cffi>=1.10.0",
	"setuptools>=77.0.3",
	"toml>=0.10", # TODO: Remove this once we only support Python >= 3.11.
	"wheel",
]
build-backend = "setuptools.build_meta"

[project]
name = "pathrs"
# TODO: Figure out a way to keep this version up-to-date with Cargo.toml.
version = "0.2.4"
description = "Python bindings for libpathrs, a safe path resolution library for Linux."
readme = "README.md"
keywords = ["libpathrs", "pathrs"]
license = "MPL-2.0"
license-files = [ "COPYING" ]
authors = [
	{name = "Aleksa Sarai", email = "cyphar@cyphar.com"},
]
maintainers = [
	{name = "Aleksa Sarai", email = "cyphar@cyphar.com"},
]
classifiers = [
	"Topic :: Security",
	"Topic :: System :: Filesystems",
    "Intended Audience :: Developers",
    "Natural Language :: English",
    "Operating System :: POSIX :: Linux",
    "Programming Language :: Python",
    "Programming Language :: Python :: 3",
    "Topic :: Software Development :: Libraries :: Python Modules",
]

requires-python = ">= 3.9"
dependencies = [
	"cffi>=1.10.0",
	"typing_extensions>=4.0.0", # TODO: Remove this once we only support Python >= 3.11.
]

[project.urls]
Homepage = "https://github.com/cyphar/libpathrs"
Repository = "https://github.com/cyphar/libpathrs"
Documentation = "https://docs.rs/pathrs"
Changelog = "https://github.com/cyphar/libpathrs/blob/main/CHANGELOG.md"