Skip to content

Commit 096bf20

Browse files
misc fixes
1 parent 73fb626 commit 096bf20

File tree

6 files changed

+23
-6
lines changed

6 files changed

+23
-6
lines changed

.devcontainer/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
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

36
RUN apt-get update \
47
&& apt-get install -y --no-install-recommends \

.devcontainer/post-create.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22

33
set -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+
517
export BUN_INSTALL="${BUN_INSTALL:-$HOME/.bun}"
618
export PATH="$BUN_INSTALL/bin:$PATH"
719

@@ -28,6 +40,8 @@ hatch run javascript:build --dev
2840
echo "Building Python package..."
2941
hatch build --clean
3042

43+
python3 -m pip install .[all]
44+
3145
echo "Running ReactPy smoke test..."
3246
hatch run python - <<'PY'
3347
from reactpy import component, html

.github/copilot-instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

docs/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ authors = ["rmorshea <ryan.morshead@gmail.com>"]
66
readme = "README.md"
77

88
[tool.poetry.dependencies]
9-
python = "^3.9"
9+
python = "^3.11"
1010
furo = "2022.04.07"
1111
reactpy = { path = "..", extras = ["all"], develop = false }
1212
sphinx = "*"

docs/source/about/contributor-guide.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Creating a development environment
77
If 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)

docs/source/guides/adding-interactivity/dangers-of-mutability/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)