poetry
Tool for dependency management and packaging in Python
Poetry helps you declare, manage and install dependencies of Python projects, ensuring you have the right stack everywhere.
amd64
Installation
1. Add WakeMeOps repository
curl -sSL https://raw.githubusercontent.com/upciti/wakemeops/main/assets/install_repository | sudo bash
2. Install poetry
Snippets
Download URLs
Version | SHA256 | Size (KB) |
---|---|---|
1.4.1 | 7cb8e567c8575dbfc70455cc591bc57f9705d3f6e8d55f11d169f9f0cb31a9a2 |
21939 |
1.4.0 | 76cd671e1e3e8774b75716bc3cbf6a56045b9a87568915ec7e45ca3aea895352 |
21936 |
Version | SHA256 | Size (KB) |
---|---|---|
1.1.15 | 6e6c6289a4a8a58ba72ca684621dcfba4df065d5441c5db7fd89f88cc3e05771 |
40926 |
1.1.14 | 55bafd2411e8b3e0028a761f10ed53748839a764028664fdbe03b24d7a34da30 |
40922 |
1.1.13 | 915f4d13aa5f203b9560abeeb648bdc9793067d3b13a639a30813e498a0e14dd |
40927 |
1.1.15 | 6e6c6289a4a8a58ba72ca684621dcfba4df065d5441c5db7fd89f88cc3e05771 |
40926 |
1.1.14 | 55bafd2411e8b3e0028a761f10ed53748839a764028664fdbe03b24d7a34da30 |
40922 |
1.1.13 | 915f4d13aa5f203b9560abeeb648bdc9793067d3b13a639a30813e498a0e14dd |
40927 |
1.1.15 | 6e6c6289a4a8a58ba72ca684621dcfba4df065d5441c5db7fd89f88cc3e05771 |
40926 |
1.1.14 | 55bafd2411e8b3e0028a761f10ed53748839a764028664fdbe03b24d7a34da30 |
40922 |
1.1.13 | 915f4d13aa5f203b9560abeeb648bdc9793067d3b13a639a30813e498a0e14dd |
40927 |
1.1.15 | 6e6c6289a4a8a58ba72ca684621dcfba4df065d5441c5db7fd89f88cc3e05771 |
40926 |
Blueprints
Debian packages listed on this page are generated from op2deb YAML blueprints. Blueprints for poetry are versionned here.
Click here to see poetry ops2deb blueprints
https://github.com/upciti/wakemeops/blob/main/blueprints/dev/poetry/ops2deb.yml
- name: poetry
matrix:
versions:
- 1.1.13
- 1.1.14
- 1.1.15
revision: 2
architecture: all
homepage: https://python-poetry.org
summary: tool for dependency management and packaging in Python
description: |-
Poetry helps you declare, manage and install dependencies of Python projects,
ensuring you have the right stack everywhere.
fetch: https://github.com/python-poetry/poetry/releases/download/{{version}}/poetry-{{version}}-linux.tar.gz
install:
- content: |-
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import glob
import sys
import os
lib = os.path.normpath(os.path.join(os.path.realpath(__file__), "../..", "lib"))
vendors = os.path.join(lib, "poetry", "_vendor")
current_vendors = os.path.join(
vendors, "py{}".format(".".join(str(v) for v in sys.version_info[:2]))
)
sys.path.insert(0, lib)
sys.path.insert(0, current_vendors)
if __name__ == "__main__":
from poetry.console import main
main()
path: /usr/bin/poetry
- content: |-
#!/bin/sh
set -e
if which py3compile >/dev/null 2>&1; then
py3compile -p poetry
fi
path: debian/postinst
- content: |-
#!/bin/sh
set -e
if which py3clean >/dev/null 2>&1; then
py3clean -p poetry
fi
path: debian/prerm
script:
- rm -r poetry/_vendor/py2.7 poetry/_vendor/py3.5 poetry/_vendor/py3.6 poetry/_vendor/.gitignore
- mv poetry {{src}}/usr/lib/
- name: poetry
matrix:
versions:
- 1.4.0
- 1.4.1
homepage: https://python-poetry.org
summary: tool for dependency management and packaging in Python
description: |-
Poetry helps you declare, manage and install dependencies of Python projects,
ensuring you have the right stack everywhere.
depends:
- python3.11-build-standalone
fetch: https://github.com/python-poetry/poetry/archive/refs/tags/{{version}}.tar.gz
install:
- path: /usr/bin/poetry
content: |
#!/usr/lib/poetry/bin/python3
import os
import sys
os.environ["POETRY_VIRTUALENVS_PREFER_ACTIVE_PYTHON"]="1"
from poetry.console.application import main
if __name__ == '__main__':
sys.exit(main())
- content: |-
#!/bin/sh
set -e
find /usr/lib/poetry -name '*.py' -exec /usr/lib/poetry/bin/python3 -m py_compile {} +
path: debian/postinst
- content: |-
#!/bin/sh
set -e
find /usr/lib/poetry -name '__pycache__' -exec rm -r {} +
path: debian/prerm
script:
- install_packages python3.11-build-standalone
- |
# install bootstrap poetry
/usr/lib/python-build-standalone/3.11/bin/python3 -m venv bootstrap
. bootstrap/bin/activate
pip install poetry 'poetry-plugin-bundle @ git+https://github.com/python-poetry/poetry-plugin-bundle@9773b698657023ec7d71747e64525e0d6d171248'
- |
# install poetry with poetry own poetry.lock
cd poetry-{{version}}
../bootstrap/bin/poetry bundle venv ../poetry --python /usr/lib/python-build-standalone/3.11/bin/python3
- find poetry -name '__pycache__' -exec rm -r {} +
- cp -r -n poetry {{src}}/usr/lib/
The blueprint fetch
keyword contains a URL template pointing to poetry releases. Downloaded files are locked in a lockfile versionned here.
Click here to see poetry release hashes
https://github.com/upciti/wakemeops/blob/main/blueprints/dev/poetry/ops2deb.lock.yml
- url: https://github.com/python-poetry/poetry/archive/refs/tags/1.4.0.tar.gz
sha256: 0102c16680c6756d5d3377d5a796d6e03e19e3e64fd8cbf1198ab9d6a3f84dfc
timestamp: 2023-03-14 18:24:20+00:00
- url: https://github.com/python-poetry/poetry/archive/refs/tags/1.4.1.tar.gz
sha256: 506965564014206e2f562aab95eb33f20a6b71c445eaeb6eb6f5c99befaa27f0
timestamp: 2023-03-19 15:18:17+00:00
- url: https://github.com/python-poetry/poetry/releases/download/1.1.12/poetry-1.1.12-linux.tar.gz
sha256: 000f332f7f98c0dc5d317e0bd4e25d44e13293767d199fd964aae7c01284bcbe
timestamp: 2021-12-15 19:38:44+00:00
- url: https://github.com/python-poetry/poetry/releases/download/1.1.13/poetry-1.1.13-linux.tar.gz
sha256: 24037d8e597203571b3d3361da729fb8c7faf1cc1c27bd236f66f5f94fc63477
timestamp: 2022-02-16 10:41:46+00:00
- url: https://github.com/python-poetry/poetry/releases/download/1.1.14/poetry-1.1.14-linux.tar.gz
sha256: 5d02a16b3bd7a515b5b97e58a3832efa5a95e51a40a5d376566ac18a276f0ae9
timestamp: 2022-07-08 17:24:01+00:00
- url: https://github.com/python-poetry/poetry/releases/download/1.1.15/poetry-1.1.15-linux.tar.gz
sha256: 1c7e6a5175dbabe240cf10fd8167f31a07c404d7cd0b55cb5c68c160049cf486
timestamp: 2023-01-26 13:27:19+00:00