-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
101 lines (91 loc) · 3.29 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
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
# Copyright 2024-present, Moverse
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
import io
import logging
import os
import platform
import re
from pkg_resources import DistributionNotFound, get_distribution, parse_version
from setuptools import find_packages, setup
logger = logging.getLogger()
logging.basicConfig(format="%(levelname)s - %(message)s")
def get_readme():
base_dir = os.path.abspath(os.path.dirname(__file__))
with io.open(os.path.join(base_dir, "README.md"), encoding="utf-8") as f:
return f.read()
def get_requirements():
base_dir = os.path.abspath(os.path.dirname(__file__))
requirements = []
with open(os.path.join(base_dir, "requirements.txt"), encoding="utf-8") as f:
requirements.extend(line.strip() for line in f.readlines())
if platform.system() == "Windows":
requirements.append("pyinstaller==5.1")
return requirements
PACKAGE_NAME = "rerun-animation"
VERSION = "0.1.4"
AUTHOR = "Moverse P.C."
EMAIL = "info@moverse.ai"
LICENSE = "Apache 2.0"
URL = "https://moverseai.github.io/rerun-animation/"
CODE_URL = "https://github.com/moverseai/rerun-animation/"
DOCS_URL = "https://moverseai.github.io/rerun-animation/"
DESCRIPTION = "A rerun-sdk plugin and tools for 3D animation."
KEYWORDS = [
"rerun-sdk",
"animation",
"plugin",
"visualization",
"3d-animation",
"3d-visualization",
"bvh",
"smpl",
"smplh",
"biovision-hierarchy",
]
if __name__ == "__main__":
logger.info(f"Installing {PACKAGE_NAME} (v{VERSION}) ...")
setup(
name=PACKAGE_NAME,
version=VERSION,
author=AUTHOR,
author_email=EMAIL,
description=DESCRIPTION,
long_description=get_readme(),
long_description_content_type="text/markdown",
keywords=KEYWORDS,
licence_file="LICENSE",
url=URL,
project_urls={
"Documentation": DOCS_URL,
"Source": CODE_URL,
},
packages=find_packages(exclude=("docs", "data", "build", "dist", "scripts")),
install_requires=get_requirements(),
include_package_data=True,
python_requires="~=3.10",
package_dir={"rerun_animation": "rerun_animation"},
package_data={"rerun_animation": ["configs/*.ini"]},
entry_points={
"console_scripts": [
"rerun-animation=rerun_animation.actions.app:run",
"rerun-animation-deploy=rerun_animation.actions.deploy:run",
"rerun-animation-stream=rerun_animation.actions.stream:run",
"rerun-animation-config=rerun_animation.actions.config:run",
],
},
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3.10",
"License :: OSI Approved :: Apache Software License",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
],
)