Skip to content

Commit f67416c

Browse files
authored
4.0.0-snake-island-alpha-014 (#60)
* 4.0.0-snake-island-alpha-014 * fix: use poetry * fix: setup Python
1 parent 81e7a45 commit f67416c

File tree

11 files changed

+230
-10
lines changed

11 files changed

+230
-10
lines changed

.config/dotnet-tools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
]
1616
},
1717
"fable": {
18-
"version": "4.0.0-snake-island-alpha-006",
18+
"version": "4.0.0-snake-island-alpha-014",
1919
"commands": [
2020
"fable"
2121
]

.github/workflows/build-and-test.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,40 @@ jobs:
1212

1313
steps:
1414
- uses: actions/checkout@v2
15+
- uses: actions/setup-python@v4
16+
with:
17+
python-version: '3.9'
18+
1519
- name: Setup .NET Core
1620
uses: actions/setup-dotnet@v1
1721
with:
1822
dotnet-version: 6.0.100
23+
1924
- name: Setup dotnet tools
2025
run: dotnet tool restore
26+
2127
- name: Install src dependencies
2228
run: dotnet restore src
29+
2330
- name: Install test dependencies
2431
run: dotnet restore test
32+
2533
- name: Install pytest runner
2634
run: pip install pytest
35+
2736
- name: Install build dependencies
2837
run: dotnet restore Build.fsproj
38+
2939
#- name: Check formatting
3040
# run: dotnet fantomas . -r --check
41+
3142
- name: Build
3243
run: dotnet run Build --configuration Release --no-restore
44+
45+
- name: Install dependencies
46+
run: |
47+
pip install poetry
48+
poetry install
49+
3350
- name: Test
3451
run: dotnet run Test

Build.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Target.create "Test" (fun _ ->
3434
"python", dotnet $"fable --lang Python --outDir {buildPath}/tests" testsPath
3535
]
3636
|> runParallel
37-
run pytest $"{buildPath}/tests" ""
37+
run poetry $"run pytest {buildPath}/tests" ""
3838
)
3939

4040
Target.create "Pack" (fun _ ->

Helpers.fs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ let dotnet = createProcess "dotnet"
7575

7676

7777
let pytest = createProcess "pytest"
78+
let poetry = createProcess "poetry"
7879

7980
let npm =
8081
let npmPath =

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ how to deal with Python version handling.
3030
Prerequisite for compiling F# to Python using Fable:
3131

3232
```sh
33-
> dotnet tool install --global fable --version 4.0.0-snake-island-alpha-006
34-
> dotnet add package Fable.Core --version 4.0.0-snake-island-alpha-006
33+
> dotnet tool install --global fable --version 4.0.0-snake-island-alpha-014
34+
> dotnet add package Fable.Core --version 4.0.0-snake-island-alpha-007
3535
```
3636

3737
To use the `Fable.Python` library in your Fable project:

examples/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ instead.
1313
- Timeflies, use Fable Python with Tkinter and AsyncRx
1414

1515
NOTE: If you make demos or examples with Fable Python then please
16-
consider providing a PR so we can add it here.
16+
consider providing a PR so we can add it here.

examples/timeflies/TimeFlies.fsproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</ItemGroup>
1111
<ItemGroup>
1212
<PackageReference Include="Fable.Python" Version="0.17.0" />
13-
<PackageReference Include="Fable.Core" Version="4.0.0-snake-island-alpha-006" />
13+
<PackageReference Include="Fable.Core" Version="4.0.0-snake-island-alpha-007" />
1414
<PackageReference Include="FSharp.Control.AsyncRx" Version="1.6.1" />
1515
</ItemGroup>
1616
</Project>

paket.dependencies

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ storage: none
55
framework: net6.0, netstandard2.0, netstandard2.1
66

77
nuget FSharp.Core ~> 4.7
8-
nuget Fable.Core >= 4.0.0-snake-island-alpha-006
8+
nuget Fable.Core >= 4.0.0-snake-island-alpha-007
99

1010
group Test
1111
source https://api.nuget.org/v3/index.json
1212
storage: none
1313
framework: net6.0
1414

1515
nuget FSharp.Core
16-
nuget Fable.Core >= 4.0.0-snake-island-alpha-006
16+
nuget Fable.Core >= 4.0.0-snake-island-alpha-007
1717
nuget Microsoft.NET.Test.Sdk ~> 16
1818
nuget XUnit ~> 2
1919
nuget xunit.runner.visualstudio ~> 2

paket.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ STORAGE: NONE
22
RESTRICTION: || (== net6.0) (== netstandard2.0) (== netstandard2.1)
33
NUGET
44
remote: https://api.nuget.org/v3/index.json
5-
Fable.Core (4.0.0-snake-island-alpha-006)
5+
Fable.Core (4.0.0-snake-island-alpha-007)
66
FSharp.Core (4.7.2)
77

88
GROUP Build
@@ -63,7 +63,7 @@ STORAGE: NONE
6363
RESTRICTION: == net6.0
6464
NUGET
6565
remote: https://api.nuget.org/v3/index.json
66-
Fable.Core (4.0.0-snake-island-alpha-006)
66+
Fable.Core (4.0.0-snake-island-alpha-007)
6767
FSharp.Core (6.0.5)
6868
Microsoft.CodeCoverage (17.2)
6969
Microsoft.NET.Test.Sdk (16.11)

poetry.lock

Lines changed: 163 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)