Skip to content

Commit ae64be2

Browse files
Updated files with 'repo_helper'. (#35)
Co-authored-by: repo-helper[bot] <74742576+repo-helper[bot]@users.noreply.github.com>
1 parent cbcfaf3 commit ae64be2

File tree

5 files changed

+28
-7
lines changed

5 files changed

+28
-7
lines changed

.github/workflows/python_ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: "windows-2019"
2323
continue-on-error: ${{ matrix.config.experimental }}
2424
env:
25-
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-beta.2'
25+
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-beta.3'
2626

2727
strategy:
2828
fail-fast: False
@@ -35,7 +35,7 @@ jobs:
3535
- {python-version: "3.10", testenvs: "py310-click{7,8},build", experimental: False}
3636
- {python-version: "3.11", testenvs: "py311-click{7,8},build", experimental: False}
3737
- {python-version: "3.12", testenvs: "py312-click{7,8},build", experimental: False}
38-
- {python-version: "3.13.0-beta.2", testenvs: "py313-dev-click{7,8},build", experimental: True}
38+
- {python-version: "3.13.0-beta.3", testenvs: "py313-dev-click{7,8},build", experimental: True}
3939

4040
steps:
4141
- name: Checkout 🛎️

.github/workflows/python_ci_linux.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: "ubuntu-20.04"
2424
continue-on-error: ${{ matrix.config.experimental }}
2525
env:
26-
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-beta.2'
26+
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-beta.3'
2727

2828
strategy:
2929
fail-fast: False
@@ -36,7 +36,7 @@ jobs:
3636
- {python-version: "3.10", testenvs: "py310-click{7,8},build", experimental: False}
3737
- {python-version: "3.11", testenvs: "py311-click{7,8},build", experimental: False}
3838
- {python-version: "3.12", testenvs: "py312-click{7,8},build", experimental: False}
39-
- {python-version: "3.13.0-beta.2", testenvs: "py313-dev-click{7,8},build", experimental: True}
39+
- {python-version: "3.13.0-beta.3", testenvs: "py313-dev-click{7,8},build", experimental: True}
4040

4141
steps:
4242
- name: Checkout 🛎️

.github/workflows/python_ci_macos.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: "macos-13"
2323
continue-on-error: ${{ matrix.config.experimental }}
2424
env:
25-
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-beta.2'
25+
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-beta.3'
2626

2727
strategy:
2828
fail-fast: False
@@ -35,7 +35,7 @@ jobs:
3535
- {python-version: "3.10", testenvs: "py310-click{7,8},build", experimental: False}
3636
- {python-version: "3.11", testenvs: "py311-click{7,8},build", experimental: False}
3737
- {python-version: "3.12", testenvs: "py312-click{7,8},build", experimental: False}
38-
- {python-version: "3.13.0-beta.2", testenvs: "py313-dev-click{7,8},build", experimental: True}
38+
- {python-version: "3.13.0-beta.3", testenvs: "py313-dev-click{7,8},build", experimental: True}
3939

4040
steps:
4141
- name: Checkout 🛎️

doc-source/conf.py

+16-1
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,28 @@
7171
}
7272

7373

74+
# Fix for pathlib issue with sphinxemoji on Python 3.9 and Sphinx 4.x
75+
def copy_asset_files(app, exc):
76+
# 3rd party
77+
from domdf_python_tools.compat import importlib_resources
78+
from sphinx.util.fileutil import copy_asset
79+
80+
if exc:
81+
return
82+
83+
asset_files = ["twemoji.js", "twemoji.css"]
84+
for path in asset_files:
85+
path_str = os.fspath(importlib_resources.files("sphinxemoji") / path)
86+
copy_asset(path_str, os.path.join(app.outdir, "_static"))
87+
88+
7489
def setup(app):
7590
# 3rd party
7691
from sphinx_toolbox.latex import better_header_layout
7792
from sphinxemoji import sphinxemoji
7893

7994
app.connect("config-inited", lambda app, config: better_header_layout(config))
80-
app.connect("build-finished", sphinxemoji.copy_asset_files)
95+
app.connect("build-finished", copy_asset_files)
8196
app.add_js_file("https://unpkg.com/twemoji@latest/dist/twemoji.min.js")
8297
app.add_js_file("twemoji.js")
8398
app.add_css_file("twemoji.css")

doc-source/requirements.txt

+6
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,11 @@ sphinx-prompt>=1.1.0
1616
sphinx-pyproject>=0.1.0
1717
sphinx-tabs>=1.1.13
1818
sphinx-toolbox>=3.5.0
19+
sphinxcontrib-applehelp==1.0.4
20+
sphinxcontrib-devhelp==1.0.2
21+
sphinxcontrib-htmlhelp==2.0.1
22+
sphinxcontrib-jsmath==1.0.1
23+
sphinxcontrib-qthelp==1.0.3
24+
sphinxcontrib-serializinghtml==1.1.5
1925
sphinxemoji>=0.1.6
2026
toctree-plus>=0.6.1

0 commit comments

Comments
 (0)