poetry 介紹
1.建立虛拟環境
安裝poetry
pytest
(py3) ➜ poetry-demo mkvirtualenv -p /Library/Frameworks/Python.framework/Versions/3.7/bin/python poetry
created virtual environment CPython3.7.4.final.0-64 in 1193ms
creator CPython3Posix(dest=/Users/huoyinghui/workspaces/poetry, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/Users/huoyinghui/Library/Application Support/virtualenv)
added seed packages: pip==20.3.1, setuptools==51.0.0, wheel==0.36.1
activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
virtualenvwrapper.user_scripts creating /Users/huoyinghui/workspaces/poetry/bin/predeactivate
virtualenvwrapper.user_scripts creating /Users/huoyinghui/workspaces/poetry/bin/postdeactivate
virtualenvwrapper.user_scripts creating /Users/huoyinghui/workspaces/poetry/bin/preactivate
virtualenvwrapper.user_scripts creating /Users/huoyinghui/workspaces/poetry/bin/postactivate
virtualenvwrapper.user_scripts creating /Users/huoyinghui/workspaces/poetry/bin/get_env_details
(poetry) ➜ poetry-demo workon poetry
(poetry) ➜ poetry-demo pip install poetry
2.poetry建立基本demo
poetry new
poetry build
poetry publish
(py3) ➜ pip-tools pwd
/Users/huoyinghui/github/pip-tools
(py3) ➜ pip-tools poetry new poetry-demo
(py3) ➜ pip-tools tree poetry-demo
poetry-demo
├── README.rst
├── poetry_demo
│ └── __init__.py
├── pyproject.toml
└── tests
├── __init__.py
└── test_poetry_demo.py
2 directories, 5 files
(py3) ➜ pip-tools
釋出包測試