Skip to content

Commit

Permalink
chore: add dev-dependencies (#87)
Browse files Browse the repository at this point in the history
Signed-off-by: ktro2828 <[email protected]>
  • Loading branch information
ktro2828 authored Jan 14, 2025
1 parent c4181c9 commit 0381159
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
enable-cache: true

- name: Install the project
run: uv sync --all-extras
run: uv sync

- name: Run tests
run: uv run pytest --cov-report xml:coverage.xml --cov=t4_devkit
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-document.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
python-version: "3.10"

- name: Install the project
run: uv sync --all-extras
run: uv sync --only-dev

- name: Create the document
run: uv run mkdocs gh-deploy --force
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,18 @@ pip install git+https://github.com/tier4/t4-devkit.git@main

#### Install from source

You need to install `uv`. For details, please refer to [OFFICIAL DOCUMENT](https://docs.astral.sh/uv/).

```shell
git clone [email protected]:tier4/t4-devkit.git
cd t4-devkit
uv venv --python 3.10
uv sync --all-extras
uv sync
```

The virtual environment can be activated with:

```shell
source .venv/bin/activate
```

## Dataset Format
Expand Down
11 changes: 9 additions & 2 deletions docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,16 @@ pip install git+https://github.com/tier4/t4-devkit.git@main

## Install from source

You need to install `uv`. For details, please refer to [OFFICIAL DOCUMENT](https://docs.astral.sh/uv/).

```shell
git clone [email protected]:tier4/t4-devkit.git
cd t4-devkit
uv venv --python 3.10
uv sync --all-extras
uv sync
```

The virtual environment can be activated with:

```shell
source .venv/bin/activate
```
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dependencies = [
"pycocotools>=2.0.8",
]

[project.optional-dependencies]
[dependency-groups]
dev = [
"pytest>=8.2.2",
"pytest-asyncio>=0.23.7",
Expand Down

0 comments on commit 0381159

Please sign in to comment.