Skip to content

Commit 86bb941

Browse files
authored
Merge pull request #137 from architecture-building-systems/develop
Puhblish New Version For IronPython3.4
2 parents eecc688 + ad777c2 commit 86bb941

22 files changed

+120
-62
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# Changelog
2+
- 2022-12-16 **2.0.0**
3+
- Add support IronPython 3.4 [#136](https://github.com/architecture-building-systems/revitpythonshell/pull/136)
4+
- Please follow [Upgrade from IronPython2 to IronPython 3](https://github.com/IronLanguages/ironpython3/blob/master/Documentation/upgrading-from-ipy2.md) to upgrade your code.
25
- 2022-09-22 **1.0.2**
36
- Fix set CollectorExt.m_app error. [#128](https://github.com/architecture-building-systems/revitpythonshell/pull/128)
47
- 2022-06-27 **1.0.1**

Installer/Installer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
const string projectName = "RevitPythonShell";
1313
const string outputName = "RevitPythonShell";
1414
const string outputDir = "output";
15-
const string version = "1.0.2";
15+
const string version = "2.0.0";
1616

1717
var fileName = new StringBuilder().Append(outputName).Append("-").Append(version);
1818
var project = new Project

Installer/Installer.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
</PropertyGroup>
1313
<ItemGroup>
1414
<PackageReference Include="WixSharp.bin">
15-
<Version>1.19.*</Version>
15+
<Version>1.20.2</Version>
1616
</PackageReference>
1717
<PackageReference Include="WixSharp.wix.bin">
18-
<Version>3.11.*</Version>
18+
<Version>3.11.2</Version>
1919
</PackageReference>
2020
</ItemGroup>
2121
</Project>

PythonConsoleControl/PythonConsoleCompletionDataProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ protected void PopulateFromPythonType(List<PythonCompletionData> items, string n
157157
//string dirCommand = "dir(" + objectName + ")";
158158
string dirCommand = "sorted([m for m in dir(" + name + ") if not m.startswith('__')], key = str.lower) + sorted([m for m in dir(" + name + ") if m.startswith('__')])";
159159
object value = commandLine.ScriptScope.Engine.CreateScriptSourceFromString(dirCommand, SourceCodeKind.Expression).Execute(commandLine.ScriptScope);
160-
foreach (object member in (value as IronPython.Runtime.List))
160+
foreach (object member in (value as IronPython.Runtime.PythonList))
161161
{
162162
bool isInstance = false;
163163

PythonConsoleControl/PythonConsoleControl.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
</PropertyGroup>
1515
<ItemGroup>
1616
<PackageReference Include="AvalonEdit" Version="6.0.1" />
17+
<PackageReference Include="IronPython" Version="3.4.0" />
1718
</ItemGroup>
1819
<ItemGroup>
1920
<Reference Include="IronPython">

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ database exploration tool to become a Revit API Ninja :)
3131
- `lookup()` function for snooping `Element`, `ElementSet` and `ElementId` objects
3232
in [RevitLookup](https://github.com/jeremytammik/RevitLookup)
3333

34+
## IronPython 3
35+
36+
IronPython 3.4 uses Python 3.4 syntax and standard libraries and so your Python code will need to be updated accordingly. There are numerous tools and guides available on the web to help porting from Python 2 to 3.
37+
38+
IronPython 3 targets Python 3, including the re-organized standard library, Unicode strings, and all of the other new features.with user upgrade from **IronPython 2** to **IronPython 3**, please follow [Upgrade from IronPython 2 to IronPython 3](https://github.com/IronLanguages/ironpython3/blob/master/Documentation/upgrading-from-ipy2.md).
39+
40+
Various differences between IronPython and CPython can follow at [Differences IronPython and CPython](https://github.com/IronLanguages/ironpython3/blob/master/Documentation/differences-from-c-python.md).
41+
3442
## Installation
3543

3644
Please follow last release at section [Release](https://github.com/architecture-building-systems/revitpythonshell/releases/latest) support version Support From Revit 2018-2023.
@@ -69,7 +77,7 @@ Learn some python:
6977

7078
Learn about the Revit API:
7179

72-
* [Autodesk Developer Network](T)
80+
* [Autodesk Developer Network](https://www.autodesk.com/developer-network/open)
7381
* [Jeremy Tammiks blog "The Building Coder"](http://thebuildingcoder.typepad.com/)
7482

7583
Tutorials recommended by the community:
-734 KB
Binary file not shown.
-622 KB
Binary file not shown.

RequiredLibraries/IronPython.Wpf.dll

-7 KB
Binary file not shown.

RequiredLibraries/IronPython.dll

-1.7 MB
Binary file not shown.

0 commit comments

Comments
 (0)