Skip to content

Commit 0ac8599

Browse files
authored
Add python 3.12 to test matrix (#1168)
1 parent 9bf972b commit 0ac8599

File tree

11 files changed

+14
-13
lines changed

11 files changed

+14
-13
lines changed

.github/workflows/pytest.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
matrix:
1818
# "3.10" must be a string; otherwise it is interpreted as 3.1.
19-
python-version: ["3.11", "3.10", "3.9", "3.8"]
19+
python-version: ["3.12", "3.11", "3.10", "3.9", "3.8"]
2020
os: [ubuntu-latest, windows-latest, macOS-latest]
2121
fail-fast: false
2222

@@ -53,7 +53,7 @@ jobs:
5353
if: github.event_name != 'release'
5454
strategy:
5555
matrix:
56-
python-version: ["3.11", "3.10", "3.9", "3.8"]
56+
python-version: ["3.12", "3.11", "3.10", "3.9", "3.8"]
5757
os: [ubuntu-latest]
5858
fail-fast: false
5959

examples/cpuinfo/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
text-align: center;
5151
}
5252
"""
53-
% f"{ncpu*4}em"
53+
% f"{ncpu * 4}em"
5454
),
5555
ui.h3("CPU Usage %", class_="mt-2"),
5656
ui.layout_sidebar(

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ classifiers =
1919
Programming Language :: Python :: 3.9
2020
Programming Language :: Python :: 3.10
2121
Programming Language :: Python :: 3.11
22+
Programming Language :: Python :: 3.12
2223
project_urls =
2324
Bug Tracker = https://github.com/posit-dev/py-shiny/issues
2425
Documentation = https://shiny.posit.co/py/

shiny/api-examples/download/app-core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def download2():
108108
yield buf.getvalue()
109109

110110
@render.download(
111-
filename=lambda: f"新型-{date.today().isoformat()}-{np.random.randint(100,999)}.csv"
111+
filename=lambda: f"新型-{date.today().isoformat()}-{np.random.randint(100, 999)}.csv"
112112
)
113113
async def download3():
114114
await asyncio.sleep(0.25)

shiny/api-examples/download/app-express.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def download2():
5757

5858
@render.download(
5959
label="Download filename",
60-
filename=lambda: f"新型-{date.today().isoformat()}-{np.random.randint(100,999)}.csv",
60+
filename=lambda: f"新型-{date.today().isoformat()}-{np.random.randint(100, 999)}.csv",
6161
)
6262
async def download3():
6363
await asyncio.sleep(0.25)

shiny/api-examples/download_button/app-core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
def server(input: Inputs, output: Outputs, session: Session):
1313
@render.download(
14-
filename=lambda: f"新型-{date.today().isoformat()}-{random.randint(100,999)}.csv"
14+
filename=lambda: f"新型-{date.today().isoformat()}-{random.randint(100, 999)}.csv"
1515
)
1616
async def downloadData():
1717
await asyncio.sleep(0.25)

shiny/api-examples/download_button/app-express.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
@render.download(
9-
filename=lambda: f"新型-{date.today().isoformat()}-{random.randint(100,999)}.csv"
9+
filename=lambda: f"新型-{date.today().isoformat()}-{random.randint(100, 999)}.csv"
1010
)
1111
async def downloadData():
1212
await asyncio.sleep(0.25)

shiny/api-examples/download_link/app-core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
def server(input: Inputs, output: Outputs, session: Session):
1313
@render.download(
14-
filename=lambda: f"新型-{date.today().isoformat()}-{random.randint(100,999)}.csv"
14+
filename=lambda: f"新型-{date.today().isoformat()}-{random.randint(100, 999)}.csv"
1515
)
1616
async def downloadData():
1717
await asyncio.sleep(0.25)

shiny/api-examples/remove_accordion_panel/app-core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def _():
3737
return
3838

3939
# Remove panel
40-
ui.remove_accordion_panel("acc", f"Section { user_choices.pop() }")
40+
ui.remove_accordion_panel("acc", f"Section {user_choices.pop()}")
4141

4242
label = "No more panels to remove!"
4343
if len(user_choices) > 0:

shiny/api-examples/remove_accordion_panel/app-express.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def _():
3030
ui.notification_show("No more panels to remove!")
3131
return
3232

33-
ui.remove_accordion_panel("acc", f"Section { user_choices.pop() }")
33+
ui.remove_accordion_panel("acc", f"Section {user_choices.pop()}")
3434

3535
label = "No more panels to remove!"
3636
if len(user_choices) > 0:

0 commit comments

Comments
 (0)