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

Commit7b4d662

Browse files
committed
monthly NuGet release previews
1 parentd86bf3c commit7b4d662

File tree

6 files changed

+96
-14
lines changed

6 files changed

+96
-14
lines changed

‎.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ indent_style = tab
3838
charset =utf-8
3939
insert_final_newline =true
4040

41+
[Python.Runtime.csproj]
42+
charset =latin1
43+
4144
# bumpversion reformats itself after every bump
4245
[.bumpversion.cfg]
4346
trim_trailing_whitespace =false

‎.github/workflows/nuget-preview.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name:GitHub Actions
2+
3+
on:[ pull_request ]# testing only
4+
#on:
5+
# schedule:
6+
# - cron: "5 4 3 */1 *" # once a month, at 4:05 on 3rd
7+
8+
jobs:
9+
release:
10+
name:Release Preview
11+
runs-on:ubuntu-latest
12+
environment:NuGet
13+
timeout-minutes:10
14+
15+
env:
16+
PYTHONNET_SHUTDOWN_MODE:Normal
17+
18+
steps:
19+
-name:Get Date
20+
run:|
21+
echo "DATE_VER=$(date "+%y-%m-%d")" >> $GITHUB_ENV
22+
23+
-name:Checkout code
24+
uses:actions/checkout@v2
25+
26+
-name:Setup .NET
27+
uses:actions/setup-dotnet@v1
28+
29+
-name:Set up Python 3.8
30+
uses:actions/setup-python@v2
31+
with:
32+
python-version:3.8
33+
architecture:x64
34+
35+
-name:Install dependencies
36+
run:|
37+
pip install --upgrade -r requirements.txt
38+
39+
-name:Build and Install
40+
run:|
41+
python setup.py configure
42+
pip install -v .
43+
44+
-name:Python Tests
45+
run:pytest
46+
env:
47+
PYTHONNET_PYDLL:libpython3.8.so
48+
49+
-name:Embedding tests
50+
run:dotnet test --runtime any-ubuntu src/embed_tests/
51+
env:
52+
PYTHONNET_PYDLL:libpython3.8.so
53+
54+
-name:Python tests run from .NET
55+
run:dotnet test --runtime any-ubuntu src/python_tests_runner/
56+
if:${{ matrix.os == 'windows' }}# Not working for others right now
57+
env:
58+
PYTHONNET_PYDLL:libpython3.8.so
59+
60+
-name:Pack
61+
run:dotnet pack --configuration Release --version-suffix preview${{env.DATE_VER}} --output "Release-Preview"
62+
63+
-name:Publish NuGet
64+
run:dotnet nuget push --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_MONTHLY }} Release-Preview/*.nupkg
65+
66+
# TODO: Run perf tests
67+
# TODO: Run mono tests on Windows?

‎Directory.Build.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<AssemblyCompany>pythonnet</AssemblyCompany>
66
<AssemblyProduct>Python.NET</AssemblyProduct>
77
<LangVersion>7.3</LangVersion>
8+
<IsPackable>false</IsPackable>
89
</PropertyGroup>
910
<ItemGroup>
1011
<PackageReferenceInclude="Microsoft.CSharp"Version="4.7.0" />

‎LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2006-2020 the contributors of the Python.NET project
3+
Copyright (c) 2006-2021 the contributors of the Python.NET project
44

55
Permission is hereby granted, free of charge, to any person obtaining a
66
copy of this software and associated documentation files (the "Software"),

‎pythonnet.sln

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Repo", "Repo", "{441A0123-F
2121
.editorconfig= .editorconfig
2222
.gitignore= .gitignore
2323
CHANGELOG.md=CHANGELOG.md
24+
LICENSE =LICENSE
2425
README.rst=README.rst
2526
EndProjectSection
2627
EndProject
@@ -30,6 +31,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "CI", "CI", "{D301657F-5EAF-
3031
ci\appveyor_build_recipe.ps1=ci\appveyor_build_recipe.ps1
3132
ci\appveyor_run_tests.ps1=ci\appveyor_run_tests.ps1
3233
.github\workflows\main.yml= .github\workflows\main.yml
34+
.github\workflows\nuget-preview.yml= .github\workflows\nuget-preview.yml
3335
EndProjectSection
3436
EndProject
3537
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") ="Solution Items","Solution Items","{57F5D701-F265-4736-A5A2-07249E7A4DA3}"
@@ -51,6 +53,12 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tools", "Tools", "{BC426F42
5153
EndProject
5254
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") ="Python.PythonTestsRunner","src\python_tests_runner\Python.PythonTestsRunner.csproj","{35CBBDEB-FC07-4D04-9D3E-F88FC180110B}"
5355
EndProject
56+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") ="Build","Build","{142A6752-C2C2-4F95-B982-193418001B65}"
57+
ProjectSection(SolutionItems) =preProject
58+
configured.props=configured.props
59+
Directory.Build.props=Directory.Build.props
60+
EndProjectSection
61+
EndProject
5462
Global
5563
GlobalSection(SolutionConfigurationPlatforms) =preSolution
5664
Debug|Any CPU=Debug|Any CPU
@@ -145,18 +153,6 @@ Global
145153
{F2FB6DA3-318E-4F30-9A1F-932C667E38C5}.Release|x64.Build.0=Release|Any CPU
146154
{F2FB6DA3-318E-4F30-9A1F-932C667E38C5}.Release|x86.ActiveCfg=Release|Any CPU
147155
{F2FB6DA3-318E-4F30-9A1F-932C667E38C5}.Release|x86.Build.0=Release|Any CPU
148-
{6CF9EEA0-F865-4536-AABA-739AE3DA971E}.Debug|Any CPU.ActiveCfg=Debug|Any CPU
149-
{6CF9EEA0-F865-4536-AABA-739AE3DA971E}.Debug|Any CPU.Build.0=Debug|Any CPU
150-
{6CF9EEA0-F865-4536-AABA-739AE3DA971E}.Debug|x64.ActiveCfg=Debug|Any CPU
151-
{6CF9EEA0-F865-4536-AABA-739AE3DA971E}.Debug|x64.Build.0=Debug|Any CPU
152-
{6CF9EEA0-F865-4536-AABA-739AE3DA971E}.Debug|x86.ActiveCfg=Debug|Any CPU
153-
{6CF9EEA0-F865-4536-AABA-739AE3DA971E}.Debug|x86.Build.0=Debug|Any CPU
154-
{6CF9EEA0-F865-4536-AABA-739AE3DA971E}.Release|Any CPU.ActiveCfg=Release|Any CPU
155-
{6CF9EEA0-F865-4536-AABA-739AE3DA971E}.Release|Any CPU.Build.0=Release|Any CPU
156-
{6CF9EEA0-F865-4536-AABA-739AE3DA971E}.Release|x64.ActiveCfg=Release|Any CPU
157-
{6CF9EEA0-F865-4536-AABA-739AE3DA971E}.Release|x64.Build.0=Release|Any CPU
158-
{6CF9EEA0-F865-4536-AABA-739AE3DA971E}.Release|x86.ActiveCfg=Release|Any CPU
159-
{6CF9EEA0-F865-4536-AABA-739AE3DA971E}.Release|x86.Build.0=Release|Any CPU
160156
{35CBBDEB-FC07-4D04-9D3E-F88FC180110B}.Debug|Any CPU.ActiveCfg=Debug|Any CPU
161157
{35CBBDEB-FC07-4D04-9D3E-F88FC180110B}.Debug|Any CPU.Build.0=Debug|Any CPU
162158
{35CBBDEB-FC07-4D04-9D3E-F88FC180110B}.Debug|x64.ActiveCfg=Debug|Any CPU

‎src/runtime/Python.Runtime.csproj

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,35 @@
55
<LangVersion>9.0</LangVersion>
66
<RootNamespace>Python.Runtime</RootNamespace>
77
<AssemblyName>Python.Runtime</AssemblyName>
8+
89
<PackageId>pythonnet</PackageId>
9-
<PackageLicenseUrl>https://github.com/pythonnet/pythonnet/blob/master/LICENSE</PackageLicenseUrl>
10+
<PackageLicenseFile>LICENSE</PackageLicenseFile>
1011
<RepositoryUrl>https://github.com/pythonnet/pythonnet</RepositoryUrl>
1112
<RepositoryType>git</RepositoryType>
1213
<PackageTags>python interop dynamic dlr Mono pinvoke</PackageTags>
1314
<PackageIconUrl>https://raw.githubusercontent.com/pythonnet/pythonnet/master/src/console/python-clear.ico</PackageIconUrl>
1415
<PackageProjectUrl>https://pythonnet.github.io/</PackageProjectUrl>
16+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
17+
<Description>Python and CLR (.NET and Mono) cross-platform language interop</Description>
18+
19+
<DebugSymbols>true</DebugSymbols>
20+
<IncludeSymbols>true</IncludeSymbols>
21+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
22+
1523
<NoWarn>1591;NU1701</NoWarn>
1624
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
25+
26+
<IsPackable>true</IsPackable>
1727
</PropertyGroup>
1828

1929
<PropertyGroup>
2030
<DefineConstants>$(DefineConstants);$(ConfiguredConstants)</DefineConstants>
2131
</PropertyGroup>
2232

33+
<ItemGroup>
34+
<NoneInclude="..\..\LICENSE"Pack="true"PackagePath=""/>
35+
</ItemGroup>
36+
2337
<ItemGroup>
2438
<NoneRemove="resources\clr.py" />
2539
<EmbeddedResourceInclude="resources\clr.py">
@@ -30,5 +44,6 @@
3044
<ItemGroup>
3145
<PackageReferenceInclude="System.Security.Permissions"Version="4.4.0" />
3246
<PackageReferenceInclude="System.Reflection.Emit"Version="4.3.0" />
47+
<PackageReferenceInclude="Microsoft.SourceLink.GitHub"Version="1.0.0"PrivateAssets="All" />
3348
</ItemGroup>
3449
</Project>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp