File: pyproject.toml

package info (click to toggle)
libbgcode 0.0~git20251210.0773cea-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,264 kB
  • sloc: cpp: 3,712; python: 255; makefile: 6
file content (42 lines) | stat: -rw-r--r-- 1,461 bytes parent folder | download | duplicates (2)
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"