从pyproject.toml(poetry)生成setup.py(setutools)
poetry-setup的Python项目详细描述
诗歌设置
使您的poetry项目向后兼容。
此工具从pyproject.toml:
生成一些文件安装
我建议对所有这样的控制台脚本使用pipsi。
通过PIPSI安装:
pipsi install poetry-setup
通过PIP安装:
pip install poetry-setup
通过诗歌安装:
poetry install poetry-setup
用法
poetry-setup [path/to/project/]
为当前目录中的项目生成:
poetry-setup
在example
目录中为项目生成:
poetry-setup example
Pipenv呢?
pipenv可以从requirements.txt
生成Pipfile
。
运行测试
pipenv install pipenv shell python -m pytest tests.py