Skip to content

Commit 153d687

Browse files
committed
[ref] major repo refactor for cleaning up and pip install
1 parent 7c23d0d commit 153d687

File tree

7 files changed

+85
-6
lines changed

7 files changed

+85
-6
lines changed

.github/workflows/build.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: nightly release
2+
3+
on: [ push ]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
python-version: [ "3.8" ]
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
22+
- name: Build wheels
23+
run: pip3 install setuptools build --upgrade && python -m build --wheel
24+
25+
- name: Upload wheels
26+
uses: actions/upload-artifact@v3
27+
with:
28+
name: wheels
29+
path: ./dist/*.whl
30+
31+
- name: Update Nightly Release
32+
uses: andelf/nightly-release@main
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
with:
36+
tag_name: nightly
37+
name: 'Nightly Release'
38+
prerelease: true
39+
body: 'Nightly Release for Each Push'
40+
files: |
41+
./dist/*.whl

.github/workflows/build_stable.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: tagged release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
build:
10+
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: [ "3.8" ]
15+
16+
environment:
17+
name: pypi
18+
url: https://pypi.org/manage/project/sim-web-visualizer
19+
permissions:
20+
id-token: write
21+
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v4
25+
26+
- name: Set up Python ${{ matrix.python-version }}
27+
uses: actions/setup-python@v4
28+
with:
29+
python-version: ${{ matrix.python-version }}
30+
31+
- name: Build wheels
32+
run: pip3 install setuptools build --upgrade && python -m build -w
33+
34+
- name: Upload wheels
35+
uses: actions/upload-artifact@v3
36+
with:
37+
name: wheels
38+
path: ./dist/*.whl
39+
40+
- name: Publish package distributions to PyPI
41+
uses: pypa/gh-action-pypi-publish@release/v1

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
[submodule "3rd_party/meshcat-python"]
2-
path = 3rd_party/meshcat-python
3-
url = https://github.com/yzqin/meshcat-python
41
[submodule "example/isaacgym/IsaacGymEnvs"]
52
path = example/isaacgym/IsaacGymEnvs
63
url = https://github.com/NVIDIA-Omniverse/IsaacGymEnvs

3rd_party/meshcat-python

Lines changed: 0 additions & 1 deletion
This file was deleted.

example/sapien/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
# Licensed under the MIT License [see LICENSE for details].
44

55
/data/
6+
/demos/

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"trimesh",
3030
"pycollada",
3131
"mujoco>=2.2.0",
32-
f"meshcat @ file://localhost{str(_here.absolute())}/3rd_party/meshcat-python",
32+
"meshcat-sim-web-fork",
3333
]
3434

3535
isaac_requirements = [

sim_web_visualizer/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
from .base_visualizer_client import MeshCatVisualizerBase
88

9-
__version__ = "0.5.0"
9+
__version__ = "0.6.0"
1010

1111
try:
1212
import sapien.core as sapien

0 commit comments

Comments
 (0)