Skip to content

Commit 143f975

Browse files
committed
Bump version to 1.2.0
Replace deprecated functions in build.fsx
1 parent f3f2c67 commit 143f975

File tree

5 files changed

+61
-39
lines changed

5 files changed

+61
-39
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,3 +186,4 @@ docsrc/tools/FSharp.Formatting.svclog
186186
docs
187187
temp/gh-pages
188188
/src/FSharp.Plotly/TestScript.fsx
189+
/pkg

RELEASE_NOTES.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
### 1.2.0 - Feb 17 2020
2+
Additional functionality:
3+
* *
4+
* [Various marker style options](https://github.com/muehlhaus/FSharp.Plotly/commit/11a80f94d9fb9f94a4504073955e009746e9fd0d)
5+
* [Config support](https://github.com/muehlhaus/FSharp.Plotly/commit/70998edd586553b40a8b95de56d86639902a5420)
6+
* [Chart.Stack works now with both 2D and 3D Charts](https://github.com/muehlhaus/FSharp.Plotly/commit/db7ce675a73f37598590f24ac99c246fce78759e)
7+
8+
Additional plots:
9+
* [Parallel Categories](https://github.com/muehlhaus/FSharp.Plotly/commit/adaf9e361d9fe8ac3b51a8832ffbb024cd3d78dc)
10+
* [Stacked Area](https://github.com/muehlhaus/FSharp.Plotly/commit/612666883ac07f21350d3da3d6749387a9cb1f4d)
11+
* [Tables](https://github.com/muehlhaus/FSharp.Plotly/commit/6bfc9e34072c486546ad3fbf118f027e57c6114c)
12+
13+
Additional functionality and plots thanks to external open source contributors:
14+
* You can now [add descriptional text to the chart html](https://github.com/muehlhaus/FSharp.Plotly/commit/bd99364d1fcfe894c772ad2fe9c59b31a37dc547) (thanks @kkkmail)
15+
* [Sankey and Candlestick Charts are now available](https://github.com/muehlhaus/FSharp.Plotly/commit/f1e873d7e2c2cc5a60c2365058880419668d1804) (thanks @fwaris)
16+
17+
118
### 1.1.2 - Aug 16 2018
219
* Support .net framework 4.7
320
* Minor improvments

build.fsx

Lines changed: 35 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,25 @@ module TemporaryDocumentationHelpers =
4646
FsiEval : bool }
4747

4848

49-
let private run toolPath command =
50-
if 0 <> Process.execSimple ((fun info ->
51-
{ info with
52-
FileName = toolPath
53-
Arguments = command }) >> Process.withFramework) System.TimeSpan.MaxValue
49+
let private run toolPath arguments =
50+
Command.RawCommand
51+
(
52+
toolPath,
53+
arguments
54+
)
55+
|> CreateProcess.fromCommand
56+
|> CreateProcess.withFramework
57+
|> CreateProcess.ensureExitCode
58+
|> Proc.run
59+
|> ignore
5460

55-
then failwithf "FSharp.Formatting %s failed." command
5661

5762
let createDocs p =
58-
let toolPath = Tools.findToolInSubPath "fsformatting.exe" (Directory.GetCurrentDirectory() @@ "lib/Formatting")
63+
let toolPath =
64+
match ProcessUtils.tryFindLocalTool "" "fsformatting.exe" [(Directory.GetCurrentDirectory() @@ "/lib")] with
65+
|Some tool -> tool
66+
| _ -> failwith "FSFormatting executable not found"
67+
//let toolPath = Tools.findToolInSubPath "fsformatting.exe" (Directory.GetCurrentDirectory() @@ "lib/Formatting")
5968

6069
let defaultLiterateArguments =
6170
{ ToolPath = toolPath
@@ -82,10 +91,7 @@ module TemporaryDocumentationHelpers =
8291
|> Seq.append
8392
(["literate"; "--processdirectory" ] @ layoutroots @ [ "--inputdirectory"; source; "--templatefile"; template;
8493
"--outputDirectory"; outputDir] @ fsiEval @ [ "--replacements" ])
85-
|> Seq.map (fun s ->
86-
if s.StartsWith "\"" then s
87-
else sprintf "\"%s\"" s)
88-
|> String.separated " "
94+
|> Arguments.OfArgs
8995
run arguments.ToolPath command
9096
printfn "Successfully generated docs for %s" source
9197

@@ -139,6 +145,8 @@ let gitRaw = Environment.environVarOrDefault "gitRaw" "https://raw.githubusercon
139145

140146
let website = "/FSharp.Plotly"
141147

148+
let pkgDir = "pkg"
149+
142150
// --------------------------------------------------------------------------------------
143151
// END TODO: The rest of the file includes standard build steps
144152
// --------------------------------------------------------------------------------------
@@ -243,23 +251,18 @@ Target.create "Build" (fun _ ->
243251
Target.create "RunTests" (fun _ ->
244252
let assemblies = !! testAssemblies
245253

246-
let setParams f =
247-
match Environment.isWindows with
248-
| true ->
249-
fun p ->
250-
{ p with
251-
FileName = f}
252-
| false ->
253-
fun p ->
254-
{ p with
255-
FileName = "mono"
256-
Arguments = f }
257254
assemblies
258-
|> Seq.map (fun f ->
259-
Process.execSimple (setParams f) System.TimeSpan.MaxValue
255+
|> Seq.iter (fun f ->
256+
Command.RawCommand (
257+
f,
258+
Arguments.OfArgs []
259+
)
260+
|> CreateProcess.fromCommand
261+
|> CreateProcess.withFramework
262+
|> CreateProcess.ensureExitCode
263+
|> Proc.run
264+
|> ignore
260265
)
261-
|>Seq.reduce (+)
262-
|> (fun i -> if i > 0 then failwith "")
263266
)
264267

265268
// --------------------------------------------------------------------------------------
@@ -268,10 +271,11 @@ Target.create "RunTests" (fun _ ->
268271
Target.create "NuGet" (fun _ ->
269272
Paket.pack(fun p ->
270273
{ p with
271-
OutputPath = "bin"
274+
ToolType = ToolType.CreateLocalTool()
275+
OutputPath = pkgDir
272276
Version = release.NugetVersion
273-
ReleaseNotes = String.toLines release.Notes})
274-
)
277+
ReleaseNotes = release.Notes |> String.toLines })
278+
)
275279

276280
Target.create "PublishNuget" (fun _ ->
277281
Paket.push(fun p ->
@@ -366,8 +370,8 @@ Target.create "Docs" (fun _ ->
366370
Shell.rename "docsrc/content/release-notes.md" "docsrc/content/RELEASE_NOTES.md"
367371

368372
File.delete "docsrc/content/license.md"
369-
Shell.copyFile "docsrc/content/" "LICENSE.txt"
370-
Shell.rename "docsrc/content/license.md" "docsrc/content/LICENSE.txt"
373+
Shell.copyFile "docsrc/content/" "LICENSE"
374+
Shell.rename "docsrc/content/license.md" "docsrc/content/LICENSE"
371375

372376

373377
DirectoryInfo.getSubDirectories (DirectoryInfo.ofPath templates)

src/FSharp.Plotly.WPF/AssemblyInfo.fs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ open System.Reflection
55
[<assembly: AssemblyTitleAttribute("FSharp.Plotly.WPF")>]
66
[<assembly: AssemblyProductAttribute("FSharp.Plotly")>]
77
[<assembly: AssemblyDescriptionAttribute("A F# interactive charting library using plotly.js")>]
8-
[<assembly: AssemblyVersionAttribute("1.1.2")>]
9-
[<assembly: AssemblyFileVersionAttribute("1.1.2")>]
8+
[<assembly: AssemblyVersionAttribute("1.2.0")>]
9+
[<assembly: AssemblyFileVersionAttribute("1.2.0")>]
1010
[<assembly: AssemblyConfigurationAttribute("Release")>]
1111
do ()
1212

1313
module internal AssemblyVersionInformation =
1414
let [<Literal>] AssemblyTitle = "FSharp.Plotly.WPF"
1515
let [<Literal>] AssemblyProduct = "FSharp.Plotly"
1616
let [<Literal>] AssemblyDescription = "A F# interactive charting library using plotly.js"
17-
let [<Literal>] AssemblyVersion = "1.1.2"
18-
let [<Literal>] AssemblyFileVersion = "1.1.2"
17+
let [<Literal>] AssemblyVersion = "1.2.0"
18+
let [<Literal>] AssemblyFileVersion = "1.2.0"
1919
let [<Literal>] AssemblyConfiguration = "Release"

src/FSharp.Plotly/AssemblyInfo.fs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ open System.Reflection
55
[<assembly: AssemblyTitleAttribute("FSharp.Plotly")>]
66
[<assembly: AssemblyProductAttribute("FSharp.Plotly")>]
77
[<assembly: AssemblyDescriptionAttribute("A F# interactive charting library using plotly.js")>]
8-
[<assembly: AssemblyVersionAttribute("1.1.2")>]
9-
[<assembly: AssemblyFileVersionAttribute("1.1.2")>]
8+
[<assembly: AssemblyVersionAttribute("1.2.0")>]
9+
[<assembly: AssemblyFileVersionAttribute("1.2.0")>]
1010
[<assembly: AssemblyConfigurationAttribute("Release")>]
1111
do ()
1212

1313
module internal AssemblyVersionInformation =
1414
let [<Literal>] AssemblyTitle = "FSharp.Plotly"
1515
let [<Literal>] AssemblyProduct = "FSharp.Plotly"
1616
let [<Literal>] AssemblyDescription = "A F# interactive charting library using plotly.js"
17-
let [<Literal>] AssemblyVersion = "1.1.2"
18-
let [<Literal>] AssemblyFileVersion = "1.1.2"
17+
let [<Literal>] AssemblyVersion = "1.2.0"
18+
let [<Literal>] AssemblyFileVersion = "1.2.0"
1919
let [<Literal>] AssemblyConfiguration = "Release"

0 commit comments

Comments
 (0)