Skip to content

Commit aca7866

Browse files
authored
Merge branch 'main' into sponsors-default-contact
2 parents 694bdb3 + c68d9e4 commit aca7866

File tree

7 files changed

+28
-11
lines changed

7 files changed

+28
-11
lines changed

.github/ISSUE_TEMPLATE/BUG.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
name: "Bug Report"
2-
description: Report a bug with pyton.org website to help us improve
2+
description: Report a bug with python.org website to help us improve
33
title: "Bug: <title>"
44
labels: ["bug", "Triage Required"]
55

66
body:
77
- type: markdown
88
attributes:
99
value: |
10-
This is the repository and issue tracker for the https://www.pyton.org website.
10+
This is the repository and issue tracker for the https://www.python.org website.
1111
1212
If you're looking to file an issue with CPython itself, please click here: [CPython Issues](https://github.com/python/cpython/issues/new/choose).
1313

.github/ISSUE_TEMPLATE/DOCS.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ body:
77
- type: markdown
88
attributes:
99
value: |
10-
This is the repository and issue tracker for the https://www.pyton.org website.
10+
This is the repository and issue tracker for the https://www.python.org website.
1111
1212
If you're looking to file an issue with CPython itself, please click here: [CPython Issues](https://github.com/python/cpython/issues/new/choose).
1313

.github/ISSUE_TEMPLATE/REQUEST.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
name: "Feature Request"
2-
description: Suggest an idea for www.pyton.org
2+
description: Suggest an idea for www.python.org
33
title: "Enhancement: <title>"
44
labels: ["enhancement"]
55

66
body:
77
- type: markdown
88
attributes:
99
value: |
10-
This is the repository and issue tracker for the https://www.pyton.org website.
10+
This is the repository and issue tracker for the https://www.python.org website.
1111
1212
If you're looking to file an issue with CPython itself, please click here: [CPython Issues](https://github.com/python/cpython/issues/new/choose).
1313

downloads/templatetags/download_tags.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ def strip_minor_version(version):
88
return '.'.join(version.split('.')[:2])
99

1010

11+
@register.filter
12+
def has_gpg(files: list) -> bool:
13+
return any(f.gpg_signature_file for f in files)
14+
15+
1116
@register.filter
1217
def has_sigstore_materials(files):
1318
return any(

infra/cdn/main.tf

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,12 @@ resource "fastly_service_vcl" "python_org" {
136136
statement = "req.http.host == \"python.org\""
137137
type = "REQUEST"
138138
}
139+
condition {
140+
name = "Always False"
141+
priority = 10
142+
statement = "false"
143+
type = "RESPONSE"
144+
}
139145

140146
condition {
141147
name = "Don't cache 404s for /static"
@@ -262,9 +268,10 @@ resource "fastly_service_vcl" "python_org" {
262268
}
263269

264270
logging_datadog {
265-
name = "ratelimit-debug"
266-
token = var.datadog_key
267-
region = "US"
271+
name = "ratelimit-debug"
272+
token = var.datadog_key
273+
region = "US"
274+
response_condition = "Always False"
268275
}
269276

270277
logging_s3 {
@@ -361,7 +368,7 @@ resource "fastly_service_vcl" "python_org" {
361368
dynamic "dictionary" {
362369
for_each = var.activate_ngwaf_service ? [1] : []
363370
content {
364-
name = var.edge_security_dictionary
371+
name = var.edge_security_dictionary
365372
force_destroy = true
366373
}
367374
}

templates/downloads/release_detail.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{% extends "base.html" %}
22
{% load boxes %}
33
{% load sitetree %}
4+
{% load has_gpg from download_tags %}
45
{% load has_sigstore_materials from download_tags %}
56
{% load has_sbom from download_tags %}
67
{% load sort_windows from download_tags %}
@@ -51,7 +52,9 @@ <h1 class="page-title">Files</h1>
5152
<th>Description</th>
5253
<th>MD5 Sum</th>
5354
<th>File Size</th>
55+
{% if release_files|has_gpg %}
5456
<th>GPG</th>
57+
{% endif %}
5558
{% if release_files|has_sigstore_materials %}
5659
<th colspan="2"><a href="https://www.python.org/download/sigstore/">Sigstore</a></th>
5760
{% endif %}
@@ -68,7 +71,9 @@ <h1 class="page-title">Files</h1>
6871
<td>{{ f.description }}</td>
6972
<td>{{ f.md5_sum }}</td>
7073
<td>{{ f.filesize|filesizeformat }}</td>
74+
{% if release_files|has_gpg %}
7175
<td>{% if f.gpg_signature_file %}<a href="{{ f.gpg_signature_file }}">SIG</a>{% endif %}</td>
76+
{% endif %}
7277
{% if release_files|has_sigstore_materials %}
7378
{% if f.sigstore_bundle_file %}
7479
<td colspan="2">{% if f.sigstore_bundle_file %}<a href="{{ f.sigstore_bundle_file}}">.sigstore</a>{% endif %}</td>

templates/sponsors/admin/contracts/sponsorship-agreement.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ and international community of Python programmers (the **"Programs"**);
3333
and the PSF previously entered into a Sponsorship Agreement
3434
with the effective date of the
3535
{{ previous_effective|date:"j" }}{{ previous_effective_english_suffix }} of {{ previous_effective|date:"F Y" }}
36-
37-
**WHEREAS**, Sponsor wishes to renew its support the Programs by making a contribution to the PSF.
3836
and a term of one year (the “Sponsorship Agreement”).
37+
38+
**WHEREAS**, Sponsor wishes to renew its support of the Programs by making a contribution to the PSF.
3939
{% else %}
4040
wishes to support the Programs by making a contribution to the PSF.
4141
{% endif %}

0 commit comments

Comments
 (0)