(我選用 pyenv)
(你也可以選其他, 例如 virtualenv)
➜ pyenv versions
system
3.7.3
* 3.8-dev (set by /Users/ming/src/pytnon/ming-p1/.python-version)
3.9-dev
➜ pyenv local 3.9-dev
➜ pyenv global 3.8-dev
➜ pyenv version
3.8-dev (set by /Users/ming/src/pytnon/ming-p1/.python-version)
或
或
(確定沒問題, 在部署到 PyPI)
➜ poetry build
➜ poetry config repositories.testpypi https://test.pypi.org/legacy/
➜ poetry publish -r testpypi
➜ poetry build
➜ poetry config repositories.pypi https://test.pypi.org/legacy/
➜ poetry publish
(with docstring)
(先在程式裡 加好 docstrings)
➜ sphinx-apidoc -f -o docs/source .
➜ poetry run invoke html
或
➜ poetry run invoke serve