Skip to content

Commit 7a50951

Browse files
committed
refactor: rename src/lfx/src/lfx to src/core/lfx for better dx
1 parent 716d908 commit 7a50951

File tree

792 files changed

+44
-44
lines changed

Some content is hidden

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

792 files changed

+44
-44
lines changed

.github/workflows/nightly_build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ jobs:
8989
9090
uv lock
9191
cd src/backend/base && uv lock && cd ../../..
92-
cd src/lfx && uv lock && cd ../..
92+
cd src/core && uv lock && cd ../..
9393
94-
git add pyproject.toml src/backend/base/pyproject.toml src/lfx/pyproject.toml uv.lock src/backend/base/uv.lock
94+
git add pyproject.toml src/backend/base/pyproject.toml src/core/pyproject.toml uv.lock src/backend/base/uv.lock
9595
git commit -m "Update version and project name"
9696
9797
echo "Tagging main with $MAIN_TAG"

.github/workflows/release-lfx.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
- name: Check version
5959
id: check
6060
run: |
61-
cd src/lfx
61+
cd src/core
6262
# Use uv tree to get package info, consistent with nightly workflow
6363
name=$(uv tree | grep 'lfx' | head -n 1 | awk '{print $1}')
6464
version=$(uv tree | grep 'lfx' | head -n 1 | awk '{print $2}')
@@ -107,12 +107,12 @@ jobs:
107107

108108
- name: Run LFX tests
109109
run: |
110-
cd src/lfx
110+
cd src/core
111111
make test
112112
113113
- name: Test CLI installation
114114
run: |
115-
cd src/lfx
115+
cd src/core
116116
uv pip install .
117117
uv run lfx --help
118118
uv run lfx run --help
@@ -142,7 +142,7 @@ jobs:
142142
- name: Verify Version
143143
id: check-version
144144
run: |
145-
cd src/lfx
145+
cd src/core
146146
# Use uv tree to get package info, consistent with nightly workflow
147147
name=$(uv tree | grep 'lfx' | head -n 1 | awk '{print $1}')
148148
version=$(uv tree | grep 'lfx' | head -n 1 | awk '{print $2}')
@@ -166,20 +166,20 @@ jobs:
166166
167167
- name: Build distribution
168168
run: |
169-
cd src/lfx
169+
cd src/core
170170
rm -rf dist/
171171
uv build --wheel --out-dir dist
172172
173173
- name: Check build artifacts
174174
run: |
175-
cd src/lfx
175+
cd src/core
176176
ls -la dist/
177177
# Verify wheel contents
178178
unzip -l dist/*.whl | grep -E "(lfx/__main__.py|lfx/cli/run.py|lfx/cli/commands.py)"
179179
180180
- name: Test installation from wheel
181181
run: |
182-
cd src/lfx
182+
cd src/core
183183
uv pip install dist/*.whl --force-reinstall
184184
uv run lfx --help
185185
echo "LFX CLI test completed successfully"
@@ -188,15 +188,15 @@ jobs:
188188
uses: actions/upload-artifact@v4
189189
with:
190190
name: lfx-dist
191-
path: src/lfx/dist/
191+
path: src/core/dist/
192192
retention-days: 5
193193

194194
- name: Publish to PyPI
195195
if: github.event.inputs.publish_pypi == 'true'
196196
env:
197197
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
198198
run: |
199-
cd src/lfx
199+
cd src/core
200200
uv publish dist/*.whl
201201
202202
build-docker:
@@ -250,7 +250,7 @@ jobs:
250250
uses: docker/build-push-action@v5
251251
with:
252252
context: .
253-
file: src/lfx/docker/Dockerfile${{ matrix.variant == 'alpine' && '.alpine' || '' }}
253+
file: src/core/docker/Dockerfile${{ matrix.variant == 'alpine' && '.alpine' || '' }}
254254
platforms: linux/amd64,linux/arm64
255255
push: true
256256
tags: ${{ steps.meta.outputs.tags }}

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ jobs:
353353
- name: Check Version
354354
id: check-version
355355
run: |
356-
cd src/lfx
356+
cd src/core
357357
version=$(uv tree | grep 'lfx' | head -n 1 | awk '{print $2}' | sed 's/^v//')
358358
last_released_version=$(curl -s "https://pypi.org/pypi/lfx/json" | jq -r '.releases | keys | .[]' | sort -V | tail -n 1)
359359
if [ "$version" = "$last_released_version" ]; then
@@ -364,19 +364,19 @@ jobs:
364364
fi
365365
- name: Build project for distribution
366366
run: |
367-
cd src/lfx
367+
cd src/core
368368
rm -rf dist/
369369
uv build --wheel --out-dir dist
370370
- name: Test CLI
371371
run: |
372-
cd src/lfx
372+
cd src/core
373373
uv pip install dist/*.whl --force-reinstall
374374
uv run lfx --help
375375
- name: Upload Artifact
376376
uses: actions/upload-artifact@v4
377377
with:
378378
name: dist-lfx
379-
path: src/lfx/dist
379+
path: src/core/dist
380380

381381
publish-lfx:
382382
name: Publish LFX to PyPI
@@ -388,7 +388,7 @@ jobs:
388388
uses: actions/download-artifact@v4
389389
with:
390390
name: dist-lfx
391-
path: src/lfx/dist
391+
path: src/core/dist
392392
- name: Setup Environment
393393
uses: astral-sh/setup-uv@v6
394394
with:
@@ -398,7 +398,7 @@ jobs:
398398
env:
399399
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
400400
run: |
401-
cd src/lfx && uv publish dist/*.whl
401+
cd src/core && uv publish dist/*.whl
402402
403403
create_release:
404404
name: Create Release

.github/workflows/release_nightly.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,12 @@ jobs:
9999
python-version: ${{ env.PYTHON_VERSION }}
100100
prune-cache: false
101101
- name: Install LFX dependencies
102-
run: cd src/lfx && uv sync
102+
run: cd src/core && uv sync
103103

104104
- name: Verify Nightly Name and Version
105105
id: verify
106106
run: |
107-
cd src/lfx
107+
cd src/core
108108
name=$(uv tree | grep 'lfx' | head -n 1 | awk '{print $1}')
109109
version=$(uv tree | grep 'lfx' | head -n 1 | awk '{print $2}')
110110
if [ "$name" != "lfx-nightly" ]; then
@@ -121,13 +121,13 @@ jobs:
121121
122122
- name: Build LFX for distribution
123123
run: |
124-
cd src/lfx
124+
cd src/core
125125
rm -rf dist/
126126
uv build --wheel --out-dir dist
127127
128128
- name: Test LFX CLI
129129
run: |
130-
cd src/lfx
130+
cd src/core
131131
uv pip install dist/*.whl --force-reinstall
132132
uv run lfx --help
133133
echo "LFX CLI test completed successfully"
@@ -138,7 +138,7 @@ jobs:
138138
uses: actions/upload-artifact@v4
139139
with:
140140
name: dist-nightly-lfx
141-
path: src/lfx/dist
141+
path: src/core/dist
142142

143143
build-nightly-base:
144144
name: Build Langflow Nightly Base
@@ -317,7 +317,7 @@ jobs:
317317
uses: actions/download-artifact@v4
318318
with:
319319
name: dist-nightly-lfx
320-
path: src/lfx/dist
320+
path: src/core/dist
321321
- name: Setup Environment
322322
uses: astral-sh/setup-uv@v6
323323
with:

Makefile

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ unit_tests_looponfail:
150150

151151
lfx_tests: ## run lfx package unit tests
152152
@echo 'Running LFX Package Tests...'
153-
@cd src/lfx && \
153+
@cd src/core && \
154154
uv sync && \
155155
uv run pytest tests/unit -v $(args)
156156

@@ -417,43 +417,43 @@ publish_testpypi: ## build the frontend static files and package the project and
417417

418418
lfx_build: ## build the LFX package
419419
@echo 'Building LFX package'
420-
@cd src/lfx && make build
420+
@cd src/core && make build
421421

422422
lfx_publish: ## publish LFX package to PyPI
423423
@echo 'Publishing LFX package'
424-
@cd src/lfx && make publish
424+
@cd src/core && make publish
425425

426426
lfx_publish_testpypi: ## publish LFX package to test PyPI
427427
@echo 'Publishing LFX package to test PyPI'
428-
@cd src/lfx && make publish_test
428+
@cd src/core && make publish_test
429429

430430
lfx_test: ## run LFX tests
431431
@echo 'Running LFX tests'
432-
@cd src/lfx && make test
432+
@cd src/core && make test
433433

434434
lfx_format: ## format LFX code
435435
@echo 'Formatting LFX code'
436-
@cd src/lfx && make format
436+
@cd src/core && make format
437437

438438
lfx_lint: ## lint LFX code
439439
@echo 'Linting LFX code'
440-
@cd src/lfx && make lint
440+
@cd src/core && make lint
441441

442442
lfx_clean: ## clean LFX build artifacts
443443
@echo 'Cleaning LFX build artifacts'
444-
@cd src/lfx && make clean
444+
@cd src/core && make clean
445445

446446
lfx_docker_build: ## build LFX production Docker image
447447
@echo 'Building LFX Docker image'
448-
@cd src/lfx && make docker_build
448+
@cd src/core && make docker_build
449449

450450
lfx_docker_dev: ## start LFX development environment
451451
@echo 'Starting LFX development environment'
452-
@cd src/lfx && make docker_dev
452+
@cd src/core && make docker_dev
453453

454454
lfx_docker_test: ## run LFX tests in Docker
455455
@echo 'Running LFX tests in Docker'
456-
@cd src/lfx && make docker_test
456+
@cd src/core && make docker_test
457457

458458
# example make alembic-revision message="Add user table"
459459
alembic-revision: ## generate a new migration

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ lfx = { workspace = true }
191191
members = [
192192
"src/backend/base",
193193
".",
194-
"src/lfx",
194+
"src/core",
195195
]
196196

197197
[tool.hatch.build.targets.wheel]
@@ -262,7 +262,7 @@ ignore-regex = '.*(Stati Uniti|Tense=Pres).*'
262262
timeout = 150
263263
timeout_method = "signal"
264264
minversion = "6.0"
265-
testpaths = ["src/backend/tests", "src/lfx/tests"]
265+
testpaths = ["src/backend/tests", "src/core/tests"]
266266
console_output_style = "progress"
267267
filterwarnings = ["ignore::DeprecationWarning", "ignore::ResourceWarning"]
268268
log_cli = true
File renamed without changes.

0 commit comments

Comments
 (0)