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

Commit feee82b

Browse files
authored
Upgrade to Django 2.2.x Python 3.9.x plus trivial changes (#1337)
1 parent c6e9e5b commit feee82b

File tree

13 files changed

+103
-33
lines changed

13 files changed

+103
-33
lines changed

.github/workflows/ci_pipeline.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- uses: actions/checkout@v2
19-
- name: Set up Python 3.6
19+
- name: Set up Python 3.9
2020
uses: actions/setup-python@v1
2121
with:
22-
python-version: 3.6
22+
python-version: 3.9
2323
- name: Install dependencies
2424
run: |
25+
sudo apt-get install -y libxml2-dev libxslt1-dev
2526
python -m pip install -U pip
2627
pip install -r requirements.txt
2728
pip install -r requirements-dev.txt

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,8 @@ htmlcov/
4545
coverage.xml
4646
prof/
4747
.vagrant
48+
49+
# virtualenvwrapper/zsh
50+
.venv
51+
.env
52+
env

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Base image
2-
FROM python:3.6
2+
FROM python:3.9
33

44
# Update system
55
RUN apt-get update && \
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Generated by Django 2.2.17 on 2020-12-04 10:30
2+
3+
from django.db import migrations, models
4+
import django.db.models.deletion
5+
6+
7+
class Migration(migrations.Migration):
8+
9+
dependencies = [
10+
('conference', '0025_add_poster_45_type'),
11+
]
12+
13+
operations = [
14+
migrations.AlterField(
15+
model_name='conferencetag',
16+
name='name',
17+
field=models.CharField(max_length=100, unique=True, verbose_name='name'),
18+
),
19+
migrations.AlterField(
20+
model_name='conferencetag',
21+
name='slug',
22+
field=models.SlugField(max_length=100, unique=True, verbose_name='slug'),
23+
),
24+
migrations.AlterField(
25+
model_name='conferencetaggeditem',
26+
name='content_type',
27+
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='conference_conferencetaggeditem_tagged_items', to='contenttypes.ContentType', verbose_name='content type'),
28+
),
29+
migrations.AlterField(
30+
model_name='conferencetaggeditem',
31+
name='object_id',
32+
field=models.IntegerField(db_index=True, verbose_name='object ID'),
33+
),
34+
]
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Generated by Django 2.2.17 on 2020-12-04 14:39
2+
3+
from django.db import migrations, models
4+
import django.db.models.deletion
5+
6+
7+
class Migration(migrations.Migration):
8+
9+
dependencies = [
10+
('conference', '0026_auto_20201204_1130'),
11+
]
12+
13+
operations = [
14+
migrations.AlterField(
15+
model_name='conferencetag',
16+
name='name',
17+
field=models.CharField(max_length=100, unique=True, verbose_name='Name'),
18+
),
19+
migrations.AlterField(
20+
model_name='conferencetag',
21+
name='slug',
22+
field=models.SlugField(max_length=100, unique=True, verbose_name='Slug'),
23+
),
24+
migrations.AlterField(
25+
model_name='conferencetaggeditem',
26+
name='content_type',
27+
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='conference_conferencetaggeditem_tagged_items', to='contenttypes.ContentType', verbose_name='Content type'),
28+
),
29+
migrations.AlterField(
30+
model_name='conferencetaggeditem',
31+
name='object_id',
32+
field=models.IntegerField(db_index=True, verbose_name='Object id'),
33+
),
34+
]

conference/templatetags/conference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def _request_cache(request, key):
2727
return request._conf_cache[key]
2828

2929
# Current conference object
30-
@register.assignment_tag()
30+
@register.simple_tag()
3131
def current_conference():
3232
return models.Conference.objects.current()
3333

pycon/settings.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,6 @@ def _(x):
212212

213213
MIDDLEWARE = (
214214
'django.contrib.sessions.middleware.SessionMiddleware',
215-
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
216215
'django.middleware.csrf.CsrfViewMiddleware',
217216
'django.contrib.auth.middleware.AuthenticationMiddleware',
218217
'django.contrib.messages.middleware.MessageMiddleware',

requirements-dev.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ pytest-xdist
66

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

1112
flake8
1213
black

requirements-dev.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# This file is autogenerated by pip-compile
33
# To update, run:
44
#
5-
# pip-compile --output-file=requirements-dev.txt requirements-dev.in
5+
# pip-compile requirements-dev.in
66
#
77
apipkg==1.5 # via execnet
88
appdirs==1.4.3 # via black
@@ -15,13 +15,12 @@ coverage==5.0.4 # via pytest-cov
1515
django-pdb==0.6.2 # via -r requirements-dev.in
1616
entrypoints==0.3 # via flake8
1717
execnet==1.7.1 # via pytest-xdist
18-
factory-boy==2.12.0 # via -r requirements-dev.in
18+
git+https://github.com/FactoryBoy/factory_boy.git#factory_boy # via -r requirements-dev.in
1919
faker==4.0.2 # via factory-boy
2020
fancycompleter==0.9.1 # via pdbpp
2121
flake8==3.7.9 # via -r requirements-dev.in
2222
freezegun==0.3.15 # via -r requirements-dev.in
2323
idna==2.9 # via requests
24-
importlib-metadata==1.5.0 # via pluggy, pytest
2524
mccabe==0.6.1 # via flake8
2625
more-itertools==8.2.0 # via pytest
2726
packaging==20.3 # via pytest
@@ -53,4 +52,3 @@ typed-ast==1.4.1 # via black
5352
urllib3==1.25.8 # via requests
5453
wcwidth==0.1.9 # via pytest
5554
wmctrl==0.3 # via pdbpp
56-
zipp==3.1.0 # via importlib-metadata

requirements.in

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Django~=1.11
1+
Django~=2.2
22

33
requests
44
requests-oauthlib
@@ -9,26 +9,26 @@ django_extensions
99
django-model-utils<4.0
1010
django-crispy-forms
1111

12-
django-taggit~=1.2
13-
git+https://github.com/bennylope/django-taggit-labels@c4006980d133f4c392b9f37e386bd7da43a8d4ce#egg=django-taggit-labels
12+
django-taggit
13+
git+https://github.com/bennylope/django-taggit-labels#egg=django-taggit-labels
1414

1515
python3-openid
16-
python-social-auth==0.3.6
16+
python-social-auth
1717
social-auth-app-django
1818
# Fixes https://github.com/python-social-auth/social-app-django/issues/178
1919
social-auth-core[openidconnect]
2020

21-
markdown2>=2.3.9
21+
markdown2
2222

2323
# 3.7 DjangoCMS LTS release
24-
django-cms>=3.7,<3.8
24+
django-cms
2525
djangocms-admin-style
2626
djangocms-text-ckeditor
27-
django-filer<1.6
28-
git+https://github.com/pawelmarkowski/cmsplugin-filer@2.0.2#egg=cmsplugin-filer
27+
django-filer
28+
git+https://github.com/pawelmarkowski/cmsplugin-filer#egg=cmsplugin-filer
2929

30-
django-filebrowser-no-grappelli~=3.8
31-
django-markitup~=3.5
30+
django-filebrowser-no-grappelli
31+
django-markitup
3232

3333
# django settings enhancements
3434
python-decouple
@@ -42,15 +42,14 @@ phonenumbers
4242
stripe
4343

4444
WeasyPrint
45-
unicodecsv==0.14.1
45+
unicodecsv
4646

47-
openpyxl==2.4.8
47+
openpyxl
4848
ipython
4949
decorator
5050

5151
lxml # for currencies
52-
dataclasses
5352

54-
gunicorn<20.0
53+
gunicorn
5554

56-
anglicize
55+
anglicize

0 commit comments

Comments
 (0)