Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Merge release branch back into master#1866

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
filmor merged 42 commits intomasterfromrelease
Sep 29, 2022
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
Show all changes
42 commits
Select commitHold shift + click to select a range
28a78ed
Bump version to 3.0.0-rc1
filmorJun 27, 2022
e84731f
implemented dynamic equality and inequality for PyObject instances
lostmsuJun 30, 2022
2edd800
Fix broken prefix and debug leftover
filmorJun 28, 2022
4b6ac12
Bump release candidate version
filmorJul 5, 2022
2016371
Make MANIFEST.in more explicit
filmorJul 6, 2022
d484797
Use informational version as clr's __version__ attribute
filmorJul 8, 2022
25f21f9
Drop obsolete packages.config
filmorJul 11, 2022
332f8e7
Fix (U)IntPtr construction (#1861)
filmorJul 11, 2022
60a719c
Implement non-simple String constructors explicitly (#1862)
filmorJul 11, 2022
b79ae2f
Fix missing docstring for types with custom constructors (#1865)
filmorJul 11, 2022
863397a
Bump release candidate version
filmorJul 11, 2022
59b1c51
Finalizer.Instance.Collect() and Runtime.TryCollectingGarbage(...) ar…
lostmsuJul 14, 2022
469ec67
fixed leak in NewReference.Move
lostmsuJul 14, 2022
9bb8fe6
Merge pull request #1873 from losttech/bugs/ctor-leak
filmorJul 14, 2022
93631af
Bump release candidate version
filmorJul 16, 2022
a5e9b55
Generate XML documentation on build and add to it NuGet package (#1878)
lostmsuJul 16, 2022
85d0ca6
mention the need for PythonEngine.Initialize and BeginAllowThreads in…
lostmsuAug 4, 2022
5f63c67
BREAKING: disabled implicit conversion from Python objects implementi…
lostmsuAug 8, 2022
0909021
Explicit float and int conversion for builtin types (#1904)
filmorAug 12, 2022
bd48dc1
Fill nb_index slot for integer types (#1907)
filmorAug 13, 2022
4241493
fixed use of the process handle after Process instance goes out of sc…
lostmsuSep 16, 2022
bdf671e
fixed new line character at the end of informational version (#1941)
lostmsuSep 16, 2022
3f12469
Bump clr-loader dependency to 0.2.3 and adjust interface
filmorSep 16, 2022
db52dde
Improve error message if the runtime fails to load
filmorSep 16, 2022
fd8fd3b
Fix manifest so we can build with python -m build
filmorSep 17, 2022
91d3e55
reenabled test for https://github.com/pythonnet/pythonnet/issues/1256…
lostmsuSep 17, 2022
43769f5
Merge pull request #1942 from filmor/configless-coreclr
filmorSep 17, 2022
f1ef11d
Bump release candidate version
filmorSep 18, 2022
a02799d
Fix implicit float conversion for classes that derive from float
filmorSep 19, 2022
2194d6c
Drop PyLong_Check (which checked for exact type) in favour of PyInt_C…
filmorSep 19, 2022
52cf03c
Merge pull request #1908 from filmor/implicit-float-int
filmorSep 20, 2022
15a8b26
Bump release candidate version
filmorSep 20, 2022
08fd638
Add initial documentation setup
filmorMay 26, 2022
64ea044
Ensure build props always read the correct version file
filmorSep 19, 2022
13f2a9c
Convert back to RST, add section on runtime loading
filmorSep 26, 2022
42b122d
Publish documentation from the release branch for now
filmorSep 26, 2022
cc2fdac
Adjust installation documentation
filmorSep 26, 2022
80adda9
Merge pull request #1863 from filmor/docs
filmorSep 26, 2022
3c4dd16
Update README
filmorSep 26, 2022
33b107c
Move clr module to separate file
filmorSep 26, 2022
6ec635d
Drop unused param doc
filmorSep 26, 2022
aae9d56
Bump version to 3.0.0
filmorSep 29, 2022
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
40 changes: 40 additions & 0 deletions.github/workflows/docs.yml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
name: Documentation

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Doxygen Action
uses: mattnotmitt/doxygen-action@1.9.4
with:
working-directory: "doc/"

- name: Build Sphinx documentation
run: |
pip install -r doc/requirements.txt
sphinx-build doc/source/ ./doc/build/html/

- name: Upload artifact
# Automatically uploads an artifact from the './_site' directory by default
uses: actions/upload-pages-artifact@v1
with:
path: doc/build/html/

deploy:
if: github.ref == 'refs/heads/release'
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
5 changes: 5 additions & 0 deletionsCHANGELOG.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -45,6 +45,8 @@ details about the cause of the failure
able to access members that are part of the implementation class, but not the
interface. Use the new `__implementation__` or `__raw_implementation__` properties to
if you need to "downcast" to the implementation class.
- BREAKING: `==` and `!=` operators on `PyObject` instances now use Python comparison
(previously was equivalent to `object.ReferenceEquals(,)`)
- BREAKING: Parameters marked with `ParameterAttributes.Out` are no longer returned in addition
to the regular method return value (unless they are passed with `ref` or `out` keyword).
- BREAKING: Drop support for the long-deprecated CLR.* prefix.
Expand All@@ -65,6 +67,9 @@ or the DLL must be loaded in advance. This must be done before calling any other
- BREAKING: disabled implicit conversion from C# enums to Python `int` and back.
One must now either use enum members (e.g. `MyEnum.Option`), or use enum constructor
(e.g. `MyEnum(42)` or `MyEnum(42, True)` when `MyEnum` does not have a member with value 42).
- BREAKING: disabled implicit conversion from Python objects implementing sequence protocol to
.NET arrays when the target .NET type is `System.Object`. The conversion is still attempted when the
target type is a `System.Array`.
- Sign Runtime DLL with a strong name
- Implement loading through `clr_loader` instead of the included `ClrModule`, enables
support for .NET Core
Expand Down
2 changes: 1 addition & 1 deletionDirectory.Build.props
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -6,7 +6,7 @@
<AssemblyProduct>Python.NET</AssemblyProduct>
<LangVersion>10.0</LangVersion>
<IsPackable>false</IsPackable>
<FullVersion>$([System.IO.File]::ReadAllText("version.txt"))</FullVersion>
<FullVersion>$([System.IO.File]::ReadAllText("$(MSBuildThisFileDirectory)version.txt").Trim())</FullVersion>
<VersionPrefix>$(FullVersion.Split('-', 2)[0])</VersionPrefix>
<VersionSuffix Condition="$(FullVersion.Contains('-'))">$(FullVersion.Split('-', 2)[1])</VersionSuffix>
</PropertyGroup>
Expand Down
6 changes: 4 additions & 2 deletionsMANIFEST.in
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
recursive-include src/ *
graft src/runtime
prune src/runtime/obj
prune src/runtime/bin
include src/pythonnet.snk
include Directory.Build.*
include pythonnet.sln
include version.txt
global-exclude **/obj/* **/bin/*
26 changes: 21 additions & 5 deletionsREADME.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -17,11 +17,6 @@ provides a powerful application scripting tool for .NET developers. It
allows Python code to interact with the CLR, and may also be used to
embed Python into a .NET application.

.. note::
The master branch of this repository tracks the ongoing development of version 3.0.
Backports of patches to 2.5 are tracked in the
`backports-2.5 branch <https://github.com/pythonnet/pythonnet/tree/backports-2.5>`_.

Calling .NET code from Python
-----------------------------

Expand All@@ -42,6 +37,25 @@ module:
clr.AddReference("System.Windows.Forms")
from System.Windows.Forms import Form

By default, Mono will be used on Linux and macOS, .NET Framework on Windows. For
details on the loading of different runtimes, please refer to the documentation.

.NET Core
~~~~~~~~~

If .NET Core is installed in a default location or the ``dotnet`` CLI tool is on
the ``PATH``, loading it instead of the default (Mono/.NET Framework) runtime
just requires setting either the environment variable
``PYTHONNET_RUNTIME=coreclr`` or calling ``pythonnet.load`` explicitly:

.. code-block:: python

from pythonnet import load
load("coreclr")

import clr


Embedding Python in .NET
------------------------

Expand All@@ -50,6 +64,8 @@ Embedding Python in .NET
(internal, derived from ``MissingMethodException``) upon calling ``Initialize``.
Typical values are ``python38.dll`` (Windows), ``libpython3.8.dylib`` (Mac),
``libpython3.8.so`` (most other Unix-like operating systems).
- Then call ``PythonEngine.Initialize()``. If you plan to use Python objects from
multiple threads, also call ``PythonEngine.BeginAllowThreads()``.
- All calls to python should be inside a
``using (Py.GIL()) {/* Your code here */}`` block.
- Import python modules using ``dynamic mod = Py.Import("mod")``, then
Expand Down
2 changes: 2 additions & 0 deletionsdoc/.gitignore
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
doxygen_xml/
build/
Loading

[8]ページ先頭

©2009-2025 Movatter.jp