Skip to content

Commit fc0b07a

Browse files
birkenfeldbenjaminp
authored andcommitted
Update for 3.7 build, amend purging slightly (#5)
* Build 3.7 as dev version now. * Purge /3.x/ index pages as well.
1 parent fa0e00e commit fc0b07a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build_docs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
# checkout, target, isdev
3535
(BUILDROOT + "/python35", WWWROOT + "/3.5", False),
3636
(BUILDROOT + "/python36", WWWROOT + "/3.6", True),
37+
(BUILDROOT + "/python37", WWWROOT + "/3.7", True),
3738
(BUILDROOT + "/python27", WWWROOT + "/2.7", False),
3839
]
3940
DEVGUIDE_CHECKOUT = BUILDROOT + "/devguide"
@@ -114,7 +115,7 @@ def build_one(checkout, target, isdev, quick):
114115
for fn in os.listdir(targets_dir):
115116
if os.stat(os.path.join(targets_dir, fn)).st_ino == target_ino:
116117
prefixes.append(fn)
117-
to_purge = []
118+
to_purge = prefixes[:]
118119
for prefix in prefixes:
119120
to_purge.extend(prefix + "/" + p for p in changed)
120121
logging.info("Running CDN purge")

0 commit comments

Comments
 (0)