1
1
[build-system ]
2
- requires = [" setuptools " , " wheel " ]
3
- build-backend = " setuptools.build_meta "
2
+ requires = [" hatchling " ]
3
+ build-backend = " hatchling.build "
4
4
5
5
[project ]
6
6
name = " pyrealsense2"
7
- authors = [
8
- {
name =
" Intel(R) RealSense(TM)" ,
email =
" [email protected] " },
9
- ]
10
7
dynamic = [" version" ]
11
8
description = " Python Wrapper for Intel Realsense SDK 2.0."
12
9
readme = {file = " README.rst" , content-type = " text/x-rst" , charset = " utf-8" }
10
+ authors = [
11
+ {
name =
" Intel(R) RealSense(TM)" ,
email =
" [email protected] " },
12
+ ]
13
13
license = {text = " Apache License, Version 2.0" }
14
-
14
+ requires-python = " >=3.9 "
15
15
classifiers = [
16
16
" Development Status :: 3 - Alpha" ,
17
17
" Environment :: Console" ,
@@ -35,26 +35,27 @@ classifiers = [
35
35
" Topic :: Software Development" ,
36
36
" Topic :: Software Development :: Libraries :: Application Frameworks"
37
37
]
38
- requires-python = " >=3.9"
38
+
39
+ [tool .hatch .version ]
40
+ path = " pyrealsense2/_version.py"
39
41
40
42
[project .urls ]
41
43
homepage = " https://github.com/IntelRealSense/librealsense"
42
44
43
- [tool .setuptools ]
44
- packages = {find = {exclude = [" third_party" , " docs" , " examples" ]}}
45
- py-modules = []
46
- include-package-data = true
47
-
48
45
[project .scripts ]
49
46
align-depth2color = " examples.align_depth2color:main"
50
47
export_ply_example = " examples.export_ply:main"
51
48
opencv_viewer_example = " examples.opencv_viewer:main"
52
49
python-rs400-advanced-mode-example = " examples.rs400_advanced_mode:main"
53
50
python-tutorial-1-depth = " examples.tutorial_1_depth:main"
54
51
55
- # specifies non-Python files to include in the pyrealsense2 package
56
- [tool .setuptools .package-data ]
57
- pyrealsense2 = [" *.so" , " *.pyd" , " *.dll" ]
52
+ [tool .hatch .build ]
53
+ artifacts = [
54
+ " pyrealsense2/*.so" ,
55
+ " pyrealsense2/*.pyd" ,
56
+ " pyrealsense2/*.dll"
57
+ ]
58
+ packages = [" pyrealsense2" ]
58
59
59
- [tool .setuptools . dynamic ]
60
- version = { attr = " pyrealsense2._version.__version__ " }
60
+ [tool .hatch . build . targets . wheel . hooks . custom ]
61
+ path = " hatch_build.py "
0 commit comments