diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7ce2103..45908c3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,10 +3,10 @@ name: build on: push: branches: - - master + - main pull_request: branches: - - master + - main jobs: lint: @@ -22,7 +22,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python: ['3.7', '3.8', '3.9', '3.10', '3.11'] + python: ['3.8', '3.9', '3.10', '3.11', '3.12'] fail-fast: false runs-on: ${{ matrix.os }} steps: diff --git a/CHANGES.rst b/CHANGES.rst index 0a93c40..32329b5 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,17 +4,11 @@ Changelog 1.0.0 ----- -Release date: - - -- Disable the version check for old CKEditor versions. - - -0.5.2 ------ - -Release date: N/A +Release date: 2024/7/5 - Add ``cleanify`` function to ``flask_ckeditor.utils`` for HTML sanitization. +- Disable the version check for old CKEditor versions. +- Update the default CDN library version to 4.22.1. 0.5.1 diff --git a/flask_ckeditor/__init__.py b/flask_ckeditor/__init__.py index 8d9f2ba..a4fe820 100644 --- a/flask_ckeditor/__init__.py +++ b/flask_ckeditor/__init__.py @@ -14,7 +14,7 @@ class _CKEditor(object): """The class implement functions for Jinja2 template.""" @staticmethod - def load(custom_url=None, pkg_type=None, serve_local=None, version='4.14.0'): + def load(custom_url=None, pkg_type=None, serve_local=None, version='4.22.1'): """Load CKEditor resource from CDN or local. :param custom_url: The custom resource url to use, build your CKEditor diff --git a/setup.py b/setup.py index a1607a7..a60231b 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ setup( name='Flask-CKEditor', - version='1.0.0-dev', + version='1.0.0', url='http://github.com/helloflask/flask-ckeditor', license='MIT', author='Grey Li', @@ -43,11 +43,11 @@ 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', 'Topic :: Software Development :: Libraries :: Python Modules' ] diff --git a/tox.ini b/tox.ini index 95abc78..5b1043d 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py37, py38, py39, py310, py311, docs +envlist = py38, py39, py310, py311, py312, docs skip_missing_interpreters = true # skipsdist = true