1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
[project]
name = "pybgcode"
version = "0.2.0"
description = "Prusa Block & Binary G-code reader / writer / converter"
authors = [
{ name = "Enrico Turri" }, { name = "Tomas Meszaros" }
]
license = { file = "LICENSE" }
readme = "README.md"
classifiers = [
"Programming Language :: Python :: 3",
"LICENSE :: OSI APPROVED :: GNU AFFERO GENERAL PUBLIC LICENSE V3 OR LATER (AGPLV3+)",
"Operating System :: OS Independent",
]
requires-python = ">=3.7"
[project.urls]
"Homepage" = "https://github.com/prusa3d/libbgcode"
"Bug Tracker" = "https://github.com/prusa3d/libbgcode/issues"
[build-system]
requires = ["py-build-cmake~=0.1.8", "pytest"]
build-backend = "py_build_cmake.build"
[tool.py-build-cmake.module] # Where to find the Python module to package
directory = "pybgcode/"
[tool.py-build-cmake.sdist] # What to include in source distributions
include = [ "pybgcode/*", "src/*" , "deps/*", "deps/build.cmake", "cmake/*", "CMakeLists.txt", "CMakePresets.json"]
exclude = [".gitignore", ".git/", ".github/", "deps/build*", "build*", "CMakeLists.txt.user", "*.bak"]
[tool.py-build-cmake.cmake] # How to build the CMake project
source_path = "./pybgcode"
build_type = "Release"
config = ["Release"]
# generator = "Ninja"
options = { "PyBGCode_LINK_SYSTEM_LIBBGCODE" = "off" }
install_components = ["python_modules"]
build_args = ["--target", "build_and_test"]
# preset = "python-module"
# build_presets = ["python-module"]
# build_path = "build"
|