Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"fable": {
"version": "5.0.0-alpha.21",
"version": "5.0.0-rc.2",
"commands": [
"fable"
],
Expand Down
12 changes: 6 additions & 6 deletions chapters/FableV5.fs
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ a minimum version constraint:
dependencies = ["fable-library>=5.0.0"]
```

For alpha/beta releases, pin the exact version to avoid surprises:
For pre-release versions, pin the exact version to avoid surprises:

```toml
dependencies = ["fable-library==5.0.0a21"]
dependencies = ["fable-library==5.0.0rc2"]
```

This makes dependency management much simpler and follows Python conventions.
Expand All @@ -92,17 +92,17 @@ That's **319 new tests** ensuring reliability across the board.

## Getting Started with Fable v5

To use Fable v5, install the alpha CLI:
To use Fable v5, install the CLI:

```bash
# Install Fable 5 CLI
dotnet tool install fable --version 5.0.0-alpha.21
dotnet tool install fable --version 5.0.0-rc.2

# Add Fable.Core to your project
dotnet add package Fable.Core --version 5.0.0-beta.4
dotnet add package Fable.Core --version 5.0.0-rc.1

# Install the Python runtime
uv add fable-library==5.0.0a21
uv add fable-library==5.0.0rc2
```

Then compile your F# to Python:
Expand Down
14 changes: 7 additions & 7 deletions chapters/GettingStarted.fs
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ cd my-fable-python
# Create F# console app
dotnet new console -lang F#

# Set up local tools and install Fable 5 (alpha)
# Set up local tools and install Fable 5
dotnet new tool-manifest
dotnet tool install fable --version 5.0.0-alpha.21
dotnet tool install fable --version 5.0.0-rc.2

# Add Fable.Core package
dotnet add package Fable.Core --version 5.0.0-beta.4
dotnet add package Fable.Core --version 5.0.0-rc.1
```

## Install Python Dependencies
Expand All @@ -53,17 +53,17 @@ Fable-generated Python code requires the `fable-library` runtime:

```bash
# Using uv (recommended)
uv add "fable-library==5.0.0a21"
uv add "fable-library==5.0.0rc2"

# Or with pip
pip install "fable-library==5.0.0a21"
pip install "fable-library==5.0.0rc2"
```

---

**Note:** Version pinning matters. The fable-library version must match your Fable
compiler version. Note that PyPI uses `5.0.0a21` format instead of `5.0.0-alpha.21` for
prerelease alpha releases.
compiler version. Note that PyPI uses `5.0.0rc2` format instead of `5.0.0-rc.2` for
prerelease release candidate versions.

---

Expand Down
4 changes: 2 additions & 2 deletions chapters/Testing.fs
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,8 @@ project setup:
<ItemGroup>
<PackageReference Include="Expecto" Version="10.2.1" />
<PackageReference Include="Fable.Pyxpecto" Version="2.0.0" />
<PackageReference Include="Fable.Core" Version="5.0.0-beta.4" />
<PackageReference Include="Fable.Python" Version="5.0.0-alpha.21" />
<PackageReference Include="Fable.Core" Version="5.0.0-rc.1" />
<PackageReference Include="Fable.Python" Version="5.0.0-rc.2" />
</ItemGroup>

<ItemGroup>
Expand Down
1 change: 0 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ authors = [
]
license = {text = "ISC"}
dependencies = [
"fable-library==5.0.0a21",
"fable-library==5.0.0rc2",
"pydantic>=2.12.5",
]

Expand Down
195 changes: 113 additions & 82 deletions uv.lock

Large diffs are not rendered by default.