File tree Expand file tree Collapse file tree 6 files changed +23
-6
lines changed
guides/adding-interactivity/dangers-of-mutability Expand file tree Collapse file tree 6 files changed +23
-6
lines changed Original file line number Diff line number Diff line change 1- FROM mcr.microsoft.com/devcontainers/python:1-3.12-bookworm
1+ FROM mcr.microsoft.com/devcontainers/python:1-3.11-bookworm
2+
3+ # Add Yarn GPG key and APT repo securely
4+ RUN curl -fsSL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | tee /usr/share/keyrings/yarn-archive-keyring.gpg > /dev/null
25
36RUN apt-get update \
47 && apt-get install -y --no-install-recommends \
Original file line number Diff line number Diff line change 22
33set -euo pipefail
44
5+ # Workaround for hatch/virtualenv incompatibility
6+ python3 -m pip install --upgrade " virtualenv==20.25.1"
7+
8+ # Install core ReactPy dependencies
9+ pip install fastjsonschema requests lxml anyio typing-extensions
10+
11+ # Install ASGI dependencies for server functionality
12+ pip install orjson asgiref asgi-tools servestatic uvicorn fastapi
13+
14+ # Optional: Install additional servers
15+ pip install flask sanic tornado
16+
517export BUN_INSTALL=" ${BUN_INSTALL:- $HOME / .bun} "
618export PATH=" $BUN_INSTALL /bin:$PATH "
719
@@ -28,6 +40,8 @@ hatch run javascript:build --dev
2840echo " Building Python package..."
2941hatch build --clean
3042
43+ python3 -m pip install .[all]
44+
3145echo " Running ReactPy smoke test..."
3246hatch run python - << 'PY '
3347from reactpy import component, html
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ Always reference these instructions first and fallback to search or bash command
1414
1515** Prerequisites:**
1616
17- - Install Python 3.9 + from https://www.python.org/downloads/
17+ - Install Python 3.11 + from https://www.python.org/downloads/
1818- Install Hatch: ` pip install hatch `
1919- Install Bun JavaScript runtime: ` curl -fsSL https://bun.sh/install | bash && source ~/.bashrc `
2020- Install Git
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ authors = ["rmorshea <ryan.morshead@gmail.com>"]
66readme = " README.md"
77
88[tool .poetry .dependencies ]
9- python = " ^3.9 "
9+ python = " ^3.11 "
1010furo = " 2022.04.07"
1111reactpy = { path = " .." , extras = [" all" ], develop = false }
1212sphinx = " *"
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ Creating a development environment
77If you plan to make code changes to this repository, you will need to install the following dependencies first:
88
99- `Git <https://www.python.org/downloads/ >`__
10- - `Python 3.9 + <https://www.python.org/downloads/ >`__
10+ - `Python 3.11 + <https://www.python.org/downloads/ >`__
1111- `Hatch <https://hatch.pypa.io/latest/ >`__
1212- `Bun <https://bun.sh/ >`__
1313- `Docker <https://docs.docker.com/get-docker/ >`__ (optional)
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ Below are some ways to update dictionaries without mutating them:
138138
139139 {**d, "key": value}
140140
141- # Python >= 3.9
141+ # Python >= 3.11
142142 d | {"key": value}
143143
144144 # Equivalent to dict.setdefault()
@@ -192,7 +192,7 @@ Updating Dictionary Items
192192
193193 {**d, key: value}
194194
195- # Python >= 3.9
195+ # Python >= 3.11
196196 d | {key: value}
197197
198198 # Equivalent to setdefault()
You can’t perform that action at this time.
0 commit comments