diff --git a/README.rst b/README.rst index 5b8b568..d3fd1d1 100644 --- a/README.rst +++ b/README.rst @@ -52,6 +52,13 @@ interpreter (and only the Python3 package installs scripts):: News ---- + * 2024-07-03: **Version 0.11.0**. See the `download page + `__. + + * Breaking changes: + + * remove support for running stdeb using Python 2. + * 2024-11-14: **Version 0.10.1**. See the `download page `__. This is the last planned release of stdeb which supports running stdeb diff --git a/stdeb/util.py b/stdeb/util.py index 26b656e..61b1343 100644 --- a/stdeb/util.py +++ b/stdeb/util.py @@ -26,10 +26,12 @@ 'apply_patch', 'repack_tarball_with_debianized_dirname', 'expand_sdist_file', 'stdeb_cfg_options'] -DH_MIN_VERS = '9' # Fundamental to stdeb >= 0.10 -DH_DEFAULT_VERS = 9 +DH_MIN_VERS = '12' # Fundamental to stdeb >= 0.10 +DH_DEFAULT_VERS = 12 -PYTHON_ALL_MIN_VERS = '2.6.6-3' +# Choose the oldest from Debian oldoldstable and currently supported Ubuntu LTS +PYTHON_ALL_MIN_VERS = '2.7.16-1' +PYTHON3_ALL_MIN_VERS = '3.7.3-1' try: # Python 2.x @@ -1231,7 +1233,7 @@ def __init__(self, sequencer_options.append('--with python-virtualenv') else: - sequencer_options.append('--buildsystem=python_distutils') + sequencer_options.append('--buildsystem=pybuild') self.override_dh_virtualenv_py = '' if with_dh_systemd: @@ -1560,6 +1562,14 @@ def build_dsc(debinfo, if len(python3_defaults_version_str) == 0: log.warn('This version of stdeb requires python3-all, ' 'but you do not have this package installed.') + else: + if not dpkg_compare_versions( + python3_defaults_version_str, 'ge', PYTHON3_ALL_MIN_VERS + ): + log.warn('This version of stdeb requires python-all >= ' + '%s. Use stdeb 0.6.0 or older to generate source ' + 'packages that use python-support.' % ( + PYTHON_ALL_MIN_VERS,)) # D. restore debianized tree os.rename(fullpath_repackaged_dirname+'.debianized', @@ -1605,7 +1615,7 @@ def build_dsc(debinfo, %(uploaders)sSection: %(debian_section)s Priority: optional Build-Depends: %(build_depends)s -Standards-Version: 3.9.1 +Standards-Version: 4.7.0 %(source_stanza_extras)s %(control_py2_stanza)s