Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.0.2 #12

Merged
merged 16 commits into from
May 26, 2023
Merged
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
148 changes: 66 additions & 82 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ jobs:
# MacOS build is really slow (>30 mins); uses up a lot of CI minutes
matrix+=('{"platform": "macos", "runs_on": "macos-latest"},')
fi
matrix+=('{"platform": "windows", "runs_on": "windows-latest-8-cores"},')
matrix+=('{"platform": "linux", "runs_on": "ubuntu-latest-16-cores", container: {"image": "rerunio/ci_docker:0.5"}}')
matrix+=('{"platform": "windows", "runs_on": "windows-latest"},')
matrix+=('{"platform": "linux", "runs_on": "ubuntu-latest", container: {"image": "rerunio/ci_docker:0.5"}}')

echo "Matrix values: ${matrix[@]}"

Expand All @@ -115,7 +115,7 @@ jobs:
# docker
- name: Cache APT Packages
if: matrix.platform == 'linux'
uses: awalsh128/cache-apt-pkgs-action@v1.2.2
uses: awalsh128/cache-apt-pkgs-action@v1.2.4
with:
packages: ${{ env.UBUNTU_REQUIRED_PKGS }}
version: 2.0 # Increment this to pull newer packages
Expand Down Expand Up @@ -211,7 +211,7 @@ jobs:

- name: Install built wheel
run: |
pip install rerun-sdk --find-links pre-dist --force-reinstall
pip install depthai_viewer --find-links pre-dist --force-reinstall

- name: Run tests
run: cd rerun_py/tests && pytest
Expand All @@ -227,22 +227,6 @@ jobs:
run: |
echo "pkg_folder=$(ls unpack-dist)" >> $GITHUB_ENV

- name: Cache RRD dataset
id: dataset
uses: actions/cache@v3
with:
path: examples/python/colmap/dataset/
# TODO(jleibs): Derive this key from the invocation below
key: colmap-dataset-colmap-fiat-v0

- name: Generate Embedded RRD file
shell: bash
# If you change the line below you should almost definitely change the `key:` line above by giving it a new, unique name
run: |
pip install -r examples/python/colmap/requirements.txt
python3 examples/python/colmap/main.py --dataset colmap_fiat --resize 800x600 --save colmap.rrd
cp colmap.rrd unpack-dist/${{ env.pkg_folder }}/rerun_sdk/rerun_demo/colmap.rrd

- name: Repack the wheel
shell: bash
run: |
Expand Down Expand Up @@ -337,65 +321,65 @@ jobs:

# ---------------------------------------------------------------------------

py-test-docs:
name: Verify the docs build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.8"
cache: "pip"
cache-dependency-path: "rerun_py/requirements-doc.txt"

- name: Install Python dependencies
run: |
pip install --upgrade pip
pip install -r rerun_py/requirements-doc.txt

- name: Build via mkdocs
run: |
mkdocs build -f rerun_py/mkdocs.yml

py-docs:
name: Build and deploy docs
if: ${{ github.event_name == 'push' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Don't do a shallow clone

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.8"
cache: "pip"
cache-dependency-path: "rerun_py/requirements-doc.txt"

- name: Install Python dependencies
run: |
pip install --upgrade pip
pip install -r rerun_py/requirements-doc.txt

- name: Set up git author
run: |
remote_repo="https://${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
git config --global user.name "${GITHUB_ACTOR}"
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Deploy via mike # https://github.com/jimporter/mike
if: startsWith(github.ref, 'refs/tags/v')
run: |
git fetch
mike deploy -F rerun_py/mkdocs.yml -p --rebase -b gh-pages --prefix docs/python -u ${{github.ref_name}} latest

- name: Deploy tag via mike # https://github.com/jimporter/mike
if: github.ref == 'refs/heads/main'
run: |
git fetch
mike deploy -F rerun_py/mkdocs.yml -p --rebase -b gh-pages --prefix docs/python HEAD
# py-test-docs:
# name: Verify the docs build
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3

# - name: Set up Python
# uses: actions/setup-python@v4
# with:
# python-version: "3.8"
# cache: "pip"
# cache-dependency-path: "rerun_py/requirements-doc.txt"

# - name: Install Python dependencies
# run: |
# pip install --upgrade pip
# pip install -r rerun_py/requirements-doc.txt

# - name: Build via mkdocs
# run: |
# mkdocs build -f rerun_py/mkdocs.yml

# py-docs:
# name: Build and deploy docs
# if: ${{ github.event_name == 'push' }}
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# with:
# fetch-depth: 0 # Don't do a shallow clone

# - name: Set up Python
# uses: actions/setup-python@v4
# with:
# python-version: "3.8"
# cache: "pip"
# cache-dependency-path: "rerun_py/requirements-doc.txt"

# - name: Install Python dependencies
# run: |
# pip install --upgrade pip
# pip install -r rerun_py/requirements-doc.txt

# - name: Set up git author
# run: |
# remote_repo="https://${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
# git config --global user.name "${GITHUB_ACTOR}"
# git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# - name: Deploy via mike # https://github.com/jimporter/mike
# if: startsWith(github.ref, 'refs/tags/v')
# run: |
# git fetch
# mike deploy -F rerun_py/mkdocs.yml -p --rebase -b gh-pages --prefix docs/python -u ${{github.ref_name}} latest

# - name: Deploy tag via mike # https://github.com/jimporter/mike
# if: github.ref == 'refs/heads/main'
# run: |
# git fetch
# mike deploy -F rerun_py/mkdocs.yml -p --rebase -b gh-pages --prefix docs/python HEAD
2 changes: 1 addition & 1 deletion .mypy.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[mypy]
files = rerun_py/rerun_sdk/depthai_viewer, rerun_py/tests, examples/python
files = rerun_py/depthai_viewer, rerun_py/tests, examples/python
exclude = examples/python/objectron/proto|examples/python/ros
namespace_packages = True
show_error_codes = True
Expand Down
14 changes: 7 additions & 7 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,24 +52,24 @@
"cranky",
"--target-dir=target_ra",
"--workspace",
"--message-format=json",
"--all-targets",
"--all-features" // --all-features will set the `__ci` feature flag, which stops crates/re_web_viewer_server/build.rs from building the web viewer
"--message-format=json"
// "--all-targets",
// "--all-features" // --all-features will set the `__ci` feature flag, which stops crates/re_web_viewer_server/build.rs from building the web viewer
],
"rust-analyzer.cargo.buildScripts.overrideCommand": [
"cargo",
"check",
"--quiet",
"--target-dir=target_ra",
"--workspace",
"--message-format=json",
"--all-targets",
"--all-features" // --all-features will set the `__ci` feature flag, which stops crates/re_web_viewer_server/build.rs from building the web viewer
"--message-format=json"
// "--all-targets",
// "--all-features" // --all-features will set the `__ci` feature flag, which stops crates/re_web_viewer_server/build.rs from building the web viewer
],
// Our build scripts are generating code.
// Having Rust Analyzer do this while doing other builds can lead to catastrophic failures.
// INCLUDING attempts to publish a new release!
"rust-analyzer.cargo.buildScripts.enable": false,
"python.analysis.extraPaths": ["rerun_py/rerun_sdk"],
"python.analysis.extraPaths": ["rerun_py/"],
"ruff.args": ["--config", "rerun_py/pyproject.toml"]
}
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Depthai Viewer changelog


## 0.0.2

Patch release.

## 0.0.1

Beta release of the new Depthai Viewer.
Loading