Skip to content

Commit

Permalink
Merge pull request #146 from djangocon/add-pronouns-from-csv
Browse files Browse the repository at this point in the history
🔧 Add speaker pronouns from the speaker information form
  • Loading branch information
drewbrew authored Jul 19, 2023
2 parents e101936 + 17e98e8 commit 4c6d481
Show file tree
Hide file tree
Showing 37 changed files with 86 additions and 28 deletions.
1 change: 1 addition & 0 deletions _presenters/benjamin-zags-zagorsky.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ mastodon: null
name: Benjamin "Zags" Zagorsky
permalink: /presenters/benjamin-zags-zagorsky/
photo_url: /static/img/presenters/benjamin-zags-zagorsky.jpg
pronouns: he/him
slug: benjamin-zags-zagorsky
twitter: null
website: null
Expand Down
1 change: 1 addition & 0 deletions _presenters/charlotte-mays.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ mastodon: https://hachyderm.io/@charlotte
name: Charlotte Mays
permalink: /presenters/charlotte-mays/
photo_url: /static/img/presenters/charlotte-mays.jpeg
pronouns: she/her
slug: charlotte-mays
twitter: null
website: null
Expand Down
1 change: 1 addition & 0 deletions _presenters/cheuk-ting-ho.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ mastodon: https://fosstodon.org/@cheukting_ho
name: Cheuk Ting Ho
permalink: /presenters/cheuk-ting-ho/
photo_url: /static/img/presenters/cheuk-ting-ho.jpeg
pronouns: she/her
slug: cheuk-ting-ho
twitter: cheukting_ho
website: null
Expand Down
1 change: 1 addition & 0 deletions _presenters/chris-may.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ mastodon: https://fosstodon.org/@_chrismay
name: Chris May
permalink: /presenters/chris-may/
photo_url: /static/img/presenters/chris-may.jpeg
pronouns: he/him
slug: chris-may
twitter: _chrismay
website: null
Expand Down
1 change: 1 addition & 0 deletions _presenters/deb-nicholson.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ mastodon: https://freeradical.zone/@baconandcoconut
name: Deb Nicholson
permalink: /presenters/deb-nicholson/
photo_url: ''
pronouns: she/her
slug: deb-nicholson
twitter: baconandcoconut
website: null
Expand Down
1 change: 1 addition & 0 deletions _presenters/denny-biasiolli.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ mastodon: https://mastodon.uno/@dennybiasiolli
name: Denny Biasiolli
permalink: /presenters/denny-biasiolli/
photo_url: /static/img/presenters/denny-biasiolli.jpeg
pronouns: he/him
slug: denny-biasiolli
twitter: dennybiasiolli
website: null
Expand Down
1 change: 1 addition & 0 deletions _presenters/drishti-jain.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ mastodon: null
name: Drishti Jain
permalink: /presenters/drishti-jain/
photo_url: /static/img/presenters/drishti-jain.jpeg
pronouns: she/her
slug: drishti-jain
twitter: drishtijjain
website: null
Expand Down
1 change: 1 addition & 0 deletions _presenters/eliana-rosselli.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ mastodon: null
name: Eliana Rosselli
permalink: /presenters/eliana-rosselli/
photo_url: ''
pronouns: she/her
slug: eliana-rosselli
twitter: null
website: null
Expand Down
1 change: 1 addition & 0 deletions _presenters/elizabeth-garrett-christensen.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ layout: speaker-template
name: Elizabeth Garrett Christensen
permalink: /presenters/elizabeth-garrett-christensen/
photo_url: /static/img/presenters/elizabeth-garrett-christensen.jpeg
pronouns: she/her
slug: elizabeth-garrett-christensen
twitter: sqlliz
website: null
Expand Down
1 change: 1 addition & 0 deletions _presenters/ernesto-rico-schmidt.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ mastodon: https://hachyderm.io/@eigenwijsje
name: Ernesto Rico Schmidt
permalink: /presenters/ernesto-rico-schmidt/
photo_url: /static/img/presenters/ernesto-rico-schmidt.jpeg
pronouns: he/him
slug: ernesto-rico-schmidt
twitter: null
website: null
Expand Down
5 changes: 3 additions & 2 deletions _presenters/felipe.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ company: AfroPython
hidden: false
layout: speaker-template
mastodon: null
name: Felipe
permalink: /presenters/felipe/
name: Felipe de Morais
permalink: /presenters/felipe-de-morais/
photo_url: /static/img/presenters/felipe.jpeg
pronouns: he/him
slug: felipe
twitter: felipedemorais_
website: null
Expand Down
1 change: 1 addition & 0 deletions _presenters/flavio-juvenal.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ mastodon: null
name: Flávio Juvenal
permalink: /presenters/flavio-juvenal/
photo_url: /static/img/presenters/flavio-juvenal.jpg
pronouns: he/him
slug: flavio-juvenal
twitter: flaviojuvenal
website: null
Expand Down
1 change: 1 addition & 0 deletions _presenters/james-walters.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ mastodon: https://fosstodon.org/@jameswalters
name: James Walters
permalink: /presenters/james-walters/
photo_url: ''
pronouns: he/him
slug: james-walters
twitter: null
website: null
Expand Down
1 change: 1 addition & 0 deletions _presenters/josh-thomas.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ mastodon: https://joshthomas.dev/@josh
name: Josh Thomas
permalink: /presenters/josh-thomas/
photo_url: /static/img/presenters/josh-thomas.png
pronouns: he/him
slug: josh-thomas
twitter: null
website: null
Expand Down
1 change: 1 addition & 0 deletions _presenters/kuldeep-pisda.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ mastodon: null
name: Kuldeep Pisda
permalink: /presenters/kuldeep-pisda/
photo_url: /static/img/presenters/kuldeep-pisda.jpeg
pronouns: he/him
slug: kuldeep-pisda
twitter: KdPisda
website: null
Expand Down
1 change: 1 addition & 0 deletions _presenters/marc-gibbons.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ mastodon: https://mastodon.social/@marcgibbons
name: Marc Gibbons
permalink: /presenters/marc-gibbons/
photo_url: /static/img/presenters/marc-gibbons.jpeg
pronouns: he/him/his
slug: marc-gibbons
twitter: null
website: null
Expand Down
1 change: 1 addition & 0 deletions _presenters/mike-hoolehan.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ mastodon: null
name: Mike Hoolehan
permalink: /presenters/mike-hoolehan/
photo_url: ''
pronouns: he/him
slug: mike-hoolehan
twitter: null
website: null
Expand Down
1 change: 1 addition & 0 deletions _presenters/natalia-bidart.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ github: nessita
mastodon: https://fosstodon.org/@nessita
name: Natalia Bidart
permalink: /presenters/natalia-bidart/
pronouns: she/her
slug: natalia-bidart
title: Django Fellow
---
Expand Down
1 change: 1 addition & 0 deletions _presenters/paolo-melchiorre.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ mastodon: https://fosstodon.org/@paulox
name: Paolo Melchiorre
permalink: /presenters/paolo-melchiorre/
photo_url: /static/img/presenters/paolo-melchiorre.jpg
pronouns: he/him
slug: paolo-melchiorre
twitter: pauloxnet
website: null
Expand Down
1 change: 1 addition & 0 deletions _presenters/pat-viafore.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ mastodon: null
name: Pat Viafore
permalink: /presenters/pat-viafore/
photo_url: /static/img/presenters/pat-viafore.png
pronouns: he/him
slug: pat-viafore
twitter: PatViaforever
website: null
Expand Down
3 changes: 2 additions & 1 deletion _presenters/paul-gilzow.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ company: Platform.sh
hidden: false
layout: speaker-template
mastodon: https://higheredweb.social/@gilzow
name: PAUL GILZOW
name: Paul Gilzow
permalink: /presenters/paul-gilzow/
photo_url: /static/img/presenters/paul-gilzow.jpeg
pronouns: he/him/his
slug: paul-gilzow
twitter: gilzow
website: null
Expand Down
1 change: 1 addition & 0 deletions _presenters/pavel-sviridov.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ mastodon: null
name: Pavel Sviridov
permalink: /presenters/pavel-sviridov/
photo_url: /static/img/presenters/pavel-sviridov.jpeg
pronouns: he/they
slug: pavel-sviridov
twitter: null
website: null
Expand Down
1 change: 1 addition & 0 deletions _presenters/philip-james.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ mastodon: https://phildini.net/@phildini
name: Philip James
permalink: /presenters/philip-james/
photo_url: /static/img/presenters/philip-james.png
pronouns: he/him
slug: philip-james
twitter: null
website: null
Expand Down
1 change: 1 addition & 0 deletions _presenters/ramon-huidobro.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ mastodon: https://hola-soy-milk.online/@ramon
name: Ramón Huidobro
permalink: /presenters/ramon-huidobro/
photo_url: /static/img/presenters/ramon-huidobro.jpeg
pronouns: he/him
slug: ramon-huidobro
twitter: hola_soy_milk
website: null
Expand Down
1 change: 1 addition & 0 deletions _presenters/ronald-maravanyika.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ mastodon: null
name: Ronald Maravanyika
permalink: /presenters/ronald-maravanyika/
photo_url: ''
pronouns: he/him
slug: ronald-maravanyika
twitter: ronn_zw
website: null
Expand Down
1 change: 1 addition & 0 deletions _presenters/sage-abdullah.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ mastodon: https://fosstodon.org/@laymonage
name: Sage Abdullah
permalink: /presenters/sage-abdullah/
photo_url: /static/img/presenters/sage-abdullah.jpeg
pronouns: he/him
slug: sage-abdullah
twitter: laymonage
website: null
Expand Down
1 change: 1 addition & 0 deletions _presenters/scott-cranfill.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ mastodon: null
name: Scott Cranfill
permalink: /presenters/scott-cranfill/
photo_url: /static/img/presenters/scott-cranfill.jpeg
pronouns: he/him
slug: scott-cranfill
twitter: scott_ish
website: null
Expand Down
10 changes: 6 additions & 4 deletions _presenters/sheena-o-connell.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@
company: Umuzi
hidden: false
layout: speaker-template
mastodon: https://mastodon.social/@sheenarbw
name: Sheena O'Connell
permalink: /presenters/sheena-o-connell/
photo_url: /static/img/presenters/sheena-oconnell.jpg
photo_url: /static/img/presenters/sheena.jpeg
pronouns: she/her
slug: sheena-o-connell
twitter: null
twitter: sheena_oconnel
website: null
---

I'm currently the CTO of Umuzi - a South African based non-profit organisation focused on launching high-value digital careers for high potential youth in underserved communities. It's the best job ever, I get to build stuff and change lives.
I'm currently the CTO of Umuzi, our mission is to reduce social inequality in Africa through digital education. My role involves: figuring out what to teach and how to teach it, writing software (we use Django a LOT), building management systems, creating new products, and mentorship.

I spend my free time climbing, paragliding, reading, and trying to play guitar.
Outside of work I like to juggle as many hobbies as I can - BJJ, climbing, hiking and music are high on my list.
16 changes: 0 additions & 16 deletions _presenters/sheena.md

This file was deleted.

1 change: 1 addition & 0 deletions _presenters/stephen-mitchell.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ mastodon: null
name: Stephen Mitchell
permalink: /presenters/stephen-mitchell/
photo_url: ''
pronouns: no preference
slug: stephen-mitchell
twitter: null
website: null
Expand Down
1 change: 1 addition & 0 deletions _presenters/thiago-bellini-ribeiro.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ mastodon: null
name: Thiago Bellini Ribeiro
permalink: /presenters/thiago-bellini-ribeiro/
photo_url: /static/img/presenters/thiago-bellini-ribeiro.jpeg
pronouns: he/they
slug: thiago-bellini-ribeiro
twitter: _bellini666
website: null
Expand Down
1 change: 1 addition & 0 deletions _presenters/tobias-mcnulty.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ mastodon: https://fosstodon.org/@tobiasmcnulty
name: Tobias McNulty
permalink: /presenters/tobias-mcnulty/
photo_url: /static/img/presenters/tobias-mcnulty.jpeg
pronouns: he/him
slug: tobias-mcnulty
twitter: tobiasmcnulty
website: null
Expand Down
1 change: 1 addition & 0 deletions _presenters/velda-kiara.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ mastodon: null
name: Velda Kiara
permalink: /presenters/velda-kiara/
photo_url: ''
pronouns: she/her
slug: velda-kiara
twitter: VeldaKiara
website: null
Expand Down
1 change: 1 addition & 0 deletions _presenters/victor-ogunjobi.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ mastodon: null
name: Victor Ogunjobi
permalink: /presenters/victor-ogunjobi/
photo_url: /static/img/presenters/victor-ogunjobi.jpeg
pronouns: he/they
slug: victor-ogunjobi
twitter: chemicopy_
website: null
Expand Down
11 changes: 6 additions & 5 deletions _schedule/tutorials/2023-10-08-09-00-t2-django-3-airflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ group: tutorials
layout: session-details
permalink: /tutorials/django-3-airflow/
presenter_slugs:
- sheena
- sheena-o-connell
published: true
room: Tutorial Track C
sitemap: true
Expand All @@ -30,7 +30,8 @@ track: t2
It would be useful if attendees were familiar with Django coming into this session. No prior experience with Airflow is needed.

What we'll cover:
- What Airflow is all about and what kinds of problems you could use it to solve
- Airflow development setup
- Getting to grips with Dags and operators
- Integration with Django

- What Airflow is all about and what kinds of problems you could use it to solve
- Airflow development setup
- Getting to grips with Dags and operators
- Integration with Django
9 changes: 9 additions & 0 deletions bin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,12 @@
4. Generate breaks/lunch/etc.: from this repo: run `python bin/process.py generate-2023-placeholders --create-keynotes 2023-10-15` (`2023-10-15` is the Sunday before talks start, which is usually tutorial day but is not for 2023)
5. Reformat: `python bin/process.py fmt`
6. Commit the `_schedule` folder

## Add pronouns

After speakers have completed the speaker information form:

1. Update bin/process.py, function `add_pronouns_from_csv` to make sure you have the right field indexes
2. Export the speaker information form responses from Google sheets
3. `python bin/process.py /path/to/exported.csv`
4. Commit the changes to `_presenters/`
30 changes: 30 additions & 0 deletions bin/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,36 @@ def generate_lunch(
print(f"Saved to {output_path}")


@app.command()
def add_pronouns_from_csv(
csv_path: str,
) -> None:
"""Load pronouns from the speaker info form and add them to speakers"""
csv_data = csv.reader(
Path(csv_path).read_text().splitlines(),
)
# field 1 = speaker 1 name
# field 3 = speaker 1 pronouns
# NOTE: as of 2023-07-19, nobody has filled in the second speaker details
# and we only have one multi-speaker presentation, so it's fine to hand-update
# that one
pronouns = {row[1]: (row[3] or "").strip().casefold() for row in csv_data}
speaker_paths = Path("_presenters").glob("*.md")
for speaker in speaker_paths:
post = frontmatter.loads(speaker.read_text())
presenter = Presenter(**post.metadata)
try:
speaker_pronoun = pronouns[presenter.name]
except KeyError:
continue
if not speaker_pronoun:
continue
presenter.pronouns = speaker_pronoun.casefold()
output_path = Path(f"_presenters/{presenter.slug}.md")
post.metadata.update(presenter.model_dump(exclude_unset=True))
output_path.write_text(frontmatter.dumps(post) + "\n")


@app.command()
def generate_opening_remarks(
start_time: datetime,
Expand Down

0 comments on commit 4c6d481

Please sign in to comment.