開発環境構築
フロントエンドを立ち上げ
NodeJS 16が必要
cd streamlit_image_annotation_customize/streamlit_image_annotation/Detection
yarn
yarn start
streamlit_image_annotation_customize/__init__.py で IS_RELEASE = False に設定する
annotation_tool コーロがローカル「streamlit_image_annotation_customize」ライブラリをインストールする
既存のライブラリを削除
pip uninstall streamlit_image_annotation_customize
streamlit_image_annotation_customizeのコードフォルダー(setup.pyファイルがあるフォルダー)で下記のコマンドで実行
pip install -e .
これでannotation_toolで利用できるようになり、フロントエンドの修正をしたら、すぐに反映される
pypiに公開
~/.pypirc を下記の内容で作成する (1回のみ)
[pypi]
username = __token__
password = ***
frontendビルド
cd streamlit_image_annotation_customize/Detection/frontend
yarn build
and set IS_RELEASE = True in streamlit_image_annotation_customize/__init__.py.
and setup.pyで公開バージョン番号を設定 version="xx.xx.xx"
make wheel
python setup.py sdist
python setup.py sdist bdist_wheel
upload
twine upload dist/*
利用
pip install streamlit_image_annotation_customize
Metadata
Release files for streamlit-image-annotation-customize 0.4.40
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| streamlit_image_annotation_customize-0.4.40.tar.gz | 1.2 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| streamlit_image_annotation_customize-0.4.40-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.4 MB
Release files / streamlit_image_annotation_customize-0.4.40.tar.gz
| Download URL | streamlit_image_annotation_customize-0.4.40.tar.gz |
|---|---|
| Size | 1.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fc5725ef06dafd4b4b223f9e58b3ef9fd959a977226c5cfd9ae2729ae80f0272
|
|
BLAKE2b-256 checksum How to use checksums |
d57888768f00c8f33afc7bb3802b19f3a782bf62b4e9bb11e6a1839341993f42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.1
|
Release files / streamlit_image_annotation_customize-0.4.40-py3-none-any.whl
| Download URL | streamlit_image_annotation_customize-0.4.40-py3-none-any.whl |
|---|---|
| Size | 1.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4742e101d89b049498e8f54dbddbc3320f89ec2cd7b16dbf85492ae99ed2dc62
|
|
BLAKE2b-256 checksum How to use checksums |
e50fcb3ff38e6c67c0663e7f819b6e15a831562be4ffe9200673c798a73bbf01
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.1
|