From d6448919702142123d937a54f20a81aeaf8d2acc Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Tue, 25 Feb 2020 20:07:00 +0000 Subject: bpo-38403: Update nuspec file for deprecated field and git repository (GH-18657) --- .../Windows/2020-02-25-18-43-34.bpo-34803.S3VcS0.rst | 2 ++ PC/icons/logo.svg | 1 + PC/icons/logox128.png | Bin 0 -> 1203 bytes PC/layout/support/nuspec.py | 6 ++++++ 4 files changed, 9 insertions(+) create mode 100644 Misc/NEWS.d/next/Windows/2020-02-25-18-43-34.bpo-34803.S3VcS0.rst create mode 100644 PC/icons/logo.svg create mode 100644 PC/icons/logox128.png diff --git a/Misc/NEWS.d/next/Windows/2020-02-25-18-43-34.bpo-34803.S3VcS0.rst b/Misc/NEWS.d/next/Windows/2020-02-25-18-43-34.bpo-34803.S3VcS0.rst new file mode 100644 index 0000000..144ffd5 --- /dev/null +++ b/Misc/NEWS.d/next/Windows/2020-02-25-18-43-34.bpo-34803.S3VcS0.rst @@ -0,0 +1,2 @@ +Package for nuget.org now includes repository reference and bundled icon +image. diff --git a/PC/icons/logo.svg b/PC/icons/logo.svg new file mode 100644 index 0000000..6f52150 --- /dev/null +++ b/PC/icons/logo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/PC/icons/logox128.png b/PC/icons/logox128.png new file mode 100644 index 0000000..d2655c7 Binary files /dev/null and b/PC/icons/logox128.png differ diff --git a/PC/layout/support/nuspec.py b/PC/layout/support/nuspec.py index b85095c..9c6a9a9 100644 --- a/PC/layout/support/nuspec.py +++ b/PC/layout/support/nuspec.py @@ -3,6 +3,7 @@ Provides .props file. """ import os +import sys from .constants import * @@ -14,6 +15,7 @@ NUSPEC_DATA = { "PYTHON_TAG": VER_DOT, "PYTHON_VERSION": os.getenv("PYTHON_NUSPEC_VERSION"), "FILELIST": r' ', + "GIT": sys._git, } NUSPEC_PLATFORM_DATA = dict( @@ -42,10 +44,13 @@ NUSPEC_TEMPLATE = r""" tools\LICENSE.txt https://www.python.org/ Installs {PYTHON_BITNESS} Python for use in build scenarios. + images\logox128.png https://www.python.org/static/favicon.ico python + + {FILELIST} @@ -68,5 +73,6 @@ def get_nuspec_layout(ns): data[k] = v if ns.include_all or ns.include_props: data["FILELIST"] = FILELIST_WITH_PROPS + data["LOGO"] = ns.source / "PC" / "icons" / "logox128.png" nuspec = NUSPEC_TEMPLATE.format_map(data) yield "python.nuspec", ("python.nuspec", nuspec.encode("utf-8")) -- cgit v0.12