Skip to content

Commit 8e3fba1

Browse files
committed
Merge branch 'master' of github.com:django-cms/django-filer
2 parents 772a705 + 9df2d5c commit 8e3fba1

Some content is hidden

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

41 files changed

+2157
-1676
lines changed

.github/workflows/docs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ jobs:
88
name: docs
99
steps:
1010
- name: Checkout
11-
uses: actions/checkout@v2
11+
uses: actions/checkout@v5
1212
- name: Set up Python
13-
uses: actions/setup-python@v2
13+
uses: actions/setup-python@v5
1414
with:
15-
python-version: 3.9
15+
python-version: 3.12
1616
- run: python -m pip install -r docs/requirements.txt
1717
- name: Build docs
1818
run: |

.github/workflows/frontend.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
name: gulp
1+
name: Frontend CI
22

33
on: [push]
44

55
jobs:
66
gulp:
7-
runs-on: ubuntu-20.04
7+
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
node-version: [16.20.x]
10+
node-version: [18.19.x]
1111

1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v5
1414
- name: Use Node.js ${{ matrix.node-version }}
15-
uses: actions/setup-node@v1
15+
uses: actions/setup-node@v4
1616
with:
1717
node-version: ${{ matrix.node-version }}
1818
- run: python -m pip install -r tests/requirements/frontend.txt

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
with:
1515
python-version: 3.9
1616
- name: Install flake8
17-
run: pip install --upgrade flake8
17+
run: pip install --upgrade flake8 flake8-pyproject
1818
- name: Run flake8
1919
uses: liskin/gh-problem-matcher-wrap@v1
2020
with:

.github/workflows/test.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,30 +8,31 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11-
python-version: [3.8, 3.9, '3.10', '3.11', '3.12']
11+
python-version: [3.9, '3.10', '3.11', '3.12', '3.13']
1212
requirements-file: [
1313
django-4.2.txt,
1414
django-5.0.txt,
1515
django-5.1.txt,
16+
django-5.2.txt,
1617
django-main.txt,
1718
]
1819
custom-image-model: [false, true]
1920
os: [
20-
ubuntu-20.04,
21+
ubuntu-latest,
2122
]
2223
exclude:
23-
- requirements-file: django-5.0.txt
24-
python-version: 3.8
2524
- requirements-file: django-5.0.txt
2625
python-version: 3.9
27-
- requirements-file: django-5.1.txt
28-
python-version: 3.8
2926
- requirements-file: django-5.1.txt
3027
python-version: 3.9
31-
- requirements-file: django-main.txt
32-
python-version: 3.8
28+
- requirements-file: django-5.2.txt
29+
python-version: 3.9
3330
- requirements-file: django-main.txt
3431
python-version: 3.9
32+
- requirements-file: django-main.txt
33+
python-version: 3.10
34+
- requirements-file: django-main.txt
35+
python-version: 3.11
3536

3637
steps:
3738
- uses: actions/checkout@v1
@@ -40,7 +41,7 @@ jobs:
4041
with:
4142
python-version: ${{ matrix.python-version }}
4243
- name: library prerequisites
43-
run: sudo apt-get install python-dev libpq-dev libmagic1 gcc libxml2-dev libxslt1-dev libjpeg62 libopenjp2-7 -y
44+
run: sudo apt-get install python-dev-is-python3 libpq-dev libmagic1 gcc libxml2-dev libxslt1-dev libjpeg62 libopenjp2-7 -y
4445
- name: Install extra dependencies
4546
run: pip install lxml
4647
if: matrix.python-version == '3.10'

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
18

.pre-commit-config.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ repos:
2121
# args: [--target-version, "2.2"]
2222

2323
- repo: https://github.com/PyCQA/flake8
24-
rev: 7.1.1
24+
rev: 7.0.0
2525
hooks:
2626
- id: flake8
27-
27+
entry: pflake8
28+
additional_dependencies: [pyproject-flake8]
2829
- repo: https://github.com/asottile/yesqa
2930
rev: v1.5.0
3031
hooks:

docs/conf.py

Lines changed: 34 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import sys
1616

1717

18-
sys.path.append(os.path.abspath('../'))
18+
sys.path.append(os.path.abspath("../"))
1919

2020
from filer import __version__ # NOQA
2121

@@ -33,38 +33,38 @@
3333
# Add any Sphinx extension module names here, as strings. They can be extensions
3434
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
3535
extensions = [
36-
'sphinx.ext.autodoc',
37-
'sphinx.ext.doctest',
38-
'sphinx.ext.intersphinx',
39-
'sphinx.ext.todo',
40-
'sphinxcontrib.spelling',
36+
"sphinx.ext.autodoc",
37+
"sphinx.ext.doctest",
38+
"sphinx.ext.intersphinx",
39+
"sphinx.ext.todo",
40+
"sphinxcontrib.spelling",
4141
"sphinx_copybutton",
4242
"sphinxext.opengraph",
43-
'sphinxcontrib.images',
43+
"sphinxcontrib.images",
4444
]
4545

4646
# Add any paths that contain templates here, relative to this directory.
47-
templates_path = ['_templates']
47+
templates_path = ["_templates"]
4848

4949
# The suffix of source filenames.
50-
source_suffix = '.rst'
50+
source_suffix = ".rst"
5151

5252
# The encoding of source files.
5353
# source_encoding = 'utf-8-sig'
5454

5555
# The master toctree document.
56-
master_doc = 'index'
56+
master_doc = "index"
5757

5858
# General information about the project.
59-
project = 'django-filer'
60-
copyright = '%s, Stefan Foulis' % (datetime.date.today().year,)
59+
project = "django-filer"
60+
copyright = "%s, Stefan Foulis" % (datetime.date.today().year,)
6161

6262
# The version info for the project you're documenting, acts as replacement for
6363
# |version| and |release|, also used in various other places throughout the
6464
# built documents.
6565
#
6666
# The short X.Y version.
67-
version = '.'.join(__version__.split('.')[0:2])
67+
version = ".".join(__version__.split(".")[:2])
6868
# The full version, including alpha/beta/rc tags.
6969
release = __version__
7070

@@ -80,7 +80,7 @@
8080

8181
# List of patterns, relative to source directory, that match files and
8282
# directories to ignore when looking for source files.
83-
exclude_patterns = ['_build', '_images', 'README.rst']
83+
exclude_patterns = ["_build", "_images", "README.rst"]
8484

8585
# The reST default role (used for this markup: `text`) to use for all documents.
8686
# default_role = None
@@ -97,7 +97,7 @@
9797
# show_authors = False
9898

9999
# The name of the Pygments (syntax highlighting) style to use.
100-
pygments_style = 'sphinx'
100+
pygments_style = "sphinx"
101101

102102
# A list of ignored prefixes for module index sorting.
103103
# modindex_common_prefix = []
@@ -107,7 +107,7 @@
107107

108108
# The theme to use for HTML and HTML Help pages. See the documentation for
109109
# a list of builtin themes.
110-
html_theme = 'furo'
110+
html_theme = "furo"
111111

112112
# Theme options are theme-specific and customize the look and feel of a theme
113113
# further. For a list of options available for each theme, see the
@@ -138,7 +138,7 @@
138138
# Add any paths that contain custom static files (such as style sheets) here,
139139
# relative to this directory. They are copied after the builtin static files,
140140
# so a file named "default.css" will overwrite the builtin "default.css".
141-
html_static_path = ['_static']
141+
html_static_path = ["_static"]
142142

143143
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
144144
# using the given strftime format.
@@ -182,7 +182,7 @@
182182
# html_file_suffix = ''
183183

184184
# Output file base name for HTML help builder.
185-
htmlhelp_basename = 'django-filerdoc'
185+
htmlhelp_basename = "django-filerdoc"
186186

187187

188188
# -- Options for LaTeX output --------------------------------------------------
@@ -196,7 +196,13 @@
196196
# Grouping the document tree into LaTeX files. List of tuples
197197
# (source start file, target name, title, author, documentclass [howto/manual]).
198198
latex_documents = [
199-
('index', 'django-filer.tex', 'django-filer Documentation', 'Stefan Foulis', 'manual'),
199+
(
200+
"index",
201+
"django-filer.tex",
202+
"django-filer Documentation",
203+
"Stefan Foulis",
204+
"manual",
205+
),
200206
]
201207

202208
# The name of an image file (relative to this directory) to place at the top of
@@ -228,13 +234,19 @@
228234
# One entry per manual page. List of tuples
229235
# (source start file, name, description, authors, manual section).
230236
man_pages = [
231-
('index', 'django-filer', 'django-filer Documentation', ['Stefan Foulis'], 1)
237+
("index", "django-filer", "django-filer Documentation", ["Stefan Foulis"], 1)
232238
]
233239

234240

235241
# Example configuration for intersphinx: refer to the Python standard library.
236-
intersphinx_mapping = {'http://docs.python.org/': None}
242+
intersphinx_mapping = {
243+
"python": ("https://docs.python.org/3", None),
244+
"django": (
245+
"https://docs.djangoproject.com/en/stable/",
246+
"https://docs.djangoproject.com/en/stable/objects.inv",
247+
),
248+
}
237249

238250
images_config = {
239-
'override_image_directive': True,
251+
"override_image_directive": True,
240252
}

docs/requirements.in

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
django>=4.2,<5
2+
furo
3+
restructuredtext-lint
4+
sphinx<8
5+
sphinx-autobuild
6+
sphinx-copybutton
7+
sphinxcontrib-images
8+
sphinxcontrib-spelling
9+
sphinxcontrib-inlinesyntaxhighlight
10+
sphinxext-opengraph
11+
pip-tools

0 commit comments

Comments
 (0)