Skip to content
This repository was archived by the owner on Apr 29, 2022. It is now read-only.

Commit 5ae586c

Browse files
authored
Changing text and image file names from 2020 to 2021 (#1341)
* trivial changes * removed dataclasses as starting the port to python 3.8 * Updading Python and Django * upgrading to django 2.2.x * initial * Works around coverage.py internal error * back in sync with expected output * added simple virtualenv dir * upgrade to latest version or cms * using latest version of dependencies * working version * updated to the latest versions * upgraded to the latest versions * initial * trivial changes removed dataclasses as starting the port to python 3.8 Remove RemovedInDjango20Warning notices (#1326) Updading Python and Django upgrading to django 2.2.x initial Works around coverage.py internal error back in sync with expected output added simple virtualenv dir upgrade to latest version or cms using latest version of dependencies working version updated to the latest versions upgraded to the latest versions initial * Upgraded to Django 2.2.x on Python 3.9.x (fixed one test as well). * Upgraded to Python 3.9 * attempt at installing deps * Starting the migration from 2020 to 2021 * missed a couple fo dates: fixed them * Turns out factoryboy changed its internal API, which is cool actually. Trouble is that we use it :-) * Forgot about changing dates here * moved to uniform date format * Added a note about charging VAT and adding our VAT ID in 2022
1 parent feee82b commit 5ae586c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+225
-128
lines changed

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
This project (and its dependencies) contains the EuroPython website source code.
77

8-
The code is used for the EuroPython 2020 website.
8+
The code is used for the EuroPython 2021 website.
99

1010
# LICENSE
1111

@@ -86,19 +86,19 @@ $ make test
8686

8787
# CONTRIBUTING
8888

89-
Note: We are using the ep2020 branch for the production version of the
90-
website, once we have switched on production, and dev/ep2020 during
89+
Note: We are using the ep2021 branch for the production version of the
90+
website, once we have switched on production, and dev/ep2021 during
9191
development leading up to the production version. The instructions
92-
reference the ep2020 branch - please adjust to dev/ep2020 for the
92+
reference the ep2021 branch - please adjust to dev/ep2021 for the
9393
development version.
9494

9595
1. Make a fork of github.com/europython/epcon
9696
2. Make changes in your fork (ideally on a feature/bugfix branch)
97-
3. Make sure your branch is based on latest `upstream/ep2020`
97+
3. Make sure your branch is based on latest `upstream/ep2021`
9898
4. Push your changes
99-
5. Create a pull request to `europython/epcon`, targeting `ep2020` branch.
99+
5. Create a pull request to `europython/epcon`, targeting `ep2021` branch.
100100

101-
IMPORTANT: all the active development happens on the `ep2020` branch, `master` is not up to date.
101+
IMPORTANT: all the active development happens on the `ep2021` branch, `master` is not up to date.
102102

103103
## Development Guidelines
104104

assets/css/ep2019-customisations.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
.text-primary-light { color: #47A71C; }
77
.text-secondary-light { color: #FFCB96; }
88

9-
/* Fonts for ep2020*/
9+
/* Fonts for ep2021*/
1010
@font-face {
1111
font-family: "Galyon";
1212
src: url("Galyon-Regular.otf");
@@ -41,7 +41,7 @@
4141
}
4242

4343
#background_image {
44-
background: url("/static/img/ep2020-background-online.jpg");
44+
background: url("/static/img/ep2021-background-online.jpg");
4545
background-size: cover;
4646
color: white;
4747
min-height: 90px;
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

conference/cfp.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ class AddSpeakerToTalkForm(forms.ModelForm):
286286
label="Are you a minor?",
287287
help_text=(
288288
"Please select this checkbox if you're going to be under 18"
289-
"years old on July 23rd 2020"
289+
"years old on July 26th 2021"
290290
),
291291
# required=False, because django forms... it means that unless someone
292292
# is a minor we don't provide a value.

conference/invoicing.py

+19-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
EPS_19 = EPS_18
4141

42-
# EP2020: Not listing the VAT ID, since we're a non-profit and VAT exempt.
42+
# EP2020: Not listing the VAT ID, since we're a non-profit and VAT exempt.
4343
# The VAT ID would confuse people.
4444
EPS_20 = """
4545
Europython Society
@@ -51,12 +51,25 @@
5151
https://www.europython-society.org/
5252
""".strip()
5353

54+
# EP2021: Not listing the VAT ID, since we're a non-profit and VAT exempt.
55+
# The VAT ID would confuse people.
5456
EPS_21 = """
5557
Europython Society
5658
Ramnebacken 45
5759
424 38 Agnesberg
5860
Sweden
5961
Org ID: 802417-7704
62+
Contact Email: [email protected]
63+
https://www.europython-society.org/
64+
""".strip()
65+
66+
# EP2022: We will have to charge Irish VAT and therefore list our VAT ID.
67+
EPS_22 = """
68+
Europython Society
69+
Ramnebacken 45
70+
424 38 Agnesberg
71+
Sweden
72+
Org ID: 802417-7704
6073
EU VAT-ID: SE802417770401
6174
Contact Email: [email protected]
6275
https://www.europython-society.org/
@@ -67,6 +80,7 @@
6780
2019: EPS_19,
6881
2020: EPS_20,
6982
2021: EPS_21,
83+
2022: EPS_22,
7084
}
7185

7286
LOCAL_CURRENCY_BY_YEAR = {
@@ -77,20 +91,23 @@
7791
2019: "EUR",
7892
2020: "EUR",
7993
2021: "EUR",
94+
2022: "EUR",
8095
}
8196

8297
EP_CITY_FOR_YEAR = {
8398
2018: "Edinburgh",
8499
2019: "Basel",
85100
2020: "Online",
86-
2021: "Dublin",
101+
2021: "Online",
102+
2022: "Dublin",
87103
}
88104

89105
ADDITIONAL_TEXT_FOR_YEAR = {
90106
2018: "assopy/invoices/_additional_text_for_2018.html",
91107
2019: "assopy/invoices/_additional_text_for_2019.html",
92108
2020: "assopy/invoices/_additional_text_for_2020.html",
93109
2021: "assopy/invoices/_additional_text_for_2021.html",
110+
2022: "assopy/invoices/_additional_text_for_2022.html",
94111
}
95112

96113
REAL_INVOICE_PREFIX = "I/"

conference/management/commands/create_initial_data_for_dev.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,12 @@ def handle(self, *args, **options):
8585
add_speaker_to_talk(speaker, talk)
8686
profile = get_or_create_attendee_profile_for_new_user(user.user)
8787
if not profile.getBio():
88+
# FIXME: evaluate is a private method.
89+
# https://github.com/FactoryBoy/factory_boy/commit/824c6e01f91dcb07d16f51578300da3c99b6a336
8890
profile.setBio(
8991
factory.Faker(
9092
"sentence", nb_words=20, variable_nb_words=True
91-
).generate({})
93+
).evaluate(None, None, extra={"locale": None})
9294
)
9395

9496
for i in range(20):
@@ -196,7 +198,7 @@ def new_page(rev_id, title, **kwargs):
196198
("social-media", "Social Media"),
197199
("code-of-conduct", "Code of Conduct"),
198200
("privacy", "Privacy policy"),
199-
("workgroups", "2020 Team"),
201+
("workgroups", "2021 Team"),
200202
("photos", "Photos"),
201203
("videos", "Videos"),
202204
("terms", "Terms & Conditions"),

conference/orders.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def latest_order_code_for_year(year):
2929
returns latest used order.code in a given year.
3030
rtype – string or None
3131
"""
32-
assert 2016 <= year <= 2020, year
32+
assert 2016 <= year <= 2021, year
3333

3434
orders = Order.objects.filter(
3535
code__startswith=ORDER_CODE_PREFIX, created__year=year
@@ -39,7 +39,7 @@ def latest_order_code_for_year(year):
3939

4040

4141
def next_order_code_for_year(year):
42-
assert 2016 <= year <= 2020, year
42+
assert 2016 <= year <= 2021, year
4343

4444
current_code = latest_order_code_for_year(year)
4545
if current_code:

p3/management/commands/attendify_speakers_xlsx.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
_debug = 1
4343

4444
# URL prefix to use in URLs
45-
URL_PREFIX = settings.DEFAULT_URL_PREFIX or 'https://ep2020.europython.eu'
45+
URL_PREFIX = settings.DEFAULT_URL_PREFIX or 'https://ep2021.europython.eu'
4646

4747
### Helpers
4848

p3/management/commands/build_ticket_search_app.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
on port 8000. Pointing a browser at http://localhost:8000/ will
2222
then load the app into the browser.
2323
24-
Author: Marc-Andre Lemburg, 2016-2020.
24+
Author: Marc-Andre Lemburg, 2016-2021.
2525
2626
"""
2727
import sys

p3/management/commands/create_speaker_coupons.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
#
4545
#
4646
#
47-
if settings.CONFERENCE_CONFERENCE == 'ep2020':
47+
if settings.CONFERENCE_CONFERENCE == 'ep2021':
4848
# For the virtul event we give out 100% coupons
4949
TALK_TYPE_DISCOUNTS = {
5050
't': ('TLK', '100%', False), # Talk

p3/management/commands/video_schedule_xlsx.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
LICENSE = """
3838
3939
License: This video is licensed under the CC BY-NC-SA 3.0 license: https://creativecommons.org/licenses/by-nc-sa/3.0/
40-
Please see our speaker release agreement for details: https://ep2020.europython.eu/events/speaker-release-agreement/
40+
Please see our speaker release agreement for details: https://ep2021.europython.eu/events/speaker-release-agreement/
4141
"""
4242

4343
# Special handling of poster sessions
@@ -127,7 +127,7 @@ def video_description(title, abstract,
127127
# XXX Make this configurables in settings
128128
return """\
129129
%(title)s
130-
[EuroPython 2020 - %(type)s - %(date)s - %(room)s]
130+
[EuroPython 2021 - %(type)s - %(date)s - %(room)s]
131131
[Online]
132132
133133
%(abstract)s

p3/templatetags/meta.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ def render_meta(context, title=""):
1616

1717
description = ""
1818
page_title = (
19-
f"{title}EuroPython 2020 Online &middot; 23-26 July 2020"
19+
f"{title}EuroPython 2021 Online &middot; July 26 - Aug. 1, 2021"
2020
)
2121
page_url = context["CURRENT_URL"]
2222

2323
image_url = context.get("social_image_url") or request.build_absolute_uri(
24-
static("img/ep2020-social-online-card.jpg")
24+
static("img/ep2021-social-online-card.jpg")
2525
)
2626

2727
TEMPLATE = f"""

pycon/settings.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -452,18 +452,18 @@ def _(x):
452452
SESSION_COOKIE_NAME = 'sid'
453453
SESSION_SERIALIZER = 'django.contrib.sessions.serializers.PickleSerializer'
454454

455-
CONFERENCE_CONFERENCE = 'ep2020'
456-
CONFERENCE_NAME = "EuroPython 2020"
455+
CONFERENCE_CONFERENCE = 'ep2021'
456+
CONFERENCE_NAME = "EuroPython 2021"
457457
CONFERENCE_SEND_EMAIL_TO = ["[email protected]"]
458458
CONFERENCE_TALK_SUBMISSION_NOTIFICATION_EMAIL = []
459-
CONFERENCE_VOTING_DISALLOWED = 'https://ep2020.europython.eu/talk-voting/'
459+
CONFERENCE_VOTING_DISALLOWED = 'https://ep2021.europython.eu/talk-voting/'
460460
CONFERENCE_TALK_VOTING_ELIGIBLE = (
461461
"ep2015",
462462
"ep2016",
463463
"ep2017",
464464
"ep2018",
465465
"ep2019",
466-
"ep2020",
466+
"ep2021",
467467
)
468468
EARLY_BIRD_ORDER_LIMIT = config("EARLY_BIRD_ORDER_LIMIT", default=220, cast=int)
469469

@@ -669,7 +669,7 @@ def CONFERENCE_SCHEDULE_ATTENDEES(schedule, forecast):
669669
# It is used for generating URLs pointing back to the site
670670
# in quite a few places.
671671
#
672-
DEFAULT_URL_PREFIX = 'https://ep2020.europython.eu'
672+
DEFAULT_URL_PREFIX = 'https://ep2021.europython.eu'
673673
LOGIN_REDIRECT_URL = reverse_lazy("user_panel:dashboard")
674674

675675
P3_TWITTER_USER = 'europython'
@@ -678,7 +678,7 @@ def CONFERENCE_SCHEDULE_ATTENDEES(schedule, forecast):
678678
This message was sent from a participant at the EuroPython conference.
679679
Your email address is not disclosed to anyone, to stop receiving messages
680680
from other users you can change your privacy settings from this page:
681-
https://ep2020.europython.eu/accounts/profile/
681+
https://ep2021.europython.eu/accounts/profile/
682682
'''
683683

684684

requirements-dev.in

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ pytest-xdist
66

77
freezegun
88
responses
9-
# factory_boy
10-
git+https://github.com/FactoryBoy/factory_boy.git#factory_boy
9+
factory_boy
1110

1211
flake8
1312
black

0 commit comments

Comments
 (0)