| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -38,6 +38,9 @@ indent_style = tab | |||
| 38 | 38 | charset = utf-8 | |
| 39 | 39 | insert_final_newline = true | |
| 40 | 40 | ||
| 41 | + [Python.Runtime.csproj] | ||
| 42 | + charset = latin1 | ||
| 43 | + | ||
| 41 | 44 | # bumpversion reformats itself after every bump | |
| 42 | 45 | [.bumpversion.cfg] | |
| 43 | 46 | trim_trailing_whitespace = false | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,69 @@ | |||
| 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}} | ||
| 62 | + | ||
| 63 | + - name: Publish NuGet | ||
| 64 | + run: dotnet nuget push **/pythonnet*preview*.nuget \ | ||
| 65 | + --source https://api.nuget.org/v3/index.json \ | ||
| 66 | + --api-key ${{ secrets.NUGET_MONTHLY }} | ||
| 67 | + | ||
| 68 | + # TODO: Run perf tests | ||
| 69 | + # TODO: Run mono tests on Windows? | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,6 +5,7 @@ | |||
| 5 | 5 | <AssemblyCompany>pythonnet</AssemblyCompany> | |
| 6 | 6 | <AssemblyProduct>Python.NET</AssemblyProduct> | |
| 7 | 7 | <LangVersion>7.3</LangVersion> | |
| 8 | + <IsPackable>false</IsPackable> | ||
| 8 | 9 | </PropertyGroup> | |
| 9 | 10 | <ItemGroup> | |
| 10 | 11 | <PackageReference Include="Microsoft.CSharp" Version="4.7.0" /> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | 1 | MIT License | |
| 2 | 2 | ||
| 3 | - Copyright (c) 2006-2020 the contributors of the Python.NET project | ||
| 3 | + Copyright (c) 2006-2021 the contributors of the Python.NET project | ||
| 4 | 4 | ||
| 5 | 5 | Permission is hereby granted, free of charge, to any person obtaining a | |
| 6 | 6 | copy of this software and associated documentation files (the "Software"), | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,6 +21,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Repo", "Repo", "{441A0123-F | |||
| 21 | 21 | .editorconfig = .editorconfig | |
| 22 | 22 | .gitignore = .gitignore | |
| 23 | 23 | CHANGELOG.md = CHANGELOG.md | |
| 24 | + LICENSE = LICENSE | ||
| 24 | 25 | README.rst = README.rst | |
| 25 | 26 | EndProjectSection | |
| 26 | 27 | EndProject | |
@@ -30,6 +31,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "CI", "CI", "{D301657F-5EAF- | |||
| 30 | 31 | ci\appveyor_build_recipe.ps1 = ci\appveyor_build_recipe.ps1 | |
| 31 | 32 | ci\appveyor_run_tests.ps1 = ci\appveyor_run_tests.ps1 | |
| 32 | 33 | .github\workflows\main.yml = .github\workflows\main.yml | |
| 34 | + .github\workflows\nuget-preview.yml = .github\workflows\nuget-preview.yml | ||
| 33 | 35 | EndProjectSection | |
| 34 | 36 | EndProject | |
| 35 | 37 | 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 | |||
| 51 | 53 | EndProject | |
| 52 | 54 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Python.PythonTestsRunner", "src\python_tests_runner\Python.PythonTestsRunner.csproj", "{35CBBDEB-FC07-4D04-9D3E-F88FC180110B}" | |
| 53 | 55 | 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 | ||
| 54 | 62 | Global | |
| 55 | 63 | GlobalSection(SolutionConfigurationPlatforms) = preSolution | |
| 56 | 64 | Debug|Any CPU = Debug|Any CPU | |
@@ -145,18 +153,6 @@ Global | |||
| 145 | 153 | {F2FB6DA3-318E-4F30-9A1F-932C667E38C5}.Release|x64.Build.0 = Release|Any CPU | |
| 146 | 154 | {F2FB6DA3-318E-4F30-9A1F-932C667E38C5}.Release|x86.ActiveCfg = Release|Any CPU | |
| 147 | 155 | {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 | ||
| 160 | 156 | {35CBBDEB-FC07-4D04-9D3E-F88FC180110B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | |
| 161 | 157 | {35CBBDEB-FC07-4D04-9D3E-F88FC180110B}.Debug|Any CPU.Build.0 = Debug|Any CPU | |
| 162 | 158 | {35CBBDEB-FC07-4D04-9D3E-F88FC180110B}.Debug|x64.ActiveCfg = Debug|Any CPU | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,21 +5,35 @@ | |||
| 5 | 5 | <LangVersion>9.0</LangVersion> | |
| 6 | 6 | <RootNamespace>Python.Runtime</RootNamespace> | |
| 7 | 7 | <AssemblyName>Python.Runtime</AssemblyName> | |
| 8 | + | ||
| 8 | 9 | <PackageId>pythonnet</PackageId> | |
| 9 | - <PackageLicenseUrl>https://github.com/pythonnet/pythonnet/blob/master/LICENSE</PackageLicenseUrl> | ||
| 10 | + <PackageLicenseFile>LICENSE</PackageLicenseFile> | ||
| 10 | 11 | <RepositoryUrl>https://github.com/pythonnet/pythonnet</RepositoryUrl> | |
| 11 | 12 | <RepositoryType>git</RepositoryType> | |
| 12 | 13 | <PackageTags>python interop dynamic dlr Mono pinvoke</PackageTags> | |
| 13 | 14 | <PackageIconUrl>https://raw.githubusercontent.com/pythonnet/pythonnet/master/src/console/python-clear.ico</PackageIconUrl> | |
| 14 | 15 | <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 | + | ||
| 15 | 23 | <NoWarn>1591;NU1701</NoWarn> | |
| 16 | 24 | <AllowUnsafeBlocks>True</AllowUnsafeBlocks> | |
| 25 | + | ||
| 26 | + <IsPackable>true</IsPackable> | ||
| 17 | 27 | </PropertyGroup> | |
| 18 | 28 | ||
| 19 | 29 | <PropertyGroup> | |
| 20 | 30 | <DefineConstants>$(DefineConstants);$(ConfiguredConstants)</DefineConstants> | |
| 21 | 31 | </PropertyGroup> | |
| 22 | 32 | ||
| 33 | + <ItemGroup> | ||
| 34 | + <None Include="..\..\LICENSE" Pack="true" PackagePath=""/> | ||
| 35 | + </ItemGroup> | ||
| 36 | + | ||
| 23 | 37 | <ItemGroup> | |
| 24 | 38 | <None Remove="resources\clr.py" /> | |
| 25 | 39 | <EmbeddedResource Include="resources\clr.py"> | |
@@ -30,5 +44,6 @@ | |||
| 30 | 44 | <ItemGroup> | |
| 31 | 45 | <PackageReference Include="System.Security.Permissions" Version="4.4.0" /> | |
| 32 | 46 | <PackageReference Include="System.Reflection.Emit" Version="4.3.0" /> | |
| 47 | + <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" /> | ||
| 33 | 48 | </ItemGroup> | |
| 34 | 49 | </Project> | |
| Back | FazBrowse Home | New Git URL |
0 commit comments