tech:notes_paquet_debian_python
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| tech:notes_paquet_debian_python [2025/03/24 15:06] – créée - modification externe 127.0.0.1 | tech:notes_paquet_debian_python [2026/06/07 19:12] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | < | ||
| + | {{tag> | ||
| + | |||
| + | # Notes paquet Debian Python | ||
| + | |||
| + | Création de package Debian à partir de PIP Python. Création du package **ansible-lint** | ||
| + | |||
| + | Voir exemple [[notes_slurm-web_et_pyslurm]] | ||
| + | |||
| + | Voir aussi : | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | |||
| + | |||
| + | ~~~bash | ||
| + | git clone https:// | ||
| + | cd ansible-lint | ||
| + | mkdir debian | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | `debian/ | ||
| + | ~~~ | ||
| + | ansible-lint (3.4.9-1) unstable; urgency=medium | ||
| + | |||
| + | * Initial release | ||
| + | |||
| + | -- Jean-Baptiste < | ||
| + | ~~~ | ||
| + | |||
| + | ** Attention, 2 espaces après l' | ||
| + | |||
| + | Voici les règles de syntaxe | ||
| + | ~~~ | ||
| + | package (version) distribution(s); | ||
| + | [optional blank line(s), stripped] | ||
| + | * change details | ||
| + | more change details | ||
| + | [blank line(s), included in output of dpkg-parsechangelog] | ||
| + | * even more change details | ||
| + | [optional blank line(s), stripped] | ||
| + | -- maintainer name <email address> | ||
| + | ~~~ | ||
| + | |||
| + | `debian/ | ||
| + | ~~~ | ||
| + | Source: ansible-lint | ||
| + | Section: python | ||
| + | Priority: optional | ||
| + | Maintainer: Jean-Baptiste < | ||
| + | Build-Depends: | ||
| + | Standards-Version: | ||
| + | Homepage: https:// | ||
| + | |||
| + | Package: ansible-lint | ||
| + | Architecture: | ||
| + | Multi-Arch: foreign | ||
| + | Depends: ${misc: | ||
| + | Description: | ||
| + | | ||
| + | ~~~ | ||
| + | |||
| + | `debian/ | ||
| + | ~~~ | ||
| + | Format: http:// | ||
| + | Upstream-Name: | ||
| + | Source: https:// | ||
| + | |||
| + | Files: debian/* | ||
| + | Copyright: (c) 2017, ACME | ||
| + | License: GPL-3 | ||
| + | | ||
| + | |||
| + | Files: * | ||
| + | Copyright: (c) 2013-2014 Will Thames < | ||
| + | License: MIT | ||
| + | Please refer to https:// | ||
| + | ~~~ | ||
| + | |||
| + | `debian/ | ||
| + | ~~~ | ||
| + | # | ||
| + | #export DH_VERBOSE = 1 | ||
| + | |||
| + | %: | ||
| + | dh $@ --with python2 --buildsystem=pybuild | ||
| + | |||
| + | override_dh_auto_build: | ||
| + | |||
| + | override_dh_auto_install: | ||
| + | python setup.py build --force -b build/ install --force --root=debian/ | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ~~~bash | ||
| + | debuild -us -uc -b | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | |||
| + | ## Autres | ||
| + | |||
| + | `debian/ | ||
| + | ~~~ | ||
| + | # | ||
| + | |||
| + | %: | ||
| + | dh $@ | ||
| + | ~~~ | ||
| + | |||
