Skip to content

Commit 3c27330

Browse files
authored
Merge pull request #110 from torchbox/update-setup-py-for-release
update setup.py
2 parents 6e5d1dc + b17822b commit 3c27330

File tree

4 files changed

+21
-4
lines changed

4 files changed

+21
-4
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ The package has been developed and tested with:
3434
## Initial app and package setup
3535

3636
1. Setup a Wagtail site using your preferred method or follow the [official documentation](https://docs.wagtail.io/en/stable/getting_started/tutorial.html) to get started.
37-
2. Install this package with pip install -e "git+https://github.com/torchbox/wagtail-wordpress-import.git#egg=wagtail-wordpress-import"
37+
2. Install this package from PyPi with `pip install wagtail-wordpress-import`
3838
or using any method you prefer.
3939
3. Place your XML files somewhere on your disk. The file can have any name you choose.
4040
4. Create a `log` folder in the root of your site. The import script will need to write report files to this folder, you may need to set the permissions on the folder.
@@ -107,6 +107,7 @@ class PostPage(WPImportedPageMixin, Page):
107107
self.wp_block_json = data["wp_block_json"]
108108
self.wp_processed_content = data["wp_processed_content"]
109109
self.wp_normalized_styles = data["wp_normalized_styles"]
110+
self.wp_post_meta = data["wp_post_meta"]
110111

111112
# own model fields
112113
self.body = data["body"]

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@
3636
"Framework :: Django :: 3.1",
3737
"Framework :: Django :: 3.2",
3838
"Framework :: Wagtail",
39-
"Framework :: Wagtail :: 2.14",
40-
"Framework :: Wagtail :: 2.15",
39+
"Framework :: Wagtail :: 2",
4140
],
4241
install_requires=[
4342
"Django>=3.1,<3.3",

wagtail_wordpress_import/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
default_app_config = "wagtail_wordpress_import.apps.WagtailWordpressImportAppConfig"
22

33

4-
VERSION = (0, 1, 0)
4+
VERSION = (0, 1, 3)
55
__version__ = ".".join(map(str, VERSION))

wagtail_wordpress_import/importers/wordpress.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,23 @@ def connect_page_categories(self, page, category_model, item):
318318
page.categories = page_categories
319319

320320

321+
def default_prefilters():
322+
return [
323+
{
324+
"FUNCTION": "wagtail_wordpress_import.prefilters.linebreaks_wp",
325+
},
326+
{
327+
"FUNCTION": "wagtail_wordpress_import.prefilters.transform_shortcodes",
328+
},
329+
{
330+
"FUNCTION": "wagtail_wordpress_import.prefilters.transform_inline_styles",
331+
},
332+
{
333+
"FUNCTION": "wagtail_wordpress_import.prefilters.bleach_clean",
334+
},
335+
]
336+
337+
321338
class WordpressItem:
322339
def __init__(self, node, logger):
323340
self.node = node

0 commit comments

Comments
 (0)