forked from facebookresearch/theseus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
36 lines (32 loc) · 1.17 KB
/
setup.py
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
#!/usr/bin/env python
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import setuptools
from pathlib import Path
lie_path = Path("torchlie")
with open(lie_path / "__init__.py", "r") as f:
for line in f:
if "__version__" in line:
version = line.split("__version__ = ")[1].rstrip().strip('"')
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="torchlie",
version=version,
author="Meta Research",
description="Torch extension for differentiable Lie groups.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/facebookresearch/theseus/lie",
keywords="lie groups, differentiable optimization",
packages=["torchlie", "torchlie.functional"],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
python_requires=">=3.8",
)