Remove useless / unused dependencies

- unicodecsv is useless in py3
- autoslug is not used anywhere
- wheels comes with any correctly configured virtualenv
This commit is contained in:
Martin Pépin 2019-10-05 17:37:08 +02:00
parent b99fd03df2
commit 838bf325ba
2 changed files with 4 additions and 9 deletions

View file

@ -1,8 +1,8 @@
import csv
import uuid
from datetime import timedelta
from smtplib import SMTPRecipientsRefused
import unicodecsv
from custommail.shortcuts import send_custom_mail
from django.contrib import messages
from django.contrib.auth.decorators import login_required
@ -646,7 +646,7 @@ def export_members(request):
response = HttpResponse(content_type="text/csv")
response["Content-Disposition"] = "attachment; filename=membres_cof.csv"
writer = unicodecsv.writer(response)
writer = csv.writer(response)
for profile in CofProfile.objects.filter(is_cof=True).all():
user = profile.user
bits = [
@ -681,7 +681,7 @@ MEGA_ORGA = "Orga"
def csv_export_mega(filename, qs):
response = HttpResponse(content_type="text/csv")
response["Content-Disposition"] = "attachment; filename=" + filename
writer = unicodecsv.writer(response)
writer = csv.writer(response)
for reg in qs.all():
user = reg.user
@ -708,7 +708,7 @@ def export_mega_remarksonly(request):
filename = "remarques_mega_{}.csv".format(MEGA_YEAR)
response = HttpResponse(content_type="text/csv")
response["Content-Disposition"] = "attachment; filename=" + filename
writer = unicodecsv.writer(response)
writer = csv.writer(response)
event = Event.objects.get(title=MEGA_EVENT_NAME)
commentfield = event.commentfields.get(name=MEGA_COMMENTFIELD_NAME)

View file

@ -1,7 +1,6 @@
configparser==3.5.0
Django==2.2.*
django-autocomplete-light==3.3.*
django-autoslug==1.9.3
django-cas-ng==3.6.*
django-djconfig==0.8.0
django-recaptcha==1.4.0
@ -9,7 +8,6 @@ django-redis-cache==1.8.1
icalendar
psycopg2<2.8
Pillow
unicodecsv
django-bootstrap-form==3.3
asgiref==1.1.1
daphne==1.3.0
@ -24,6 +22,3 @@ wagtail==2.4.*
wagtailmenus==2.12.*
wagtail-modeltranslation==0.10.*
django-cors-headers==2.2.0
# Production tools
wheel