-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: replace poetry by uv (#83)
Signed-off-by: ktro2828 <[email protected]>
- Loading branch information
Showing
7 changed files
with
67 additions
and
1,865 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,20 +25,17 @@ jobs: | |
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install poetry | ||
run: pip install poetry | ||
|
||
- name: Setup python (with pip) | ||
uses: actions/setup-python@v5 | ||
- name: Define a cache dependency glob | ||
uses: astral-sh/setup-uv@v5 | ||
with: | ||
cache: "poetry" | ||
python-version: ${{ matrix.python-version }} | ||
enable-cache: true | ||
|
||
- name: Install dependencies | ||
run: poetry install | ||
- name: Install the project | ||
run: uv sync --all-extras | ||
|
||
- name: Run tests | ||
run: poetry run pytest --cov-report xml:coverage.xml --cov=t4_devkit | ||
run: uv run pytest --cov-report xml:coverage.xml --cov=t4_devkit | ||
|
||
- name: Get test coverage | ||
uses: orgoro/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,17 +16,27 @@ A toolkit to load and operate T4 dataset. | |
|
||
#### Install via GitHub | ||
|
||
Note that the following command installs the latest `main` branch: | ||
|
||
```shell | ||
# e.g) with pip | ||
pip install git+https://github.com/tier4/t4-devkit.git | ||
``` | ||
|
||
By specifying `@<TAG_OR_BRANCH>`, you can install the particular version of `t4-devkit`: | ||
|
||
```shell | ||
# e.g) with poetry | ||
poetry add git+https://github.com/tier4/t4-devkit.git | ||
# e.g) with pip | ||
pip install git+https://github.com/tier4/t4-devkit.git@main | ||
``` | ||
|
||
#### Install from source | ||
|
||
```shell | ||
git clone [email protected]:tier4/t4-devkit.git | ||
cd t4-devkit | ||
poetry install | ||
uv venv --python 3.10 | ||
uv sync --all-extras | ||
``` | ||
|
||
## Dataset Format | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,24 @@ | ||
## Install via GitHub | ||
|
||
Note that the following command installs the latest `main` branch: | ||
|
||
```shell | ||
# e.g) with pip | ||
pip install git+https://github.com/tier4/t4-devkit.git | ||
``` | ||
|
||
By specifying `@<TAG_OR_BRANCH>`, you can install the particular version of `t4-devkit`: | ||
|
||
```shell | ||
# e.g) with poetry | ||
poetry add git+https://github.com/tier4/t4-devkit.git | ||
# e.g) with pip | ||
pip install git+https://github.com/tier4/t4-devkit.git@main | ||
``` | ||
|
||
## Install from source | ||
|
||
```shell | ||
git clone [email protected]:tier4/t4-devkit.git | ||
cd t4-devkit | ||
poetry install | ||
uv venv --python 3.10 | ||
uv sync --all-extras | ||
``` |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,30 @@ | ||
[tool.poetry] | ||
[project] | ||
name = "t4-devkit" | ||
version = "0.0.7" | ||
description = "A toolkit to load and operate T4 dataset." | ||
authors = ["Kotaro Uetake <[email protected]>"] | ||
authors = [{ name = "Kotaro Uetake", email = "[email protected]" }] | ||
readme = "README.md" | ||
packages = [{ include = "t4_devkit" }] | ||
requires-python = ">=3.10,<3.13" | ||
dependencies = [ | ||
"rerun-sdk==0.20.0", | ||
"pyquaternion>=0.9.9", | ||
"matplotlib>=3.9.2", | ||
"shapely<2.0.0", | ||
"pycocotools>=2.0.8", | ||
] | ||
|
||
[tool.poetry.dependencies] | ||
python = ">=3.10,<3.13" | ||
rerun-sdk = "0.20.0" | ||
pyquaternion = "^0.9.9" | ||
matplotlib = "^3.9.2" | ||
shapely = "<2.0.0" | ||
pycocotools = "^2.0.8" | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
pytest = "^8.2.2" | ||
pytest-asyncio = "^0.23.7" | ||
pytest-mock = "^3.14.0" | ||
pytest-cov = "^6.0.0" | ||
lark = "^1.1.9" | ||
mkdocs = "^1.6.0" | ||
mkdocstrings = { extras = ["python"], version = "^0.25.1" } | ||
mkdocs-material = "^9.5.27" | ||
ruff = "^0.6.8" | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" | ||
[project.optional-dependencies] | ||
dev = [ | ||
"pytest>=8.2.2", | ||
"pytest-asyncio>=0.23.7", | ||
"pytest-mock>=3.14.0", | ||
"pytest-cov>=6.0.0", | ||
"lark>=1.1.9", | ||
"mkdocs>=1.6.0", | ||
"mkdocs-material>=9.5.47", | ||
"mkdocstrings[python]>=0.18", | ||
"ruff>=0.8", | ||
] | ||
|
||
[tool.ruff] | ||
line-length = 100 | ||
|