Skip to main content

Annofabの3次元プロジェクトを操作するためのCLIです。

Project description

annofab-3dpc-editor-cli

Annofabの3次元プロジェクトを操作するためのCLIです。

Build Status PyPI version Python Versions Documentation Status

Install

$ pip install annofab-3dpc-editor-cli

コマンドサンプル

https://annofab-3dpc-editor-cli.readthedocs.io/ja/latest/user_guide/command_sample.html 参照

バージョンの確認方法

$ anno3d version
annofab-3dpc-editor-cli 0.2.2a1

開発環境

  • poetry
    • Poetry version 1.8.3
  • python 3.12

開発環境初期化

poetryのインストール手順は、このファイル下部のpoetryのインストール手順を参照

poetry install

poetryのインストール手順

poetryのインストール手順一例を以下に示す
2020/05/21 ubuntu 18.04 にて確認

pyenv

システムにpython 3.12を直接インストールして使うならpyenvは要らない

前提ライブラリなどのインストール

ubuntu 22.04の場合
sudo apt-get update


sudo apt-get install make build-essential libssl-dev zlib1g-dev \
libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm \
libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev python3-openssl
ubuntu 18.04の場合
sudo apt-get update

sudo apt-get install build-essential libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
xz-utils tk-dev libffi-dev liblzma-dev python-openssl git

pyenvとpythonのインストール

curl https://pyenv.run | bash

コンソールに、以下のような設定すべき内容が出力されるので.bashrcなどに設定

export PATH="/home/vagrant/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
pyenv install 3.12.4
pyenv global 3.12.4

pipx

直接 poetry をインストールするなら要らない

python -m pip install --user pipx
python -m pipx ensurepath

completionを効かせたいときは、pipx completions の実行結果に従って設定する

$ pipx completions

Add the appropriate command to your shell's config file
so that it is run on startup. You will likely have to restart
or re-login for the autocompletion to start working.

bash:
    eval "$(register-python-argcomplete pipx)"

zsh:
    To activate completions for zsh you need to have
    bashcompinit enabled in zsh:

    autoload -U bashcompinit
    bashcompinit

    Afterwards you can enable completion for pipx:

    eval "$(register-python-argcomplete pipx)"

tcsh:
    eval `register-python-argcomplete --shell tcsh pipx`

fish:
    register-python-argcomplete --shell fish pipx | .

poetry

pipx install poetry
poetry completions bash | sudo tee /etc/bash_completion.d/poetry.bash-completion

PyPIへの公開

GitHubのReleasesからリリースを作成してください。 GitHub Actionsにより自動でPyPIに公開されます。 バージョン情報は、poetry build時にpoetry-dynamic-versioningによって、Gitのバージョンタグから生成されます。

手動でPyPIに公開する場合は、以下のコマンドを実行してください。

# VSCode Dev Containersでは、`/usr/local/lib/python3.12/dist-packages/`にインストールしようとするため、`sudo`で実行する必要があります。
$ sudo poetry self add "poetry-dynamic-versioning[plugin]@1.4.0"
$ make publish

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

annofab_3dpc_editor_cli-0.4.1.tar.gz (39.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

annofab_3dpc_editor_cli-0.4.1-py3-none-any.whl (54.0 kB view details)

Uploaded Python 3

File details

Details for the file annofab_3dpc_editor_cli-0.4.1.tar.gz.

File metadata

  • Download URL: annofab_3dpc_editor_cli-0.4.1.tar.gz
  • Upload date:
  • Size: 39.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.12.12 Linux/6.11.0-1018-azure

File hashes

Hashes for annofab_3dpc_editor_cli-0.4.1.tar.gz
Algorithm Hash digest
SHA256 22ce5bbe5c4188bb5766fae166fbd9789402fb98f3109dbedc198740b4bdab1b
MD5 08646fc97b6b62f30d164a422d04e1f4
BLAKE2b-256 0ec1cfb2646e6bb21e45ce11d763e5ff6440a2f7bb31d87a4df743a532981837

See more details on using hashes here.

File details

Details for the file annofab_3dpc_editor_cli-0.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for annofab_3dpc_editor_cli-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9f91c1aa5cb03e34e94def8fc9578c12bc6067b0a904aca602b725335653a384
MD5 dd447f6faad661b4898e743044f16ec8
BLAKE2b-256 de2130b7d8228248706822b8a9a5df06f8a56f777f6b5ea2c502769df299ba8f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page