-invirt-images (0.0.10) precise; urgency=medium
+invirt-images (0.0.11) bionic; urgency=medium
+
+ * Make package use setup.py
+ * Update debian files to modern era
+
+ -- Ben Steffen <bds@mit.edu> Sat, 07 Dec 2019 16:24:47 -0500
+
+invirt-images (0.0.10) bionic; urgency=medium
* Fix Depends: so that it works with an older version of debhelper
- -- me <me@iya> Mon, 25 Nov 2019 22:29:27 -0500
+ -- Ben Steffen <bds@mit.edu> Mon, 25 Nov 2019 22:29:27 -0500
-invirt-images (0.0.9) precise; urgency=medium
+invirt-images (0.0.9) bionic; urgency=medium
* Rename load_image to update_image
-- Ben Steffen <bds@mit.edu> Mon, 25 Nov 2019 01:52:32 -0500
-invirt-images (0.0.8) precise; urgency=medium
+invirt-images (0.0.8) bionic; urgency=medium
* Use argparse instead of optparse
* Change cli to resemble git
-- Ben Steffen <bds@mit.edu> Mon, 25 Nov 2019 01:39:57 -0500
-invirt-images (0.0.7) precise; urgency=medium
+invirt-images (0.0.7) bionic; urgency=medium
* Port to Python 3
Source: invirt-images
-Section: base
-Priority: extra
+Section: libs
+Priority: optional
Maintainer: Invirt project <invirt@mit.edu>
-Build-Depends: debhelper (>= 7)
-Standards-Version: 3.9.3
+Build-Depends: debhelper (>= 11), python3, python3-setuptools, dh-python
+Standards-Version: 4.1.4
+X-Python3-Version: >= 3.6
Package: invirt-images
Architecture: all
-Depends: ${shlibs:Depends}, ${misc:Depends}, python3 >= 3.6.5-2, invirt-database
+Depends: ${python3:Depends}, ${misc:Depends}, python3 (>= 3.6),
+ invirt-database
Description: Invirt's tools for managing disk images for VMs
These install the tools for managing disk images for Invirt
VMs. Images can share common mirrors. The tools include mechanisms
#!/usr/bin/make -f
-%:
- dh $@
+export PYBUILD_NAME=invirt-images
+
+%:
+ dh $@ --with python3 --buildsystem=pybuild
--- /dev/null
+3.0 (native)
-#!/usr/bin/env python3
+#!/usr/bin/python3
import os
import subprocess
--- /dev/null
+#!/usr/bin/python3
+
+from os import path
+from debian_bundle.changelog import Changelog
+from debian_bundle.deb822 import Deb822
+from email.utils import parseaddr
+from glob import glob
+from setuptools import setup, find_packages
+
+version = Changelog(open(path.join(path.dirname(__file__), 'debian/changelog')).read()).\
+ get_version().full_version
+
+maintainer_full = Deb822(open(path.join(path.dirname(__file__), 'debian/control')))['Maintainer']
+maintainer, maintainer_email = parseaddr(maintainer_full)
+
+setup(
+ name='invirt-images',
+ version=version,
+ maintainer=maintainer,
+ maintainer_email=maintainer_full,
+
+ scripts=glob('scripts/*')
+)