-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathpyproject-pypi.toml.j2
More file actions
155 lines (147 loc) · 5.26 KB
/
pyproject-pypi.toml.j2
File metadata and controls
155 lines (147 loc) · 5.26 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
# (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.
[build-system]
requires = ["scikit-build-core", "pybind11", "setuptools-scm"]
build-backend = "scikit_build_core.build"
[project]
name = "pymomentum-{{ variant }}"
dynamic = ["version"]
description = "A library providing foundational algorithms for human kinematic motion and numerical optimization solvers to apply human motion in various applications ({{ description_suffix }})"
readme = "README.md"
requires-python = ">={{ python_version_min }},<{{ python_version_max }}"
authors = [
{ name = "Meta Reality Labs Research", email = "jeongseok@meta.com" },
]
license = { text = "MIT" }
keywords = [
"kinematics",
"motion",
"optimization",
"human-motion",
"inverse-kinematics",
"forward-kinematics",
"body-tracking",
"motion-capture",
"character-animation",
"robotics",
{% if variant == "gpu" %}
"gpu",
"cuda",
{% else %}
"cpu",
{% endif %}
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
{% if variant == "gpu" %}
"Operating System :: POSIX :: Linux",
{% else %}
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
{% endif %}
"Programming Language :: C++",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"numpy>=1.20.0",
"scipy>=1.7.0",
# PyTorch version constraints - platform and Python version specific
# Linux: Support latest PyTorch with CUDA
# macOS: Limited to older PyTorch versions (CPU only)
{% if variant == "gpu" %}
# GPU package only for Linux
"torch>={{ torch_min_py312 }},<{{ torch_max_py312 }}; platform_system == 'Linux' and python_version == '3.12'",
"torch>={{ torch_min_py313 }},<{{ torch_max_py313 }}; platform_system == 'Linux' and python_version == '3.13'",
{% else %}
# CPU package for Linux and macOS ARM64 (Apple Silicon only - Intel Macs not supported)
# Linux uses latest PyTorch
"torch>={{ torch_min_py312 }},<{{ torch_max_py312 }}; platform_system == 'Linux' and python_version == '3.12'",
"torch>={{ torch_min_py313 }},<{{ torch_max_py313 }}; platform_system == 'Linux' and python_version == '3.13'",
# macOS ARM64 (Apple Silicon) - PyTorch 2.8+ available
"torch>={{ torch_min_py312_macos }},<{{ torch_max_py312_macos }}; platform_system == 'Darwin' and platform_machine == 'arm64' and python_version == '3.12'",
"torch>={{ torch_min_py313_macos }},<{{ torch_max_py313_macos }}; platform_system == 'Darwin' and platform_machine == 'arm64' and python_version == '3.13'",
{% endif %}
]
[project.urls]
Homepage = "https://github.com/facebookresearch/momentum"
Documentation = "https://facebookresearch.github.io/momentum/"
Repository = "https://github.com/facebookresearch/momentum"
"Bug Tracker" = "https://github.com/facebookresearch/momentum/issues"
Changelog = "https://github.com/facebookresearch/momentum/releases"
[tool.scikit-build]
build-dir = "build/{wheel_tag}"
cmake.args = [
"-DBUILD_SHARED_LIBS=OFF",
"-DMOMENTUM_BUILD_PYMOMENTUM=ON",
"-DMOMENTUM_BUILD_EXAMPLES=OFF",
"-DMOMENTUM_BUILD_TESTING=OFF",
"-DMOMENTUM_BUILD_RENDERER=OFF",
"-DMOMENTUM_ENABLE_SIMD=OFF",
"-DCMAKE_CXX_SCAN_FOR_MODULES=OFF",
]
minimum-version = "0.10"
metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
sdist.exclude = [
".github/",
".pixi/",
"build/",
"dist/",
"*.lock",
]
wheel.exclude = ["geometry_test_helper.*"]
{% if variant == "cpu" %}
[[tool.scikit-build.overrides]]
if.platform-system = "^darwin"
cmake.args = [
"-DBUILD_SHARED_LIBS=OFF",
"-DMOMENTUM_BUILD_PYMOMENTUM=ON",
"-DMOMENTUM_BUILD_EXAMPLES=OFF",
"-DMOMENTUM_BUILD_TESTING=OFF",
"-DMOMENTUM_BUILD_RENDERER=OFF",
"-DMOMENTUM_ENABLE_SIMD=OFF",
"-DCMAKE_CXX_SCAN_FOR_MODULES=OFF",
]
{% endif %}
{% if variant == "gpu" %}
[[tool.scikit-build.overrides]]
if.platform-system = "^linux"
cmake.args = [
"-DBUILD_SHARED_LIBS=OFF",
"-DMOMENTUM_BUILD_PYMOMENTUM=ON",
"-DMOMENTUM_BUILD_EXAMPLES=OFF",
"-DMOMENTUM_BUILD_TESTING=OFF",
"-DMOMENTUM_BUILD_RENDERER=OFF",
"-DMOMENTUM_ENABLE_SIMD=OFF",
"-DCMAKE_CXX_SCAN_FOR_MODULES=OFF",
]
{% endif %}
[[tool.scikit-build.overrides]]
if.platform-system = "^win32"
cmake.args = [
"-DBUILD_SHARED_LIBS=OFF",
"-G Visual Studio 17 2022",
"-DMOMENTUM_BUILD_PYMOMENTUM=ON",
"-DMOMENTUM_BUILD_EXAMPLES=OFF",
"-DMOMENTUM_BUILD_TESTING=OFF",
"-DMOMENTUM_BUILD_RENDERER=OFF",
"-DMOMENTUM_ENABLE_SIMD=OFF",
{% if variant == "cpu" %}
"-DCMAKE_CXX_SCAN_FOR_MODULES=OFF",
{% endif %}
]
[tool.setuptools_scm]
# Automatically determine version from git tags
# Tags should follow the pattern: v1.2.3
# Will generate versions like: 1.2.3 (on tag), 1.2.4.post12 (between tags)
version_scheme = "post-release"
local_scheme = "no-local-version"
version_file = "pymomentum/_version.py"