Outils pour utilisateurs

Outils du site


tech:notes_paquet_debian_python

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
tech:notes_paquet_debian_python [2025/05/24 12:19] Jean-Baptistetech:notes_paquet_debian_python [2026/06/07 19:12] (Version actuelle) – modification externe 127.0.0.1
Ligne 1: Ligne 1:
 +<!DOCTYPE markdown>
 +{{tag>Brouillon Debian Package Python Ansible}}
 +
 +# 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://wiki.debian.org/Python/LibraryStyleGuide?action=show&redirect=Python%2FPackaging
 +* https://www.debian.org/doc/debian-policy/ch-controlfields.html
 +* https://www.debian.org/doc/manuals/debmake-doc/ch08.en.html
 +
 +
 +~~~bash
 +git clone https://github.com/willthames/ansible-lint
 +cd ansible-lint
 +mkdir debian
 +~~~
 +
 +
 +`debian/changelog`
 +~~~
 +ansible-lint (3.4.9-1) unstable; urgency=medium
 +
 +  * Initial release
 +
 + -- Jean-Baptiste <nospam@me.null>  Thu, 05 Jan 2017 15:33:33 +0200
 +~~~
 +
 +** Attention, 2 espaces après l'adresse email.**
 +
 +Voici les règles de syntaxe
 +~~~
 +package (version) distribution(s); urgency=urgency
 +            [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>[two spaces]  date
 +~~~
 +
 +`debian/control`
 +~~~
 +Source: ansible-lint
 +Section: python
 +Priority: optional
 +Maintainer: Jean-Baptiste <nospam@me.null>
 +Build-Depends: debhelper (>= 9), dh-python, python
 +Standards-Version: 3.4.9
 +Homepage: https://github.com/willthames/ansible-lint
 +
 +Package: ansible-lint
 +Architecture: all
 +Multi-Arch: foreign
 +Depends: ${misc:Depends}, ${python3:Depends}, python-yaml, python
 +Description: Best practices checker for Ansible
 + Checks playbooks for practices and behavior that could potentially be improved
 +~~~
 +
 +`debian/copyright`
 +~~~
 +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
 +Upstream-Name: ansible-lint
 +Source: https://github.com/willthames/ansible-lint
 +
 +Files: debian/*
 +Copyright: (c) 2017, ACME
 +License: GPL-3
 + Please refer to /usr/share/common-licenses/GPL-3
 +
 +Files: *
 +Copyright: (c) 2013-2014 Will Thames <will@thames.id.au>
 +License: MIT
 +Please refer to https://github.com/willthames/ansible-lint/blob/master/LICENSE
 +~~~
 +
 +`debian/rules`
 +~~~
 +#!/usr/bin/make -f
 +#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/tmp --no-compile -O0 --install-layout=deb
 +~~~
 +
 +
 +~~~bash
 +debuild -us -uc -b
 +~~~
 +
 +
 +
 +## Autres 
 +
 +`debian/rules`
 +~~~
 +#!/usr/bin/make -f
 +
 +%:
 +        dh $@
 +~~~
 +
  

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki