Checklist for packaging Python modules
- Check there are no git submodules
- Compare github and pypi release, use github if it is the only one with tests.
- Create package on salsa: https://salsa.debian.org/python-team/modules/
- Add debian/copyright
- debhelper 11 in debian/control and debian/compat
- Update Standards-Version.
- Run wrap-and-sort
- Write a package description
Maintainer: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>
Uploaders: Edward Betts <edward@4angle.com>
- Don't bother with a package for Python 2, just do Python 3
- Check debian/watch uses https
- Run
uscan --no-download --verbose
to check debian/watch is correct
- Package should contain debian/gbp.conf
- Python packages use debian/master, so need to
git branch -d master
git remote add origin git@salsa.debian.org:python-team/modules/$PACKAGE.git
- Include Vcs-Browser and Vcs-Git fields in debian/control
- pytest coverage can be disabled by adding:
export PYTEST_ADDOPTS=--no-cov
- Documentation package requirements:
dh $@ --with python3,sphinxdoc --buildsystem=pybuild
- add
override_dh_auto_build
to call sphinx-build
- add
override_dh_installdocs
with:
dh_installdocs --doc-main-package=python3-$PACKAGE -p python-$PACKAGE-doc
dh_installdocs -p python3-$PACKAGE
- add a python-$PACKAGE-doc.docs FILE
- Add
python-transliterate-doc.docs
to debian
- Run
autopkgtest $CHANGES_FILE -- schroot sid-amd64-sbuild
- File ITP, including:
- I plan to maintain this package as part of the python modules team.
-b -H 'X-Debbugs-CC: debian-python@lists.debian.org'
- Include ITP bug number in debian/changelog
- Build package using
sbuild
debsign
dput
- Wait for package to be accepted.
gbp buildpackage --git-tag-only --git-sign-tags
git push --tags