Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mise à jour triviale des dépendances Python #6502

Merged
merged 2 commits into from
May 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ env:
PYTHON_VERSION: "3.7"
MARIADB_VERSION: "10.4.10"
COVERALLS_VERSION: "3.3.1" # check if Coverage needs to be also updated in requirements-ci.txt
BLACK_VERSION: "22.8.0" # needs to be also updated in requirements-dev.txt and .pre-commit-config.yaml
GECKODRIVER_VERSION: "0.31.0"
BLACK_VERSION: "23.3.0" # needs to be also updated in requirements-dev.txt and .pre-commit-config.yaml
GECKODRIVER_VERSION: "0.33.0"

# As GitHub Action does not allow environment variables
# to be used in services definitions, these are only for
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v2.37.3
rev: v3.4.0
hooks:
- id: pyupgrade
args: [--py37-plus]
- repo: https://github.com/psf/black
rev: 22.8.0 # needs to be also updated in requirements-dev.txt and .github/workflows/ci.yml
rev: 23.3.0 # needs to be also updated in requirements-dev.txt and .github/workflows/ci.yml
hooks:
- id: black
language_version: python3
1 change: 0 additions & 1 deletion manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ def sighandler(signum, frame):
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "zds.settings.dev")

if len(sys.argv) > 1 and sys.argv[1] in ["migrate", "test"]:

from django.db.backends.mysql.creation import BaseDatabaseCreation

BaseDatabaseCreation.sql_table_creation_suffix = patch_create_suffix(
Expand Down
16 changes: 8 additions & 8 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
-r requirements.txt

black==22.8.0 # needs to be also updated in .github/workflows/ci.yml and .pre-commit-config.yaml
black==23.3.0 # needs to be also updated in .github/workflows/ci.yml and .pre-commit-config.yaml
colorlog==6.7.0
django-debug-toolbar==3.6.0
django-extensions==3.2.0
Faker==14.2.0
pre-commit==2.20.0
django-debug-toolbar==3.8.1
django-extensions==3.2.1
Faker==18.9.0
pre-commit==2.21.0
PyYAML==6.0
selenium==4.4.3
Sphinx==5.1.1
sphinx-rtd-theme==1.0.0
selenium==4.9.1
Sphinx==5.3.0
sphinx-rtd-theme==1.2.1
28 changes: 14 additions & 14 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
# Implicit dependencies (optional dependencies of dependencies)
elasticsearch-dsl==5.4.0
elasticsearch==5.5.3
social-auth-app-django==5.0.0
social-auth-app-django==5.2.0

# Explicit dependencies (references in code)
beautifulsoup4==4.11.1
beautifulsoup4==4.12.2
django-crispy-forms==1.14.0
django-model-utils==4.2.0
django-model-utils==4.3.1
django-munin==0.2.1
django-recaptcha==3.0.0
Django==3.2.15
Django==3.2.19
easy-thumbnails[svg]==2.8.3
factory-boy==3.2.1
geoip2==4.6.0
GitPython==3.1.27
geoip2==4.7.0
GitPython==3.1.31
homoglyphs==2.0.4
lxml==4.9.1
Pillow==9.2.0
pymemcache==3.5.2
requests==2.28.1
lxml==4.9.2
Pillow==9.5.0
pymemcache==4.0.0
requests==2.31.0

# Api dependencies
django-cors-headers==3.13.0
django-filter==22.1
django-cors-headers==4.0.0
django-filter==23.2
django-oauth-toolkit==1.7.0
djangorestframework==3.14.0
drf-extensions==0.7.1
dry-rest-permissions==0.1.10
drf-yasg==1.21.4
drf-yasg==1.21.5

# Dependencies for slug generation, please be extra careful with those
django-uuslug==2.0.0
python-slugify==6.1.2
python-slugify==8.0.1

# tomllib was added to the standard library in Python 3.11
# tomli is only needed for older Python versions
Expand Down
1 change: 0 additions & 1 deletion zds/featured/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("member", "0002_auto_20150601_1144"),
]
Expand Down
1 change: 0 additions & 1 deletion zds/featured/migrations/0002_auto_20150622_0956.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("featured", "0001_initial"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("featured", "0002_auto_20150622_0956"),
]
Expand Down
1 change: 0 additions & 1 deletion zds/featured/migrations/0004_auto_20150622_0957.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("featured", "0003_remove_featuredresource_authors"),
]
Expand Down
1 change: 0 additions & 1 deletion zds/featured/migrations/0005_auto_20160114_1604.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("featured", "0004_auto_20150622_0957"),
]
Expand Down
1 change: 0 additions & 1 deletion zds/featured/migrations/0006_python_3.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
("featured", "0005_auto_20160114_1604"),
]
Expand Down
1 change: 0 additions & 1 deletion zds/featured/migrations/0007_featuredrequested.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class Migration(migrations.Migration):

dependencies = [
("contenttypes", "0002_remove_content_type_name"),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
Expand Down
1 change: 0 additions & 1 deletion zds/featured/migrations/0008_mandatory_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ def revert(*_):


class Migration(migrations.Migration):

dependencies = [
("featured", "0007_featuredrequested"),
]
Expand Down
1 change: 0 additions & 1 deletion zds/featured/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ def get_initial(self):
return initial

def form_valid(self, form):

self.object.title = form.cleaned_data.get("title")
self.object.type = form.cleaned_data.get("type")
self.object.authors = form.cleaned_data.get("authors")
Expand Down
1 change: 0 additions & 1 deletion zds/forum/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ def clean(self):


class MoveTopicForm(forms.Form):

forum = forms.ModelChoiceField(
label=_("Forum"),
queryset=Forum.objects.all(),
Expand Down
1 change: 0 additions & 1 deletion zds/forum/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
("utils", "0001_initial"),
("auth", "0001_initial"),
Expand Down
1 change: 0 additions & 1 deletion zds/forum/migrations/0002_auto_20150410_1505.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("forum", "0001_initial"),
]
Expand Down
1 change: 0 additions & 1 deletion zds/forum/migrations/0003_auto_20150414_2324.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("forum", "0002_auto_20150410_1505"),
]
Expand Down
1 change: 0 additions & 1 deletion zds/forum/migrations/0003_auto_20151110_1145.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("forum", "0003_auto_20150414_2324"),
]
Expand Down
1 change: 0 additions & 1 deletion zds/forum/migrations/0004_topic_update_index_date.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("forum", "0003_auto_20151110_1145"),
]
Expand Down
1 change: 0 additions & 1 deletion zds/forum/migrations/0005_auto_20151119_2224.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("forum", "0004_topic_update_index_date"),
]
Expand Down
1 change: 0 additions & 1 deletion zds/forum/migrations/0006_auto_20160720_2259.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("forum", "0005_auto_20151119_2224"),
]
Expand Down
1 change: 0 additions & 1 deletion zds/forum/migrations/0007_auto_20160827_2035.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("forum", "0006_auto_20160720_2259"),
]
Expand Down
1 change: 0 additions & 1 deletion zds/forum/migrations/0008_auto_20161101_1122.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ def force_unicity(*args, **kwargs):


class Migration(migrations.Migration):

dependencies = [
("forum", "0008_remove_forum_image"),
]
Expand Down
1 change: 0 additions & 1 deletion zds/forum/migrations/0008_remove_forum_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("forum", "0007_auto_20160827_2035"),
]
Expand Down
1 change: 0 additions & 1 deletion zds/forum/migrations/0009_remove_topic_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("forum", "0008_auto_20161101_1122"),
]
Expand Down
1 change: 0 additions & 1 deletion zds/forum/migrations/0010_auto_20161112_1823.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("forum", "0009_remove_topic_key"),
]
Expand Down
1 change: 0 additions & 1 deletion zds/forum/migrations/0011_auto_20170130_1823.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("forum", "0010_auto_20161112_1823"),
]
Expand Down
1 change: 0 additions & 1 deletion zds/forum/migrations/0012_auto_20170204_2239.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("forum", "0011_auto_20170130_1823"),
]
Expand Down
1 change: 0 additions & 1 deletion zds/forum/migrations/0013_auto_20170327_1349.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("forum", "0012_auto_20170204_2239"),
]
Expand Down
1 change: 0 additions & 1 deletion zds/forum/migrations/0014_topic_github_issue.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("forum", "0013_auto_20170327_1349"),
]
Expand Down
1 change: 0 additions & 1 deletion zds/forum/migrations/0015_python_3.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class Migration(migrations.Migration):

dependencies = [
("forum", "0014_topic_github_issue"),
]
Expand Down
1 change: 0 additions & 1 deletion zds/forum/migrations/0016_topic_solved_by.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ def forward(apps, schema_editor):


class Migration(migrations.Migration):

dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
("forum", "0015_python_3"),
Expand Down
1 change: 0 additions & 1 deletion zds/forum/migrations/0017_auto_20190114_1301.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class Migration(migrations.Migration):

dependencies = [
("forum", "0016_topic_solved_by"),
]
Expand Down
1 change: 0 additions & 1 deletion zds/forum/migrations/0019_post_is_potential_spam.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
("forum", "0018_auto_20200315_1749"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("forum", "0019_post_is_potential_spam"),
]
Expand Down
1 change: 0 additions & 1 deletion zds/forum/migrations/0021_remove_post_is_potential_spam.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("forum", "0020_rename_post_is_potential_spam_to_temp_name_for_migration"),
# We must remove the field AFTER data was copied from this field to the comments table.
Expand Down
1 change: 0 additions & 1 deletion zds/forum/migrations/0022_topic_github_repository_name.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
("forum", "0021_remove_post_is_potential_spam"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class Migration(migrations.Migration):

dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
("forum", "0022_topic_github_repository_name"),
Expand Down
Loading