Skip to content
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
1 change: 0 additions & 1 deletion .coveralls.yml

This file was deleted.

99 changes: 0 additions & 99 deletions .github/workflows/ci.yml

This file was deleted.

16 changes: 16 additions & 0 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: pre-commit
on:
pull_request:
push:
branches: [master, "*.x"]
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: 3.x
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
- uses: pre-commit-ci/lite-action@5d6cc0eb514c891a40562a58a8e71576c5c7fb43 # v1.1.0
if: ${{ !cancelled() }}
39 changes: 39 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Tests
on:
push:
branches:
- master
- "*.x"
paths-ignore:
- "docs/**"
- "*.md"
- "*.rst"
pull_request:
paths-ignore:
- "docs/**"
- "*.md"
- "*.rst"
jobs:
tests:
name: ${{ matrix.name || matrix.python }}
runs-on: ${{ matrix.os || 'ubuntu-latest' }}
strategy:
fail-fast: false
matrix:
include:
- { python: "3.14" }
- { python: "3.13" }
- { python: "3.12" }
- { python: "3.11" }
- { python: "3.10" }
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: astral-sh/setup-uv@v7
with:
enable-cache: true
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: ${{ matrix.python }}
allow-prereleases: true
- run: uv sync --group dev
- run: uv run tox run -e ${{ matrix.tox || format('py{0}', matrix.python) }}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,7 @@ flaskbb/configs/development.py
DISABLED

dist/
.pytest_cache
.mypy_cache
.ruff_cache
.tox
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

15 changes: 15 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
ci:
autoupdate_schedule: monthly
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.7
hooks:
- id: ruff
- id: ruff-format
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-merge-conflict
- id: debug-statements
- id: fix-byte-order-marker
- id: trailing-whitespace
14 changes: 14 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

version: 2
build:
os: ubuntu-24.04
tools:
python: "3.13"
commands:
- asdf plugin add uv
- asdf install uv latest
- asdf global uv latest
- uv run --group docs sphinx-build -W -b dirhtml docs $READTHEDOCS_OUTPUT/html
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

14 changes: 7 additions & 7 deletions CHANGES → CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ Changelog

Here you can see the full list of changes between each Flask-Plugins release.

Version 1.x.x
Version 2.0.0
-------------

Released on TBD.

Version 1.6.2
-------------

Released on September 17th, 2025
UNRELEASED

- Import `Markup` from `MarkupSafe` instead of `Jinja2`.
- Declare missing `MarkupSafe` and `Werkzeug` dependencies.
- Modernize project setup and switch to `uv`.
- Drop support for `Python < 3.10`.
- Drop support for `Flask < 2`.
- Use `pytest` for the tests.


Version 1.6.1
-------------
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2014-2016 by Peter Justin and contributors. See AUTHORS
Copyright (c) 2014-2026 by Peter Justin and contributors. See AUTHORS
for more details.

Some rights reserved.
Expand Down
3 changes: 0 additions & 3 deletions MANIFEST.in

This file was deleted.

22 changes: 11 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

help:
@echo " clean remove unwanted files"
@echo " sdist build source distribution"
@echo " build build source + wheel distribution"
@echo " release build and upload to PyPI"
@echo " release-test build and upload to TestPyPI"
@echo " develop install package in editable mode"
@echo " docs build docs"
@echo " test run tests with pytest"

clean:
Expand All @@ -16,17 +16,17 @@ clean:
find . -name '__pycache__' -exec rm -rf {} +
find . -name '.coverage' -exec rm -rf {} +

sdist:
python -m build --sdist
build:
uv build

release: sdist
twine upload dist/*
release: build
twine upload --skip-existing dist/{*.tar.gz,*.whl}

release-test: sdist
twine upload --repository testpypi dist/*
release-test: build
twine upload --repository testpypi --skip-existing dist/{*.tar.gz,*.whl}

develop:
pip install -e .
docs:
uv run sphinx-build -E -W -b html docs docs/_build/

test:
pytest
uv run tox
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.org/sh4nks/flask-plugins.svg?branch=master)](https://travis-ci.org/sh4nks/flask-plugins) [![Coverage Status](https://coveralls.io/repos/sh4nks/flask-plugins/badge.png)](https://coveralls.io/r/sh4nks/flask-plugins)
[![Build Status](https://github.com/sh4nks/flask-plugins/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/sh4nks/flask-plugins/actions/workflows/ci.yml)

# FLASK-PLUGINS

Expand Down
12 changes: 0 additions & 12 deletions docs/_templates/sidebarintro.html

This file was deleted.

1 change: 0 additions & 1 deletion docs/_themes
Submodule _themes deleted from 1cc446
Loading
Loading