Skip to content

Commit 0d6194d

Browse files
inna-wfilmor
authored andcommitted
Generate NuGet package during build (#875)
* Generate NuGet package during build * Comment out PackageReleaseNotes field * Update CHANGELOG and AUTHORS
1 parent af419b1 commit 0d6194d

File tree

5 files changed

+21
-9
lines changed

5 files changed

+21
-9
lines changed

AUTHORS.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@
2727
- David Lechner ([@dlech](https://github.com/dlech))
2828
- Dmitriy Se ([@dmitriyse](https://github.com/dmitriyse))
2929
- He-chien Tsai ([@t3476](https://github.com/t3476))
30-
-   Ivan Cronyn ([@cronan](https://github.com/cronan))
30+
- Inna Wiesel ([@inna-w](https://github.com/inna-w))
31+
- Ivan Cronyn ([@cronan](https://github.com/cronan))
3132
- Jan Krivanek ([@jakrivan](https://github.com/jakrivan))
32-
-   Jeff Reback ([@jreback](https://github.com/jreback))
33+
- Jeff Reback ([@jreback](https://github.com/jreback))
3334
- Joe Frayne ([@jfrayne](https://github.com/jfrayne))
3435
- John Burnett ([@johnburnett](https://github.com/johnburnett))
3536
- John Wilkes ([@jbw3](https://github.com/jbw3))

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ This document follows the conventions laid out in [Keep a CHANGELOG][].
99

1010
### Added
1111

12+
- Added automatic NuGet package generation in appveyor and local builds
13+
1214
### Changed
1315

1416
### Fixed

appveyor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ on_finish:
7272

7373
artifacts:
7474
- path: dist\*
75+
- path: '.\src\runtime\bin\*.nupkg'
7576

7677
notifications:
7778
- provider: Slack

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,7 @@ def build_extension(self, ext):
334334
),
335335
'/p:PythonBuildDir="{}"'.format(os.path.abspath(dest_dir)),
336336
'/p:PythonInteropFile="{}"'.format(os.path.basename(interop_file)),
337+
"/p:PackageId=pythonnet_py{0}{1}_{2}".format(PY_MAJOR, PY_MINOR, ARCH),
337338
"/verbosity:{}".format(VERBOSITY),
338339
]
339340

src/runtime/Python.Runtime.15.csproj

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,21 @@
77
<AssetTargetFallback Condition="'$(TargetFramework)'=='net40' AND $(Configuration.Contains('Mono'))">net45</AssetTargetFallback>
88
<RootNamespace>Python.Runtime</RootNamespace>
99
<AssemblyName>Python.Runtime</AssemblyName>
10-
<PackageId>Python.Runtime</PackageId>
10+
<PackageId>pythonnet</PackageId>
1111
<VersionPrefix>2.4.1</VersionPrefix>
12-
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
13-
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
14-
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
15-
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
16-
<GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute>
17-
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
12+
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
13+
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
14+
<Title>Python for .NET</Title>
15+
<Copyright>Copyright (c) 2006-2019 the contributors of the 'Python for .NET' project</Copyright>
16+
<Description>Python and CLR (.NET and Mono) cross-platform language interop</Description>
17+
<Authors>pythonnet</Authors>
18+
<PackageLicenseUrl>https://github.com/pythonnet/pythonnet/blob/master/LICENSE</PackageLicenseUrl>
19+
<RepositoryUrl>https://github.com/pythonnet/pythonnet</RepositoryUrl>
20+
<RepositoryType>git</RepositoryType>
21+
<!--<PackageReleaseNotes>https://github.com/pythonnet/pythonnet/releases/tag/v2.4.0</PackageReleaseNotes>-->
22+
<PackageTags>python interop dynamic dlr Mono pinvoke</PackageTags>
23+
<PackageIconUrl>https://raw.githubusercontent.com/pythonnet/pythonnet/master/src/console/python-clear.ico</PackageIconUrl>
24+
<PackageProjectUrl>https://pythonnet.github.io/</PackageProjectUrl>
1825
<OutputPath>bin\</OutputPath>
1926
<AppendTargetFrameworkToOutputPath Condition="'$(TargetFramework)'=='net40'">false</AppendTargetFrameworkToOutputPath>
2027
<DocumentationFile Condition="'$(TargetFramework)'=='net40'">$(OutputPath)\$(AssemblyName).xml</DocumentationFile>

0 commit comments

Comments
 (0)