Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions mimickit/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import os as _os
import sys as _sys

# MimicKit's internal modules use flat imports (e.g. ``import learning.ppo_agent``).
# When installed as a package, these submodules live under ``mimickit/`` which is
# not on sys.path by default. Adding it here keeps backward compatibility with
# the original ``python mimickit/run.py`` invocation while also supporting
# ``import mimickit`` from an installed environment.
_pkg_dir = _os.path.dirname(__file__)
if _pkg_dir not in _sys.path:
_sys.path.insert(0, _pkg_dir)
32 changes: 32 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

[project]
name = "mimickit"
version = "0.1.0"
description = "A Reinforcement Learning Framework for Motion Imitation and Control"
readme = "README.md"
license = "Apache-2.0"
requires-python = ">=3.8"
authors = [
{ name = "Xue Bin Peng" },
]

dependencies = [
"gymnasium",
"moviepy",
"matplotlib",
"numpy",
"pyyaml",
"pyglet",
"tensorboardX",
"torch>=1.9.1",
"wandb>=0.17.4",
]

[project.urls]
Homepage = "https://github.com/xbpeng/MimicKit"

[tool.setuptools.packages.find]
include = ["mimickit*"]
9 changes: 0 additions & 9 deletions requirements.txt

This file was deleted.