Skip to content

Commit

Permalink
feat(core): migrate to poetry for dependency management
Browse files Browse the repository at this point in the history
  • Loading branch information
MagneticNeedle committed Jul 9, 2023
1 parent 6c9617f commit d58aacd
Show file tree
Hide file tree
Showing 25 changed files with 2,096 additions and 757 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ If you already have experience with django/wagtail, understanding the backend wi


- ### Python
- Refer to [readme.md](/readme.md#how-to-run-locally)
- Refer to [readme.md](/README.md#how-to-run-locally)
- install pre-commit checks by running (**make sure the Virtual Enviroment is activated !!**)
```
pre-commit install
Expand Down
File renamed without changes.
4 changes: 1 addition & 3 deletions bfportal/bfportal/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
"wagtail.admin",
"wagtail.contrib.routable_page",
"wagtail.api.v2",
"wagtail_color_panel",
"modelcluster",
"taggit",
"dal",
Expand All @@ -62,10 +61,9 @@
"django_browser_reload",
"widget_tweaks",
"embed_video",
"django_extensions",
"django_extensions", # todo: triage if we really need this
"wagtailsvg",
"wagtail.contrib.modeladmin",
"generic_chooser",
"wagtailautocomplete",
"ajax_select",
"markdownx",
Expand Down
41 changes: 0 additions & 41 deletions bfportal/core/migrations/0017_auto_20220127_1533.py

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,225 @@
# Generated by Django 4.1.7 on 2023-07-09 12:30

import django.db.models.deletion
import embed_video.fields
import modelcluster.fields
import wagtail.blocks
import wagtail.fields
import wagtail.images.blocks
from django.db import migrations, models


class Migration(migrations.Migration):
replaces = [
("core", "0017_auto_20220127_1533"),
("core", "0018_alter_experiencepage_categories"),
("core", "0019_availabletags"),
("core", "0020_alter_experiencepage_vid_url"),
("core", "0021_experiencepage_featured"),
("core", "0022_homepage_cover_image"),
("core", "0023_auto_20220303_1703"),
("core", "0024_auto_20220303_1706"),
("core", "0025_auto_20220303_1717"),
("core", "0026_auto_20220305_1703"),
("core", "0027_auto_20220305_1705"),
("core", "0028_blogpage"),
("core", "0029_alter_experiencepage_code"),
("core", "0030_experiencepage_first_publish"),
("core", "0031_alter_experiencepage_cover_img_url"),
("core", "0032_experiencepage_bugged"),
("core", "0033_auto_20220824_1633"),
]

dependencies = [
("wagtailimages", "0023_add_choose_permissions"),
("wagtailcore", "0066_collection_management_permissions"),
("core", "0016_auto_20220127_1519"),
]

operations = [
migrations.RemoveField(
model_name="experiencescategory",
name="bg_color",
),
migrations.RemoveField(
model_name="experiencescategory",
name="bg_hover_color",
),
migrations.RemoveField(
model_name="experiencescategory",
name="text_color",
),
migrations.RemoveField(
model_name="experiencescategory",
name="text_hover_color",
),
migrations.AlterField(
model_name="experiencepage",
name="categories",
field=modelcluster.fields.ParentalManyToManyField(
help_text="Choose from the Category", to="core.experiencescategory"
),
),
migrations.CreateModel(
name="AvailableTags",
fields=[
(
"id",
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
(
"tags",
models.TextField(
blank=True,
verbose_name="All available tags in BF 2042 Portal Rules editor",
),
),
],
),
migrations.AlterField(
model_name="experiencepage",
name="vid_url",
field=embed_video.fields.EmbedVideoField(
blank=True,
default="",
help_text="Link to vid showcasing your experience",
verbose_name="Video Url",
),
),
migrations.AddField(
model_name="experiencepage",
name="featured",
field=models.BooleanField(
default=False,
help_text="Is this experience a featured experience",
verbose_name="Set Featured",
),
),
migrations.AddField(
model_name="experiencepage",
name="extra_content",
field=wagtail.fields.StreamField(
[
("heading", wagtail.blocks.CharBlock(form_classname="full title")),
("cover_image", wagtail.images.blocks.ImageChooserBlock()),
("text", wagtail.blocks.RichTextBlock()),
],
blank=True,
use_json_field=None,
),
),
migrations.AddField(
model_name="experiencespage",
name="extra_content",
field=wagtail.fields.StreamField(
[
("heading", wagtail.blocks.CharBlock(form_classname="full title")),
("cover_image", wagtail.images.blocks.ImageChooserBlock()),
("text", wagtail.blocks.RichTextBlock()),
],
blank=True,
use_json_field=None,
),
),
migrations.AddField(
model_name="homepage",
name="extra_content",
field=wagtail.fields.StreamField(
[
("heading", wagtail.blocks.CharBlock(form_classname="full title")),
("cover_image", wagtail.images.blocks.ImageChooserBlock()),
("text", wagtail.blocks.RichTextBlock()),
],
blank=True,
use_json_field=None,
),
),
migrations.AddField(
model_name="profilepage",
name="extra_content",
field=wagtail.fields.StreamField(
[
("heading", wagtail.blocks.CharBlock(form_classname="full title")),
("cover_image", wagtail.images.blocks.ImageChooserBlock()),
("text", wagtail.blocks.RichTextBlock()),
],
blank=True,
use_json_field=None,
),
),
migrations.CreateModel(
name="BlogPage",
fields=[
(
"page_ptr",
models.OneToOneField(
auto_created=True,
on_delete=django.db.models.deletion.CASCADE,
parent_link=True,
primary_key=True,
serialize=False,
to="wagtailcore.page",
),
),
(
"extra_content",
wagtail.fields.StreamField(
[
(
"heading",
wagtail.blocks.CharBlock(form_classname="full title"),
),
("cover_image", wagtail.images.blocks.ImageChooserBlock()),
("text", wagtail.blocks.RichTextBlock()),
],
blank=True,
use_json_field=None,
),
),
],
options={
"abstract": False,
},
bases=("wagtailcore.page",),
),
migrations.AlterField(
model_name="experiencepage",
name="code",
field=models.CharField(
blank=True,
default="",
help_text="Six letter alpha-numeric code of you experience",
max_length=6,
verbose_name="Experience Code",
),
),
migrations.AddField(
model_name="experiencepage",
name="first_publish",
field=models.BooleanField(default=True),
),
migrations.AlterField(
model_name="experiencepage",
name="cover_img_url",
field=models.URLField(
blank=True,
default="/static/images/placeholder.png",
help_text="Link for your cover Image",
verbose_name="Cover Image Url",
),
),
migrations.AddField(
model_name="experiencepage",
name="bugged",
field=models.BooleanField(
default=False,
help_text="Is the experience bugged",
verbose_name="Bugged ?",
),
),
]
20 changes: 0 additions & 20 deletions bfportal/core/migrations/0018_alter_experiencepage_categories.py

This file was deleted.

33 changes: 0 additions & 33 deletions bfportal/core/migrations/0019_availabletags.py

This file was deleted.

23 changes: 0 additions & 23 deletions bfportal/core/migrations/0020_alter_experiencepage_vid_url.py

This file was deleted.

21 changes: 0 additions & 21 deletions bfportal/core/migrations/0021_experiencepage_featured.py

This file was deleted.

Loading

0 comments on commit d58aacd

Please sign in to comment.