#!/usr/bin/python

"""
Shared configuration-level variables.
"""

from glob import glob
import os
import os.path

debian_releases = ['wheezy', 'jessie']
ubuntu_releases = ['precise', 'trusty', 'wily', 'xenial']
releases = debian_releases + ubuntu_releases

debian_tags = { 'wheezy' : 'debian7.0', 'jessie' : 'debian8.0~0.2' }
ubuntu_tags = {
	'precise' : 'ubuntu12.04',
	'trusty' : 'ubuntu14.04',
	'wily' : 'ubuntu15.10~0.1',
	'xenial' : 'ubuntu16.04~0.1',
}
release_tags = dict(debian_tags.items() + ubuntu_tags.items())

package_search_paths = ['athena/*', 'debathena/*', 'third/*']
package_root = os.environ['DEBATHENA_CHECKOUT_HOME']

package_paths = [ os.path.join(package_root, path) for path in package_search_paths ]
package_paths = sum(map(glob, package_paths), [])
package_map = { path.split('/')[-1] : path for path in package_paths }

arches = ['i386', 'amd64', 'armel', 'armhf', 'sparc']
builders = {
    'i386' : 'local',
    'amd64' : 'local',
    'armel' : 'hecatoncheires.mit.edu',
    'armhf' : 'hecatoncheires.mit.edu',
    'sparc' : 'package-fusion.mit.edu',
}
def arch_for_release(arch, release):
    "Check if we build the specified arch for given suite."

    # We currently don't have the infrastructure for others
    return arch == 'i386' or arch == 'amd64'

release_arches = { release : [arch for arch in arches if arch_for_release(arch, release)] for release in releases }
# Arch on which all packages are built
all_arch = 'amd64'

source_package_dir = os.environ['DEBATHENA_SOURCE_DIR']
binary_package_dir = os.environ['DEBATHENA_BINARY_DIR']
orig_tarball_dir = os.environ['DEBATHENA_ORIG_DIR']
apt_root_dir = os.environ['DEBATHENA_APT_DIR']
lock_file_path = os.environ['DEBATHENA_LOCK_FILE']
setup_hook_path = os.environ['DEBATHENA_SETUP_HOOK']

upstream_tarball_chroot = 'upstream-tarball-area'

release_tag_key = "0D8A9E8F"

@@ -107,16 +107,148 @@
 s.path%0A%0A
+# If you edit these releases and tags, please also update%0A# debian-versions.sh in scripts.git (checked out at /mit/debathena/bin).%0A%0A
 debian_r
@@ -276,16 +276,27 @@
 'jessie'
+, 'stretch'
 %5D%0Aubuntu
@@ -408,16 +408,20 @@
 tags = %7B
+%0A   
  'wheezy
@@ -436,16 +436,20 @@
 ian7.0',
+%0A   
  'jessie
@@ -466,14 +466,44 @@
 n8.0
-~0.2' 
+',%0A    'stretch' : 'debian9.0~0.1',%0A
 %7D%0Aub

Add stretch and bump jessie tag to final