This example demonstrates how to build a Python Poetry project with Artifactory, while collecting build-info.
In your terminal, validate that the following commands work.
Output Python version:
> python --version
Output pipenv version:
> poetry --version
Output JFrog CLI version:
> jf --version
'cd' to the root project directory
Configure Artifactory:
> jf c add
Configure the project's resolution repository. You shoud set the virtual repository you created.
> jf poetry-config --repo-resolve=<PYPI_REPO> [credentials flags]
Install project dependencies with poetry from Artifactory:
> jf poetry install --build-name=my-poetry-build --build-number=1 --module=jfrog-poetry-example
Package the project, create distribution archives (tar.gz and whl):
> jf build
Upload the packages to the pypi repository in Artifactory:
> jf rt u dist/ pypi/ --build-name=my-poetry-build --build-number=1 --module=jfrog-poetry-example
Collect environment variables and add them to the build info:
> jf rt bce my-poetry-build 1
Publish the build info to Artifactory:
> jf rt bp my-poetry-build 1
Install published package by installing it from Artifactory using pip:
> jf poetry install jfrog-pipenv-example
Learn about [Building Python Packages with JFrog CLI](https://www.jfrog.com/confluence/display/CLI/CLI+for+JFrog+Artifactory#CLIforJFrogArtifactory-BuildingPythonPackages).