Skip to content

Commit 373213e

Browse files
authored
ENG-9032: move framework docs into framework repo (#6206)
* add docs * write the py filers * delete enterprise and hosting docs * i had enough of you prettier * add markdown parsing * improve parser and move into its own namespace * read with utf 8 * add uv parsing * parse components * move reflex packages * so mucn * god * add CI * sad * what * try that * done * rename * kill process for sure * get back cleanup it to where it was * try taskkill on windows * 3.14 * get rid of circular deps and makde core not depend on radix * add build hook to all of those guys * precommit * crazy how a readme can do that * add workspace package * fix unit test failures * cleanup docs * remove almost all pcweb imports * this is getting out of hand to be in one line * merge with main * regenerate pyi hashes * add base * remove base * ah did this guy wrong * remove breakpoints from types * delete that since that works * move var into reflex-core * move reflex event * move more files into core * cleanups * move component * update imports * fix imports * fix precommit * maybe? * that didn't work * ah * fix import for event module * uv sync and precommit * move templates * fix path to templates * move templates to the correct place * use artifacts * fix precommit * coverage isn't detecting quite right * what * add raise * imports * move plugins * move plugins * imports * move config files * add new files * move utils * add shim * fix imports * update imports * move config and environment * update reflex config imports * update imports * move more imports to reflex_core * update component, event, and style imports * move reflex util import changes * minimize util imports in packages * move props * more import changes * move literals * insert shim * add lazy loader * fix imports * update hashes * add "reflex-components-core" to build deps and rewrite banner and logo to use on html elements * does this even work * maybe * get it to combile * fix reflex import * move upload * update imports * no need for shim * fix upload * move react router into core * update its imports * remove radix reliance on reflex import * interesting * specify all deps * move upload back here * update imports * update deps * fix the mocks * oh well * fix module imports * use string * use strings * do imports better * i inverted the logic * fix list_ns * ig? * give up on list * export modules * fix radix imports * add fetch tags to actions
1 parent 4f9675f commit 373213e

File tree

669 files changed

+65953
-31886
lines changed

Some content is hidden

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

669 files changed

+65953
-31886
lines changed

.github/codeql-config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
paths:
22
- .github
33
- reflex
4-
- reflex/.templates
4+
- packages
55
paths-ignore:
66
- "**/tests/**"

.github/workflows/check_node_latest.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ jobs:
2424

2525
steps:
2626
- uses: actions/checkout@v4
27+
with:
28+
fetch-tags: true
29+
fetch-depth: 0
2730
- uses: ./.github/actions/setup_build_env
2831
with:
2932
python-version: 3.13

.github/workflows/check_outdated_dependencies.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ jobs:
1414

1515
steps:
1616
- name: Checkout code
17-
uses: actions/checkout@v3
18-
17+
uses: actions/checkout@v4
18+
with:
19+
fetch-tags: true
20+
fetch-depth: 0
1921
- uses: ./.github/actions/setup_build_env
2022
with:
2123
python-version: 3.13
@@ -43,6 +45,10 @@ jobs:
4345
steps:
4446
- name: Checkout code
4547
uses: actions/checkout@v4
48+
with:
49+
fetch-tags: true
50+
fetch-depth: 0
51+
4652
- uses: ./.github/actions/setup_build_env
4753
with:
4854
python-version: 3.13

.github/workflows/integration_app_harness.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ jobs:
4545
- 6379:6379
4646
steps:
4747
- uses: actions/checkout@v4
48+
with:
49+
fetch-tags: true
50+
fetch-depth: 0
4851
- uses: ./.github/actions/setup_build_env
4952
with:
5053
python-version: ${{ matrix.python-version }}

.github/workflows/integration_tests.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,14 @@ jobs:
4343
matrix:
4444
# Show OS combos first in GUI
4545
os: [ubuntu-latest, windows-latest]
46-
python-version: ["3.10", "3.11", "3.12", "3.13"]
46+
python-version: ["3.14"]
4747

4848
runs-on: ${{ matrix.os }}
4949
steps:
5050
- uses: actions/checkout@v4
51+
with:
52+
fetch-tags: true
53+
fetch-depth: 0
5154
- uses: ./.github/actions/setup_build_env
5255
with:
5356
python-version: ${{ matrix.python-version }}
@@ -111,6 +114,9 @@ jobs:
111114
runs-on: ubuntu-latest
112115
steps:
113116
- uses: actions/checkout@v4
117+
with:
118+
fetch-tags: true
119+
fetch-depth: 0
114120
- uses: ./.github/actions/setup_build_env
115121
with:
116122
python-version: ${{ matrix.python-version }}
@@ -147,6 +153,9 @@ jobs:
147153
runs-on: ubuntu-latest
148154
steps:
149155
- uses: actions/checkout@v4
156+
with:
157+
fetch-tags: true
158+
fetch-depth: 0
150159
- uses: ./.github/actions/setup_build_env
151160
with:
152161
python-version: 3.14
@@ -179,6 +188,9 @@ jobs:
179188
runs-on: macos-latest
180189
steps:
181190
- uses: actions/checkout@v4
191+
with:
192+
fetch-tags: true
193+
fetch-depth: 0
182194
- uses: ./.github/actions/setup_build_env
183195
with:
184196
python-version: ${{ matrix.python-version }}

.github/workflows/performance.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ jobs:
2424
runs-on: ubuntu-latest
2525
steps:
2626
- uses: actions/checkout@v4
27+
with:
28+
fetch-tags: true
29+
fetch-depth: 0
2730

2831
- name: Install uv
2932
uses: astral-sh/setup-uv@v6

.github/workflows/pre-commit.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,16 @@ jobs:
2121
runs-on: ubuntu-latest
2222
steps:
2323
- uses: actions/checkout@v4
24+
with:
25+
fetch-tags: true
26+
fetch-depth: 0
2427
- uses: ./.github/actions/setup_build_env
2528
with:
2629
python-version: 3.14
2730
run-uv-sync: true
2831
- uses: actions/checkout@v4
2932
with:
3033
clean: false
34+
fetch-tags: true
35+
fetch-depth: 0
3136
- run: uv run pre-commit run --all-files --show-diff-on-failure

.github/workflows/publish.yml

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
name: Publish to PyPI
22

33
on:
4+
release:
5+
types: [published]
46
workflow_dispatch:
7+
inputs:
8+
tag:
9+
description: "Release tag (e.g. v1.2.3 or reflex-lucide-v0.1.0)"
10+
required: true
511

612
jobs:
713
publish:
@@ -14,14 +20,39 @@ jobs:
1420
steps:
1521
- name: Checkout
1622
uses: actions/checkout@v6
23+
with:
24+
fetch-tags: true
25+
fetch-depth: 0
1726

1827
- name: Install uv
1928
uses: astral-sh/setup-uv@v7
2029

30+
- name: Parse release tag
31+
id: parse
32+
run: |
33+
TAG="${{ github.event.release.tag_name || inputs.tag }}"
34+
# Tag format: v1.2.3 for reflex, reflex-lucide-v0.1.0 for sub-packages
35+
if [[ "$TAG" =~ ^v([0-9].*)$ ]]; then
36+
echo "package=reflex" >> "$GITHUB_OUTPUT"
37+
echo "build_dir=." >> "$GITHUB_OUTPUT"
38+
elif [[ "$TAG" =~ ^(.+)-v([0-9].*)$ ]]; then
39+
PACKAGE="${BASH_REMATCH[1]}"
40+
if [ ! -d "packages/$PACKAGE" ]; then
41+
echo "Error: packages/$PACKAGE does not exist"
42+
exit 1
43+
fi
44+
echo "package=$PACKAGE" >> "$GITHUB_OUTPUT"
45+
echo "build_dir=packages/$PACKAGE" >> "$GITHUB_OUTPUT"
46+
else
47+
echo "Error: Tag '$TAG' does not match expected format (v* or <package>-v*)"
48+
exit 1
49+
fi
50+
2151
- name: Build
22-
run: uv build
52+
run: uv build --directory "${{ steps.parse.outputs.build_dir }}"
2353

2454
- name: Verify .pyi files in wheel
55+
if: steps.parse.outputs.package == 'reflex'
2556
run: |
2657
if unzip -l dist/*.whl | grep '\.pyi$'; then
2758
echo "✓ .pyi files found in distribution"
@@ -31,4 +62,4 @@ jobs:
3162
fi
3263
3364
- name: Publish
34-
run: uv publish
65+
run: uv publish --directory "${{ steps.parse.outputs.build_dir }}"

.github/workflows/reflex_init_in_docker_test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ jobs:
2424
runs-on: ubuntu-latest
2525
steps:
2626
- uses: actions/checkout@v4
27+
with:
28+
fetch-tags: true
29+
fetch-depth: 0
2730

2831
- shell: bash
2932
run: |

.github/workflows/unit_tests.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ jobs:
4747
- 6379:6379
4848
steps:
4949
- uses: actions/checkout@v4
50+
with:
51+
fetch-tags: true
52+
fetch-depth: 0
5053
- uses: ./.github/actions/setup_build_env
5154
with:
5255
python-version: ${{ matrix.python-version }}
@@ -69,12 +72,6 @@ jobs:
6972
export REFLEX_REDIS_URL=redis://localhost:6379
7073
export REFLEX_OPLOCK_ENABLED=true
7174
uv run pytest tests/units --cov --no-cov-on-fail --cov-report=
72-
# Change to explicitly install v1 when reflex-hosting-cli is compatible with v2
73-
- name: Run unit tests w/ pydantic v1
74-
run: |
75-
export PYTHONUNBUFFERED=1
76-
uv pip install "pydantic~=1.10"
77-
uv run pytest tests/units --cov --no-cov-on-fail --cov-report=
7875
- name: Generate coverage report
7976
run: uv run coverage html
8077

@@ -88,6 +85,9 @@ jobs:
8885
runs-on: macos-latest
8986
steps:
9087
- uses: actions/checkout@v4
88+
with:
89+
fetch-tags: true
90+
fetch-depth: 0
9191
- uses: ./.github/actions/setup_build_env
9292
with:
9393
python-version: ${{ matrix.python-version }}
@@ -97,8 +97,3 @@ jobs:
9797
run: |
9898
export PYTHONUNBUFFERED=1
9999
uv run pytest tests/units --cov --no-cov-on-fail --cov-report=
100-
- name: Run unit tests w/ pydantic v1
101-
run: |
102-
export PYTHONUNBUFFERED=1
103-
uv pip install "pydantic~=1.10"
104-
uv run pytest tests/units --cov --no-cov-on-fail --cov-report=

0 commit comments

Comments
 (0)