Skip to content

Commit ef5a69f

Browse files
authored
Bump packages and pre release (#101)
Bump packages and pre release
1 parent 210451e commit ef5a69f

41 files changed

Lines changed: 3987 additions & 4693 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Set up Python
1717
uses: actions/setup-python@v4
1818
with:
19-
python-version: '3.12'
19+
python-version: '3.13'
2020
cache: "poetry"
2121
- name: Setup Node.js
2222
uses: actions/setup-node@v3

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ clean:
88
.PHONY: fix
99
fix:
1010
@echo "Run ruff"
11-
@exec poetry run ruff --fix fastadmin tests docs examples
11+
@exec poetry run ruff check --fix fastadmin tests docs examples
1212
@echo "Run isort"
1313
@exec poetry run isort fastadmin tests docs examples
1414
@echo "Run black"
@@ -21,7 +21,7 @@ fix:
2121
.PHONY: lint
2222
lint:
2323
@echo "Run ruff"
24-
@exec poetry run ruff fastadmin tests docs examples
24+
@exec poetry run ruff check fastadmin tests docs examples
2525
@echo "Run isort"
2626
@exec poetry run isort --check-only fastadmin tests docs examples
2727
@echo "Run black"
@@ -34,7 +34,7 @@ lint:
3434
# -n auto : fix django
3535
.PHONY: test
3636
test:
37-
@exec poetry run pytest --cov=fastadmin --cov-report=term-missing --cov-report=xml --cov-fail-under=80 -s tests
37+
@exec poetry run pytest -n 1 --cov=fastadmin --cov-report=term-missing --cov-report=xml --cov-fail-under=80 -s tests
3838
@exec make -C frontend test
3939

4040
.PHONY: kill

docs/build.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import inspect
22
import os
3+
import re
34
import sys
45
from datetime import datetime, timezone
56
from pathlib import Path
67

78
from django.apps import apps
89
from django.apps.registry import Apps
9-
from htmlmin import minify
1010
from jinja2 import Environment, FileSystemLoader, select_autoescape
1111

1212
from fastadmin.settings import ROOT_DIR, Settings
@@ -18,6 +18,12 @@
1818
Apps.check_apps_ready = lambda x: None
1919

2020

21+
def html_minify(html: str) -> str:
22+
html = re.sub(r">\s+<", "><", html)
23+
html = re.sub(r"\s+", " ", html)
24+
return html.strip()
25+
26+
2127
class App:
2228
label = "app"
2329

@@ -39,6 +45,12 @@ def read_cls_docstring(cls):
3945

4046
def get_versions():
4147
return [
48+
{
49+
"version": "0.2.20",
50+
"changes": [
51+
"Fix for _id fields. Bump packages for backend and frontend.",
52+
],
53+
},
4254
{
4355
"version": "0.2.19",
4456
"changes": [
@@ -648,7 +660,7 @@ def build():
648660
index_template = env.get_template("templates/index.html")
649661
index_html = index_template.render(**context)
650662
with Path.open(Path("index.html"), "w") as fh:
651-
fh.write(minify(index_html))
663+
fh.write(html_minify(index_html))
652664

653665
readme_template = env.get_template("templates/readme.md")
654666
readme_md = readme_template.render(**context)

docs/index.html

Lines changed: 1 addition & 1314 deletions
Large diffs are not rendered by default.

examples/django_djangoorm/poetry.lock

Lines changed: 28 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/django_djangoorm/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ package-mode = false
1010

1111
[tool.poetry.dependencies]
1212
python = "^3.10"
13-
django = "^5.1"
14-
fastadmin = {"version" = "^0.2.15", extras = ["django"]}
13+
django = "^5.2"
14+
fastadmin = {"version" = "^0.2.19", extras = ["django"]}
1515

1616
[build-system]
1717
requires = ["poetry-core>=1.0.0"]

0 commit comments

Comments
 (0)