From 8990e65f69b4e31212e77b810fd9214e46c58d47 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Wed, 18 Jan 2023 12:00:17 -0500 Subject: [PATCH] +poetry (#93) --- projects/python-poetry.org/package.yml | 38 ++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 projects/python-poetry.org/package.yml diff --git a/projects/python-poetry.org/package.yml b/projects/python-poetry.org/package.yml new file mode 100644 index 00000000..a104fb4b --- /dev/null +++ b/projects/python-poetry.org/package.yml @@ -0,0 +1,38 @@ +distributable: + url: https://github.com/python-poetry/poetry/releases/download/1.3.1/poetry-1.3.1.tar.gz + strip-components: 1 + +versions: + github: python-poetry/poetry + +dependencies: + python.org: 3 + gnu.org/bash: '>=2' # for our venv/relocation scripts: feel free to fix that + +build: + dependencies: + cmake.org: '*' + linux/x86-64: + tea.xyz/gx/make: '*' # for ninja module + tea.xyz/gx/cc: c99 # ^^ + linux: + rust-lang.org/cargo: '*' # for cryptographic bindings + script: + python-venv.sh {{prefix}}/bin/poetry + +test: + script: | + poetry new teaxyz + cd teaxyz + poetry config virtualenvs.in-project true + poetry add requests + poetry add boto3 + + test -f pyproject.toml + test -f poetry.lock + env: + LC_ALL: en_US.UTF-8 + PYTHON_KEYRING_BACKEND: keyring.backends.null.Keyring + +provides: + - bin/poetry