Skip to content

Commit 86880fe

Browse files
author
Fraser Greenroyd
authored
7.1 Deployment (#135)
2 parents 2ee1cfc + 39eb52a commit 86880fe

20 files changed

+38
-23
lines changed

Python_Engine/Compute/BasePythonEnvironment.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is part of the Buildings and Habitats object Model (BHoM)
3-
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
3+
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
44
*
55
* Each contributor holds copyright over their respective contributions.
66
* The project versioning (Git) records all such contribution source information.
@@ -37,7 +37,6 @@ public static partial class Compute
3737
[Input("reload", "Reload the base Python environment rather than recreating it, if it already exists.")]
3838
[Input("run", "Start the installation/retrieval of the BHoM Base Python Environment.")]
3939
[Output("env", "The base Python Environment for all BHoM workflows.")]
40-
[PreviousVersion("7.0", "BH.Engine.Python.Compute.BasePythonEnvironment(System.Boolean)")]
4140
public static PythonEnvironment BasePythonEnvironment(
4241
bool reload = true,
4342
bool run = false
@@ -111,3 +110,4 @@ public static PythonEnvironment BasePythonEnvironment(
111110
}
112111
}
113112
}
113+

Python_Engine/Compute/Download.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is part of the Buildings and Habitats object Model (BHoM)
3-
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
3+
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
44
*
55
* Each contributor holds copyright over their respective contributions.
66
* The project versioning (Git) records all such contribution source information.
@@ -116,3 +116,4 @@ public static string DownloadGetPip(string targetDirectory)
116116
}
117117
}
118118
}
119+

Python_Engine/Compute/InstallPackage.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is part of the Buildings and Habitats object Model (BHoM)
3-
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
3+
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
44
*
55
* Each contributor holds copyright over their respective contributions.
66
* The project versioning (Git) records all such contribution source information.
@@ -173,3 +173,4 @@ string packageDirectory
173173
}
174174
}
175175
}
176+

Python_Engine/Compute/Remove.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is part of the Buildings and Habitats object Model (BHoM)
3-
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
3+
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
44
*
55
* Each contributor holds copyright over their respective contributions.
66
* The project versioning (Git) records all such contribution source information.
@@ -93,3 +93,4 @@ public static void RemoveEverything()
9393
}
9494
}
9595
}
96+

Python_Engine/Compute/RequirementsTxt.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is part of the Buildings and Habitats object Model (BHoM)
3-
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
3+
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
44
*
55
* Each contributor holds copyright over their respective contributions.
66
* The project versioning (Git) records all such contribution source information.
@@ -83,3 +83,4 @@ public static string RequirementsTxt(
8383
}
8484
}
8585
}
86+

Python_Engine/Compute/Run.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is part of the Buildings and Habitats object Model (BHoM)
3-
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
3+
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
44
*
55
* Each contributor holds copyright over their respective contributions.
66
* The project versioning (Git) records all such contribution source information.
@@ -98,3 +98,4 @@ public static string RunPythonString(this oM.Python.PythonEnvironment env, strin
9898
}
9999
}
100100
}
101+

Python_Engine/Compute/UnzipFile.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is part of the Buildings and Habitats object Model (BHoM)
3-
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
3+
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
44
*
55
* Each contributor holds copyright over their respective contributions.
66
* The project versioning (Git) records all such contribution source information.
@@ -80,3 +80,4 @@ public static void UnzipFile(
8080
}
8181
}
8282
}
83+

Python_Engine/Compute/VirtualEnvironment.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is part of the Buildings and Habitats object Model (BHoM)
3-
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
3+
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
44
*
55
* Each contributor holds copyright over their respective contributions.
66
* The project versioning (Git) records all such contribution source information.
@@ -132,3 +132,4 @@ public static PythonEnvironment VirtualEnvironment(this PythonVersion version, s
132132
}
133133
}
134134
}
135+

Python_Engine/Convert/ToPython.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is part of the Buildings and Habitats object Model (BHoM)
3-
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
3+
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
44
*
55
* Each contributor holds copyright over their respective contributions.
66
* The project versioning (Git) records all such contribution source information.
@@ -38,4 +38,4 @@ public static bool ToPython<T>(this T[,] input)
3838
return false;
3939
}
4040
}
41-
}
41+
}

Python_Engine/Modify/AddQuotesIfRequired.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is part of the Buildings and Habitats object Model (BHoM)
3-
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
3+
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
44
*
55
* Each contributor holds copyright over their respective contributions.
66
* The project versioning (Git) records all such contribution source information.
@@ -46,3 +46,4 @@ public static string AddQuotesIfRequired(this string path)
4646
}
4747

4848

49+

Python_Engine/Python_Engine.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<Authors>BHoM</Authors>
99
<Copyright>Copyright © https://github.com/BHoM</Copyright>
1010
<RootNamespace>BH.Engine.Python</RootNamespace>
11-
<FileVersion>7.0.0.0</FileVersion>
11+
<FileVersion>7.1.0.0</FileVersion>
1212
<OutputPath>..\Build\</OutputPath>
1313
</PropertyGroup>
1414

Python_Engine/Query/Directory.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is part of the Buildings and Habitats object Model (BHoM)
3-
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
3+
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
44
*
55
* Each contributor holds copyright over their respective contributions.
66
* The project versioning (Git) records all such contribution source information.
@@ -77,3 +77,4 @@ public static string DirectoryBaseEnvironment()
7777
}
7878

7979

80+

Python_Engine/Query/EmbeddableURL.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is part of the Buildings and Habitats object Model (BHoM)
3-
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
3+
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
44
*
55
* Each contributor holds copyright over their respective contributions.
66
* The project versioning (Git) records all such contribution source information.
@@ -89,3 +89,4 @@ public static string EmbeddableURL(this PythonVersion version)
8989
}
9090
}
9191

92+

Python_Engine/Query/IsValidEnvironmentName.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is part of the Buildings and Habitats object Model (BHoM)
3-
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
3+
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
44
*
55
* Each contributor holds copyright over their respective contributions.
66
* The project versioning (Git) records all such contribution source information.
@@ -51,3 +51,4 @@ public static bool IsValidEnvironmentName(string name)
5151
}
5252
}
5353

54+

Python_Engine/Query/ToolkitName.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is part of the Buildings and Habitats object Model (BHoM)
3-
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
3+
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
44
*
55
* Each contributor holds copyright over their respective contributions.
66
* The project versioning (Git) records all such contribution source information.
@@ -38,3 +38,4 @@ public static string ToolkitName()
3838
}
3939

4040

41+

Python_Engine/Query/Version.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is part of the Buildings and Habitats object Model (BHoM)
3-
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
3+
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
44
*
55
* Each contributor holds copyright over their respective contributions.
66
* The project versioning (Git) records all such contribution source information.
@@ -74,3 +74,4 @@ public static PythonVersion Version(string pythonExecutable)
7474
}
7575
}
7676
}
77+

Python_Engine/Query/VirtualEnvironment.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is part of the Buildings and Habitats object Model (BHoM)
3-
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
3+
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
44
*
55
* Each contributor holds copyright over their respective contributions.
66
* The project versioning (Git) records all such contribution source information.
@@ -38,7 +38,6 @@ public static partial class Query
3838
[Input("envName", "The name given to the BHoM Python Environment.")]
3939
[Input("pythonVersion", "The version to check against.")]
4040
[Output("exists", "True if exists, False if not.")]
41-
[PreviousVersion("7.0", "BH.Engine.Python.Query.VirtualEnvironmentExists(System.String)")]
4241
public static bool VirtualEnvironmentExists(string envName, PythonVersion pythonVersion = PythonVersion.Undefined)
4342
{
4443
string executable = VirtualEnvironmentExecutable(envName);
@@ -97,3 +96,4 @@ public static PythonEnvironment VirtualEnvironment(string envName)
9796
}
9897
}
9998

99+

Python_oM/Enums/PythonVersion.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is part of the Buildings and Habitats object Model (BHoM)
3-
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
3+
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
44
*
55
* Each contributor holds copyright over their respective contributions.
66
* The project versioning (Git) records all such contribution source information.
@@ -128,3 +128,4 @@ public enum PythonVersion
128128
v3_11_4,
129129
}
130130
}
131+

Python_oM/PythonEnvironment.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is part of the Buildings and Habitats object Model (BHoM)
3-
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
3+
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
44
*
55
* Each contributor holds copyright over their respective contributions.
66
* The project versioning (Git) records all such contribution source information.
@@ -39,3 +39,4 @@ public class PythonEnvironment : IObject
3939
}
4040

4141

42+

Python_oM/Python_oM.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<Authors>BHoM</Authors>
99
<Copyright>Copyright © https://github.com/BHoM</Copyright>
1010
<RootNamespace>BH.oM.Python</RootNamespace>
11-
<FileVersion>7.0.0.0</FileVersion>
11+
<FileVersion>7.1.0.0</FileVersion>
1212
<OutputPath>..\Build\</OutputPath>
1313
</PropertyGroup>
1414

0 commit comments

Comments
 (0)