Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
60 lines (53 loc) · 1.82 KB
/
Copy pathpyproject.toml
File metadata and controls
60 lines (53 loc) · 1.82 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
[build-system]
requires = ["setuptools>=77"]
build-backend = "setuptools.build_meta"
[project]
name = "libxr"
version = "6.0.1"
description = "C++ code generator for LibXR-based embedded systems, supporting STM32 and modular robotics applications."
requires-python = ">=3.10"
authors = [
{name = "Xiao", email = "2592509183@qq.com"}
]
maintainers = [
{name = "Xiao", email = "2592509183@qq.com"}
]
readme = "README.md"
license = "Apache-2.0"
license-files = ["LICENSE"]
keywords = ["code generation", "embedded systems", "automation"]
dependencies = [
"pyyaml",
"packaging",
"ruamel.yaml>=0.17.21",
"xr-syntax==0.2.0",
"python-xlib; sys_platform == 'linux'"
]
[project.urls]
Homepage = "https://github.com/xrobot-org/libxr"
Documentation = "https://xrobot.work/"
Repository = "https://github.com/xrobot-org/LibXR_CppCodeGenerator"
"Bug Tracker" = "https://github.com/xrobot-org/LibXR_CppCodeGenerator/issues"
[project.scripts]
libxr = "libxr.cli:main"
# 旧命令,运行时提示对应的 libxr 子命令;7.0.0 删除。
# Old commands; they name the libxr subcommand when run and are removed in 7.0.0.
xr_parse = "libxr.legacy:xr_parse"
xr_parse_ioc = "libxr.legacy:xr_parse_ioc"
xr_gen_code = "libxr.legacy:xr_gen_code"
xr_gen_code_stm32 = "libxr.legacy:xr_gen_code_stm32"
xr_cubemx_cfg = "libxr.legacy:xr_cubemx_cfg"
xr_cubemx_generate = "libxr.legacy:xr_cubemx_generate"
xr_stm32_cmake = "libxr.legacy:xr_stm32_cmake"
xr_stm32_flash = "libxr.legacy:xr_stm32_flash"
xr_stm32_toolchain_switch = "libxr.legacy:xr_stm32_toolchain_switch"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
"libxr" = ["libxr_version.py", "STM32FlashLayoutRules.xml", "pin_data/*"]
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "SIM"]
ignore = ["E501"]