Skip to content

Commit 4d0e46b

Browse files
committed
chore: release v1.0.4
- Updates dependencies. - Fixes markdown extension registration. - Remove some dependencies version constraints. - Removes useless dependencies. Co-Authored-by: Pascal Repond <[email protected]>
1 parent 144de7d commit 4d0e46b

File tree

7 files changed

+345
-253
lines changed

7 files changed

+345
-253
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## [v1.0.4](https://github.com/rero/flask-wiki/tree/v1.0.4) (2025-12-10)
4+
5+
[Full Changelog](https://github.com/rero/flask-wiki/compare/v1.0.3...v1.0.4)
6+
7+
- chore: update dependencies [\#77](https://github.com/rero/flask-wiki/pull/77) (by @PascalRepond)
8+
- chore(actions): auto-assign PR author (by @PascalRepond)
9+
310
## [v1.0.3](https://github.com/rero/flask-wiki/tree/v1.0.3) (2025-08-05)
411

512
[Full Changelog](https://github.com/rero/flask-wiki/compare/v1.0.2...v1.0.3)

MANIFEST.in

Lines changed: 0 additions & 31 deletions
This file was deleted.

examples/app.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@
77

88
"""Simple Testing applications."""
99

10+
import importlib.resources
11+
1012
from flask import Flask, redirect, request, session, url_for
1113
from flask_babel import Babel
1214
from flask_bootstrap import Bootstrap4
13-
from pkg_resources import resource_filename
1415

1516
from flask_wiki import Wiki
1617

@@ -34,7 +35,7 @@ def get_locale():
3435
"de": "German",
3536
"it": "Italian",
3637
},
37-
BABEL_TRANSLATION_DIRECTORIES=resource_filename("flask_wiki", "translations"),
38+
BABEL_TRANSLATION_DIRECTORIES=str(importlib.resources.files("flask_wiki") / "translations"),
3839
BABEL_DEFAULT_LOCALE="fr",
3940
DEBUG=True,
4041
)

flask_wiki/markdown_ext.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
class BootstrapExtension(Extension):
1414
"""."""
1515

16-
def extendMarkdown(self, md, md_globals): # noqa
16+
def extendMarkdown(self, md): # noqa
1717
"""."""
1818
md.registerExtension(self)
1919
self.processor = BootstrapTreeprocessor()
2020
self.processor.md = md
2121
self.processor.config = self.getConfigs()
22-
md.treeprocessors.add("bootstrap", self.processor, "_end")
22+
md.treeprocessors.register(self.processor, "bootstrap", 1)
2323

2424

2525
class BootstrapTreeprocessor(Treeprocessor):

pyproject.toml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "flask-wiki"
3-
version = "1.0.3"
3+
version = "1.0.4"
44
description = "Simple file-based wiki for Flask"
55
readme = "README.md"
66
authors = [{name = "RERO+", email = "[email protected]"}]
@@ -16,22 +16,19 @@ dependencies = [
1616
"flask-babel (>=3.0.0)",
1717
"wtforms",
1818
"werkzeug (>=0.15)",
19-
"jinja2 (>=3.0.0)",
20-
"markdown (<3.4.0)",
21-
"py (<2.0.0)",
22-
"beautifulsoup4 (<5.0.0)",
23-
"click (<9.0.0)",
24-
"whoosh-reloaded>=2.7.5",
19+
"markdown",
20+
"beautifulsoup4",
21+
"click",
22+
"whoosh-reloaded (>=2.7.5)",
2523
]
2624

2725
[dependency-groups]
2826
dev = [
29-
"check-manifest",
3027
"ipython",
3128
"pip-audit",
3229
"poethepoet",
3330
"pytest",
34-
"ruff>=0.12.3",
31+
"ruff (>=0.12.3)",
3532
]
3633

3734
[project.entry-points."flask.commands"]

scripts/test

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,6 @@ fi
6464

6565
function pretests () {
6666
info_msg "Check vulnerabilities:"
67-
# pip 25.2 GHSA-4xh5-x5gv-qwph
68-
add_exceptions "GHSA-4xh5-x5gv-qwph"
69-
# py 1.11.0 PYSEC-2022-42969
70-
add_exceptions " PYSEC-2022-42969"
7167
pip-audit ${pip_audit_exceptions}
7268

7369
info_msg "Test formatting:"

0 commit comments

Comments
 (0)