¡Esta es una revisión vieja del documento!
poetry new project
poetry init
poetry install
Or
poetry install --no-root
poetry add package
poetry add git+repo_url
poetry run command
poetry env list --full-path
We do not need a virtual env docker. It is already isolated. So, we use
poetry config virtualenvs.create false
setting to turn it off.
cat requirements.txt|xargs poetry add
For starting a new project we use:
poetry new --src <path>
It generates this structure:
.
├── pyproject.toml
├── README.rst
├── src
│ └── project_name
│ └── __init__.py
└── tests
├── __init__.py
└── test_project_name.py
poetry show --tree
poetry add pymysql@latest
cat requirements.txt|xargs poetry add
This creates the repo gf accessed with credentials.
poetry config repositories.gf https://pip.getfinancing.us/simple/ poetry config http-basic.gf $PYPI_USER $PYPI_PSW
poetry env use python3.9