Skip to content

Commit a9ab038

Browse files
committed
Add NuGet packaging for PythonNet3 engine
Introduced a nuspec file and nuget.config for packaging DynamoVisualProgramming.PythonEngine.PythonNet3. Updated pipeline.yml to support NuGet deployment using a secret API key and new configuration files.
1 parent b65f9f0 commit a9ab038

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0"?>
2+
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
3+
<metadata>
4+
<id>DynamoVisualProgramming.PythonEngine.PythonNet3</id>
5+
<version>0.0.0</version>
6+
<authors>Autodesk</authors>
7+
<owners>Autodesk</owners>
8+
<license type="expression">Apache-2.0</license>
9+
<projectUrl>https://github.com/DynamoDS/PythonNet3Engine</projectUrl>
10+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
11+
<description>PythonNet3 Engine Nuget, it contains the necessary binaries to load the PythonNet3 engine to Dynamo</description>
12+
<copyright>Copyright Autodesk 2025</copyright>
13+
</metadata>
14+
<files>
15+
<file src="package_output\pkg.json" target="" />
16+
<file src="package_output\bin\**" target="bin\" exclude="bin\DSPythonNet3*.pdb;" />
17+
<file src="package_output\extra\**" target="extra\" />
18+
</files>
19+
</package>

nuget.config

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<packageSources>
4+
<add key="Public Nuget" value="https://api.nuget.org/v3/index.json" />
5+
</packageSources>
6+
</configuration>

pipeline.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ env:
77
- SLACK_QUANTUM_BUILD_CHANNEL : "#dynamo-jenkinsbuild"
88
- JENKINS_NODE_WIN: CDA-VS22-SVC
99

10+
jenkins_creds:
11+
-
12+
type: secretText
13+
credentialsId: dynamovisualprogramming_nuget_api_key
14+
secretText: API_KEY
15+
1016
code_analysis:
1117
sonarqube:
1218
source_encoding: UTF-8
@@ -44,3 +50,11 @@ deployment:
4450
use_dev_pm: false
4551
outputs:
4652
- DSPythonNet3.zip
53+
-
54+
type: nuget
55+
custom_api_key: ${API_KEY}
56+
nuget_config_file: nuget.config
57+
nuspec_files:
58+
- DynamoVisualProgramming.PythonEngine.PythonNet3.nuspec
59+
package_version_cmd: echo %MS_PACKAGE_VERSION%
60+
destination_source_name: Public Nuget

0 commit comments

Comments
 (0)