Skip to content

Packaging botan3.py with pyproject.toml #5038

@arckoor

Description

@arckoor

Currently installation of the python binding is done by install.py via simply copy-pasting.
It would be nice to also offer a setup.py, or for something more "modern", a pyproject.toml that can be used by build systems like setuptools (and then be consumed by other upstream projects, like nixpkgs)
E.g. something very minimal but working

[project]
name = "botan3"
version = "3.8.1"
description = "Python bindings for Botan C++ crypto library"
license = "BSD-2-Clause"
requires-python = ">=3.2"

[build-system]
requires = [ "setuptools" ]
build-backend = "setuptools.build_meta"

[tool.setuptools]
py-modules = ["botan3"]

[tool.setuptools.package-dir]
"" = "src/python"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions