Skip to content

Commit

Permalink
fix: use python 3.11
Browse files Browse the repository at this point in the history
* fix: query all pre annotations if sample name is specified

* chore(release): 1.0.6-alpha.1 [skip ci]

## [1.0.6-alpha.1](v1.0.5...v1.0.6-alpha.1) (2024-06-06)

### Bug Fixes

* query all pre annotations if sample name is specified ([ce66599](ce66599))

* chore: update todo

* fix: commit migrate session

* chore(release): 1.0.6-alpha.2 [skip ci]

## [1.0.6-alpha.2](v1.0.6-alpha.1...v1.0.6-alpha.2) (2024-07-08)

### Bug Fixes

* commit migrate session ([e1f5ba3](e1f5ba3))

* fix: optimize migration

* chore(release): 1.0.6-alpha.3 [skip ci]

## [1.0.6-alpha.3](v1.0.6-alpha.2...v1.0.6-alpha.3) (2024-07-08)

### Bug Fixes

* optimize migration ([f3f5df4](f3f5df4))

* fix: use python 3.11

* docs: Update readme

* chore: update webhook message payload

* fix: revert docs python 3.8

* update: revert docs python 3.8

* fix: update test case

* chore: update ci

* fix: fix testcases

* chore: update authors

* fix: release alpha to pypi

* docs: update readme

* chore(release): 1.0.6-alpha.4 [skip ci]

## [1.0.6-alpha.4](v1.0.6-alpha.3...v1.0.6-alpha.4) (2024-08-12)

### Bug Fixes

* fix testcases ([dd8d9a3](dd8d9a3))
* release alpha to pypi ([69e212c](69e212c))
* revert docs python 3.8 ([553aca4](553aca4))
* update test case ([04ce35a](04ce35a))
* use python 3.11 ([6f08299](6f08299))

* docs: update ci

* ci: update ci

* fix: Upgrade frontend to v5.3.0-alpha.1. See the details in [release notes](https://github.com/opendatalab/labelU-Kit/releases/tag/v5.3.0-alpha.1)

* chore(release): 1.0.6-alpha.5 [skip ci]

## [1.0.6-alpha.5](v1.0.6-alpha.4...v1.0.6-alpha.5) (2024-08-12)

### Bug Fixes

* Upgrade frontend to v5.3.0-alpha.1. See the details in [release notes](https://github.com/opendatalab/labelU-Kit/releases/tag/v5.3.0-alpha.1) ([ab2d6dd](ab2d6dd))

---------

Co-authored-by: semantic-release-bot <[email protected]>
  • Loading branch information
gary-Shen and semantic-release-bot authored Aug 12, 2024
1 parent 3052904 commit 6beb4d0
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .VERSION
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
alpha_assets_url: https://github.com/opendatalab/labelU-Kit/releases/download/v5.1.0-alpha.14/frontend.zip
alpha_version: v5.1.0-alpha.14
alpha_assets_url: https://github.com/opendatalab/labelU-Kit/releases/download/v5.3.0-alpha.1/frontend.zip
alpha_version: v5.3.0-alpha.1
release_assets_url: https://github.com/opendatalab/labelU-Kit/releases/download/v5.2.1/frontend.zip
release_version: v5.2.1
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,4 +184,4 @@ jobs:
with:
url: ${{ secrets.WEBHOOK_URL }}
headers: '{"Content-Type": "application/json"}'
body: '{"msgtype":"markdown","markdown":{"content":"${{ env.RELEASE_NOTES }}${{ env.CHANGELOG }}Check it out now \ud83d\udc49\ud83c\udffb [v${{ env.NEXT_VERSION }}](${{ env.PYPI_URL }})"}}'
body: '{"msg_type":"interactive","card":{"elements":[{"tag":"div","text":{"tag":"lark_md","content":"${{ env.RELEASE_NOTES }}${{ env.CHANGELOG }}Check it out now \ud83d\udc49\ud83c\udffb [v${{ env.NEXT_VERSION }}](${{ env.PYPI_URL }})"}}]}}'
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ conda activate labelu
pip install labelu
```

> To install the test version:`pip install --extra-index-url https://test.pypi.org/simple/ labelu==<test revision>`
> To install the test version:`pip install labelu==<test revision> --pre`
5. Run LabelU:

Expand Down
2 changes: 1 addition & 1 deletion README_zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ conda activate labelu
pip install labelu
```

> 安装[测试版本](https://test.pypi.org/project/labelu/)`pip install --extra-index-url https://test.pypi.org/simple/ labelu==<测试版本号>`
> 安装测试版本`pip install labelu==<测试版本号> --pre`
5. 运行:

Expand Down
6 changes: 3 additions & 3 deletions labelu/tests/internal/adapter/routers/test_attachment.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def test_task_delete_task_file(

# run
data = {"attachment_ids": [attachment_id]}
r = client.delete(
r = client.request("delete",
f"{settings.API_V1_STR}/tasks/{task.id}/attachments",
headers=testuser_token_headers,
json=data,
Expand All @@ -242,7 +242,7 @@ def test_task_delete_task_file_not_found_task(

# run
data = {"attachment_ids": [1]}
r = client.delete(
r = client.request("delete",
f"{settings.API_V1_STR}/tasks/0/attachments",
headers=testuser_token_headers,
json=data,
Expand Down Expand Up @@ -270,7 +270,7 @@ def test_task_delete_task_file_not_owner(

# run
data = {"attachment_ids": [1]}
r = client.delete(
r = client.request("delete",
f"{settings.API_V1_STR}/tasks/{task.id}/attachments",
headers=testuser_token_headers,
json=data,
Expand Down
4 changes: 2 additions & 2 deletions labelu/tests/internal/adapter/routers/test_pre_annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ def test_pre_annotation_delete(

# run
data = {"pre_annotation_ids": [pre_annotations[0].id]}
r = client.delete(
r = client.request("delete",
f"{settings.API_V1_STR}/tasks/{task.id}/pre_annotations",
headers=testuser_token_headers,
json=data,
Expand All @@ -467,7 +467,7 @@ def test_pre_annotations_delete_not_found(

# run
data = {"pre_annotation_ids": [1, 2]}
r = client.delete(
r = client.request("delete",
f"{settings.API_V1_STR}/tasks/{task.id}/pre_annotations",
headers=testuser_token_headers,
json=data,
Expand Down
4 changes: 2 additions & 2 deletions labelu/tests/internal/adapter/routers/test_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ def test_sample_delete(

# run
data = {"sample_ids": [samples[0].id]}
r = client.delete(
r = client.request("delete",
f"{settings.API_V1_STR}/tasks/{task.id}/samples",
headers=testuser_token_headers,
json=data,
Expand All @@ -599,7 +599,7 @@ def test_sample_delete_not_found(

# run
data = {"sample_ids": [1, 2]}
r = client.delete(
r = client.request("delete",
f"{settings.API_V1_STR}/tasks/{task.id}/samples",
headers=testuser_token_headers,
json=data,
Expand Down
6 changes: 3 additions & 3 deletions labelu/tests/internal/adapter/routers/test_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def test_task_delete(
)

# run
r = client.delete(
r = client.request("delete",
f"{settings.API_V1_STR}/tasks/{task.id}", headers=testuser_token_headers
)

Expand All @@ -312,7 +312,7 @@ def test_task_delete_not_found(
# prepare data

# run
r = client.delete(
r = client.request("delete",
f"{settings.API_V1_STR}/tasks/0", headers=testuser_token_headers
)

Expand All @@ -338,7 +338,7 @@ def test_task_delete_no_permission(
)

# run
r = client.delete(
r = client.request("delete",
f"{settings.API_V1_STR}/tasks/{task.id}", headers=testuser_token_headers
)

Expand Down
7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[tool.poetry]
name = "labelu"
version = '1.0.6-alpha.3'
version = '1.0.6-alpha.5'
description = ""
license = "Apache-2.0"
authors = ["pengjinhu <pengjinhu@pjlab.org.cn>"]
authors = ["shenguanlin <shenguanlin@pjlab.org.cn>"]
readme = "README.md"
repository = "https://github.com/opendatalab/labelU"
packages = [{include = "labelu"}]
Expand All @@ -13,7 +13,7 @@ labelu = "labelu.main:cli"

[tool.poetry.dependencies]
python = "^3.11"
fastapi = "^0.86.0"
fastapi = "^0.90.0"
loguru = "^0.6.0"
sqlalchemy = "^1.4.43"
passlib = {extras = ["bcrypt"], version = "^1.7.4"}
Expand All @@ -27,6 +27,7 @@ appdirs = "^1.4.4"
aiofiles = "^22.1.0"
pillow = "^9.3.0"
alembic = "^1.9.4"
httpx = "^0.27.0"


[[tool.poetry.source]]
Expand Down

0 comments on commit 6beb4d0

Please sign in to comment.