Skip to content

Commit 244c345

Browse files
committed
Add _data/conferences.yml
Update conferences main script Update / Include conferences in Spanish
1 parent b9507c6 commit 244c345

File tree

8 files changed

+92
-100
lines changed

8 files changed

+92
-100
lines changed

.github/workflows/conference.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
python-version: "3.11"
2323

2424
- name: Install dependencies
25-
run: pip install PyGithub pre-commit
25+
run: pip install PyGithub PyYAML pre-commit
2626

2727
- name: Run script
2828
env:

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ _includes/header.html
66
_includes/social.html
77
_includes/social-item.html
88
_includes/svg_symbol.html
9-
conferences.md
9+
_data/conferences.yml

_articles/es/conferences.md

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,4 @@ DESCRIPCIÓN DE LA CONFERENCIA EN UNA FRASE. Asegúrese de vincular a la confere
2828

2929
Estas son algunas de las próximas conferencias destacadas en las que puedes encontrar a Black Python Developers involucrados en el escenario o entre bastidores
3030

31-
## DjangoCon US (16-20 Octubre 2023) - Durham, NC, USA
32-
33-
[DjangoCon US](https://2023.djangocon.us/) es una conferencia internacional de cinco días para la comunidad por la comunidad sobre el marco de desarrollo web Django, que se celebra cada año en América del Norte.
34-
35-
### Ponentes:
36-
37-
- Dawn Wages - Potencie su entorno de desarrollo de Python y Django con VS Code y Dev Containers
38-
- Kojo Idrissa - Anfitriona de Orientación/Bienvenida y Charlas Relámpago
39-
- Abigail Mesrenyame Dogbe - Ponencia magistral: Encontrar un Propósito en el Código Abierto a Través de la Creación de Comunidades
40-
- Velda Kiara - Creación de potentes API con Django, Django Rest Framework y OpenAPI
41-
- Felipe de Morais - AfroPython: Usando Django para cambiar la vida de las personas negras en Brasil
42-
- Abigail Afi Gbadago - Estrategias para manejar conflictos y reversiones en migraciones de bases de datos de Django
43-
- Víctor Ogunjobi - Nada para Nosotros, sin Nosotros; Romper el sesgo inconsciente en la construcción de productos
44-
- Jay Miller - Panel de discusión: ¿Quién me puso a cargo? Más allá de la codificación del día a día en Django
31+
{% include conferences.html %}

_conferences/__main__.py

Lines changed: 19 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,25 @@
11
import os
22
import re
3-
from datetime import datetime
3+
from datetime import datetime, time
44
from pathlib import Path
55

6+
import yaml
67
from github import Auth, Github
78

89
TOKEN = os.getenv("GITHUB_TOKEN", "")
910
ROOT = Path(__file__).parent.parent
10-
conferences_path = ROOT / "conferences.md"
11+
conferences_path = ROOT / "_data/conferences.yml"
1112

1213
auth = Auth.Token(TOKEN)
1314
g = Github(auth=auth)
1415

1516
repo = g.get_repo("BlackPythonDevs/blackpythondevs.github.io")
1617
open_issues = repo.get_issues(state="open", labels=["conference"])
17-
18-
markdownContent = ""
18+
conferences = []
19+
today = datetime.combine(datetime.now(), time())
1920

2021
for issue in open_issues:
21-
# print(issue.title)
2222
if "conference" in [label.name for label in issue.labels]:
23-
# print(repr(issue.body))
2423
# Extract fields from issue body
2524
name_match = re.search(
2625
r"Conference Name(?:\r\n|\n){2}(.*?)(?:\r\n|\n){2}", issue.body
@@ -47,35 +46,23 @@
4746
)
4847

4948
if dates_match:
50-
conferenceDates = dates_match.group(1)
49+
conferenceDates = dates_match[1]
5150
# Parse the end date of the conference
5251
endDateStr = conferenceDates.split("-")[1].strip()
5352
endDate = datetime.strptime(endDateStr, "%d %b %Y")
5453
# Check if the conference end date is greater than today
55-
if endDate > datetime.now():
56-
markdownContent += f"""
57-
## {name_match.group(1)} ({dates_match.group(1)}) - {location_match.group(1)}
58-
59-
{summary_match.group(1)}
60-
61-
### Speaking
62-
63-
{speaking_match.group(1)}
64-
"""
65-
66-
if markdownContent == "":
67-
markdownContent = "No conferences"
68-
69-
with conferences_path.open("r") as f:
70-
content = f.read()
71-
72-
newContent = re.sub(
73-
r"<!-- conferences starts -->.*<!-- conferences ends -->",
74-
f"<!-- conferences starts -->\n{markdownContent}\n<!-- conferences ends -->",
75-
content,
76-
flags=re.DOTALL,
77-
)
54+
if endDate >= today:
55+
conference = {
56+
"name": name_match[1],
57+
"url": url_match[1],
58+
"dates": dates_match[1],
59+
"type": type_match[1],
60+
"location": location_match[1],
61+
"summary": summary_match[1],
62+
"speaking": speaking_match[1],
63+
}
64+
conferences.append(conference)
7865

79-
# Write the new content to the file
66+
# Write the conferences to the _data/conferences.yml file
8067
with conferences_path.open("w") as f:
81-
f.write(newContent)
68+
yaml.dump(conferences, f)

_data/conferences.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
- dates: 6 nov - 11 Nov 2023
2+
location: Zanzibar, Tanzania
3+
name: DjangoCon Africa
4+
speaking: "- Anna Makarudze - Empowering Minorities in Tech Communities and Promoting\
5+
\ Inclusivity.\r\n- Atieno Ouma - Improving Django Queryset Optimization with\
6+
\ DRY Principles.\r\n- Brayan Kai Mwanyumba - Fostering Inclusion in Open Source:\
7+
\ Opportunities for Individuals with Disabilities.\r\n- Busola Marcus - Unleashing\
8+
\ the Potential of Remote Work for African Tech Professionals.\r\n- Chris Achinga\
9+
\ - Workshop: Building Authentication APIs with Django.\r\n- Daniele Procida -\
10+
\ Exploring the Parallels Between Music, Software, and African Culture.\r\n- Dawn\
11+
\ Wages - Enhancing Python/Django Development with Visual Studio Code's Dev Containers.\r\
12+
\n- Eric Odhiambo - Optimizing Django Admin with Typesense for Large Datasets.\r\
13+
\n- Eva Nanyonga - Mastering API Testing in Django.\r\n- Flavio Percoco - Bringing\
14+
\ Your Software Ideas to Life.\r\n- Fuad Habib - Django: Empowering African Youth\
15+
\ for Entrepreneurship and Job Creation.\r\n- Honza Kral - Transforming Software\
16+
\ Ideas into Reality: A Django Core Contributor's Perspective.\r\n- Jon Atkinson\
17+
\ - Rethinking Cloud as the Default: Exploring Simpler Deployment Options.\r\n\
18+
- Joseph Adediji - Unleashing the Full Potential of Django's Management Commands\
19+
\ for Creative Solutions.\r\n- Joseph Sowah - Workshop: Building, Deploying, and\
20+
\ Automating Django Apps on Cloud Infrastructure.\r\n- Kojo Idrissa - Keynote:\
21+
\ Global Patterns in Problem-Solving.\r\n- Lidya Tilahun - E-Farming: Advancing\
22+
\ Rural Farmers' Interests through Digital Agriculture.\r\n- Mariam Muhammed -\
23+
\ Enhancing Django's Performance with Caching Strategies.\r\n- Mariusz Felisiak\
24+
\ - Exploring the Depths of Django ORM Lookups.\r\n- Omotola Omotayo - Navigating\
25+
\ Career Paths in Open-Source Software: Insights from Outreachy Community Manager.\r\
26+
\n- Robson Kanhalelo - Workshop: Building Real-Time Space Data Web Applications\
27+
\ with Python and Django.\r\n- Ruth Ikegah - Open Source Career Opportunities:\
28+
\ A Path to New Horizons.\r\n- Samweli Twesa Mwakisambwe - Harnessing Open-Source\
29+
\ Python Tools for Geospatial Data Visualization and Analysis.\r\n- Sheena O'Connell\
30+
\ - Adapting to COVID Disruptions with Django: Umuzi's Journey.\r\n- Tahaa Farooq\
31+
\ - Building Security Tools with Django: Web Application for Security Scans.\r\
32+
\n- Victor Jotham Ashioya - Workshop: Deploying Machine Learning Models with Django.\r\
33+
\n- Vuyisile Ndlovu - Mastering Debugging: Systematic Approaches and Python Tools\
34+
\ for Developers."
35+
summary: DjangoCon Africa will include 3 days of single-track talks, 2 days of workshops
36+
and sprints, through a total of 27 speakers, and one day of touring for international
37+
visitors. [Link here](https://2023.djangocon.africa/news/announcing-djangocon-africa-2023/)
38+
type: both
39+
url: https://2023.djangocon.africa/
40+
- dates: 16 Oct - 20 Oct 2023
41+
location: Durham, NC, USA
42+
name: DjangoCon US
43+
speaking: "- Dawn Wages - Supercharge your Python and Django Development Environment\
44+
\ with VS Code and Dev Containers\r\n- Kojo Idrissa - Orientation/Welcome & Lightning\
45+
\ Talks Host\r\n- Abigail Mesrenyame Dogbe - Keynote: Finding Purpose in Open\
46+
\ Source Through Community Building\r\n- Velda Kiara - Building Powerful APIs\
47+
\ with Django, Django Rest Framework, and OpenAPI\r\n- Felipe de Morais - AfroPython:\
48+
\ Using Django to change black people's life in Brazil\r\n- Abigail Afi Gbadago\
49+
\ - Strategies for handling conflicts and rollbacks in Django database migrations\r\
50+
\n- Victor Ogunjobi - Nothing for Us, Without Us; Breaking Unconscious Bias in\
51+
\ Building Products\r\n- Jay Miller - Panel Discussion: Who put me in charge?\
52+
\ Moving beyond day-to-day coding in Django"
53+
summary: '[DjangoCon US](https://2023.djangocon.us/) is a five-day international
54+
conference for the community by the community about the Django web framework,
55+
held each year in North America.'
56+
type: in-person
57+
url: https://2023.djangocon.us/

_includes/conferences.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{% if site.data.conferences.size > 0 %} {% for conference in site.data.conferences %}
2+
<div class="conference">
3+
<h2><a href="{{ conference.url }}">{{ conference.name }}</a> ({{ conference.dates }}) - {{ conference.location }}</h2>
4+
<p>Type: {{ conference.type }}</p>
5+
{{ conference.summary | markdownify }}
6+
<h3>Speaking:</h3>
7+
<p>{{ conference.speaking | markdownify }}</p>
8+
</div>
9+
{% endfor %} {% else %}
10+
<b>No conferences</b>
11+
{% endif %}

conferences.md

Lines changed: 1 addition & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -28,55 +28,4 @@ ONE SENTENCE DESCRIPTION OF THE CONFERENCE. Be sure to link to the conference it
2828

2929
Here are some highlighted upcoming conferences where you can find Black Python Developers involved on stage or behind the scenes
3030

31-
<!-- conferences starts -->
32-
33-
## DjangoCon Africa (6 nov - 11 Nov 2023) - Zanzibar, Tanzania
34-
35-
DjangoCon Africa will include 3 days of single-track talks, 2 days of workshops and sprints, through a total of 27 speakers, and one day of touring for international visitors. [Link here](https://2023.djangocon.africa/news/announcing-djangocon-africa-2023/)
36-
37-
### Speaking
38-
39-
- Anna Makarudze - Empowering Minorities in Tech Communities and Promoting Inclusivity.
40-
- Atieno Ouma - Improving Django Queryset Optimization with DRY Principles.
41-
- Brayan Kai Mwanyumba - Fostering Inclusion in Open Source: Opportunities for Individuals with Disabilities.
42-
- Busola Marcus - Unleashing the Potential of Remote Work for African Tech Professionals.
43-
- Chris Achinga - Workshop: Building Authentication APIs with Django.
44-
- Daniele Procida - Exploring the Parallels Between Music, Software, and African Culture.
45-
- Dawn Wages - Enhancing Python/Django Development with Visual Studio Code's Dev Containers.
46-
- Eric Odhiambo - Optimizing Django Admin with Typesense for Large Datasets.
47-
- Eva Nanyonga - Mastering API Testing in Django.
48-
- Flavio Percoco - Bringing Your Software Ideas to Life.
49-
- Fuad Habib - Django: Empowering African Youth for Entrepreneurship and Job Creation.
50-
- Honza Kral - Transforming Software Ideas into Reality: A Django Core Contributor's Perspective.
51-
- Jon Atkinson - Rethinking Cloud as the Default: Exploring Simpler Deployment Options.
52-
- Joseph Adediji - Unleashing the Full Potential of Django's Management Commands for Creative Solutions.
53-
- Joseph Sowah - Workshop: Building, Deploying, and Automating Django Apps on Cloud Infrastructure.
54-
- Kojo Idrissa - Keynote: Global Patterns in Problem-Solving.
55-
- Lidya Tilahun - E-Farming: Advancing Rural Farmers' Interests through Digital Agriculture.
56-
- Mariam Muhammed - Enhancing Django's Performance with Caching Strategies.
57-
- Mariusz Felisiak - Exploring the Depths of Django ORM Lookups.
58-
- Omotola Omotayo - Navigating Career Paths in Open-Source Software: Insights from Outreachy Community Manager.
59-
- Robson Kanhalelo - Workshop: Building Real-Time Space Data Web Applications with Python and Django.
60-
- Ruth Ikegah - Open Source Career Opportunities: A Path to New Horizons.
61-
- Samweli Twesa Mwakisambwe - Harnessing Open-Source Python Tools for Geospatial Data Visualization and Analysis.
62-
- Sheena O'Connell - Adapting to COVID Disruptions with Django: Umuzi's Journey.
63-
- Tahaa Farooq - Building Security Tools with Django: Web Application for Security Scans.
64-
- Victor Jotham Ashioya - Workshop: Deploying Machine Learning Models with Django.
65-
- Vuyisile Ndlovu - Mastering Debugging: Systematic Approaches and Python Tools for Developers.
66-
67-
## DjangoCon US (16 Oct - 20 Oct 2023) - Durham, NC, USA
68-
69-
[DjangoCon US](https://2023.djangocon.us/) is a five-day international conference for the community by the community about the Django web framework, held each year in North America.
70-
71-
### Speaking
72-
73-
- Dawn Wages - Supercharge your Python and Django Development Environment with VS Code and Dev Containers
74-
- Kojo Idrissa - Orientation/Welcome & Lightning Talks Host
75-
- Abigail Mesrenyame Dogbe - Keynote: Finding Purpose in Open Source Through Community Building
76-
- Velda Kiara - Building Powerful APIs with Django, Django Rest Framework, and OpenAPI
77-
- Felipe de Morais - AfroPython: Using Django to change black people's life in Brazil
78-
- Abigail Afi Gbadago - Strategies for handling conflicts and rollbacks in Django database migrations
79-
- Victor Ogunjobi - Nothing for Us, Without Us; Breaking Unconscious Bias in Building Products
80-
- Jay Miller - Panel Discussion: Who put me in charge? Moving beyond day-to-day coding in Django
81-
82-
<!-- conferences ends -->
31+
{% include conferences.html %}

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ black
22
pre-commit
33
pytest-playwright
44
PyGithub
5+
PyYAML

0 commit comments

Comments
 (0)