From d6448919702142123d937a54f20a81aeaf8d2acc Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Tue, 25 Feb 2020 20:07:00 +0000 Subject: [PATCH] bpo-38403: Update nuspec file for deprecated field and git repository (GH-18657) --- .../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 00000000000..144ffd50af0 --- /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 00000000000..6f521503a38 --- /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 0000000000000000000000000000000000000000..d2655c72e7df49618b8c58795eccef7985e3be64 GIT binary patch literal 1203 zcmV;k1WfyhP)Px#1ZP1_K>z@;j|==^1poj5V^B;~MF0Q*FmR9mzc4sxm;c8&HENar#Wgf&lmEvw zHffgs#x^x-mH)>zH))pt#y2)!HEWjt$Tc@=m;cB&Hfomt$Tl@;mjB2#Hfomt z$Tl`=mjB2$Hfomt$Tl`=mjB2$*mnqA0000VbW%=J01yx$ATTgMKu}O%U~q7NfRB%# zpRcdKzt7L#-|z2sM@*Rj000SaNLh0L02dJe02dJf$|mza000B7Nklv|2$xXs`NTm9N8`uzDC~#wt3Uug{`*bIw1Uzl-PndOkz} z{_RWd~L>EMRN`WT7j$^G|!?r0|Kpp2wAs2K}t~UIebb>W848 z75bI_0s2|-FJi@?h_H>E2stO9n->D)oPhs(!BHfLPK|-nft(W<+twXb`AFADJ7lGI zSn~`;S~6tr30x&4B6Yb%cEQHRnJAcw)YVYM!eObAh}0znh?U;)7$6fFtc#iB)gcwB zyFGS7lp}JHo6rcnOqNQd3R{r_f?Sb{)W=pt>kSQ2h&&n%rd9cj(ZWX zP(F~l-m?p$+~8#XGvu6*`neo=#Mlujr#!rz_a_d;wAivG$yq{QjPT{f;SK`Ju2Qrx`EKDOg<{U zMDl(hr1JCo=t*Q$ESQYNk4Po9?>A%P?L{P))QL{_@3ZeNQa#4i8#xG`kgiP_EchJA zIU&LSy?~q({zRmD$(hvYOh8U!a`dwTeU14SvEsKxsx*$1&T#ya$V=Q!@J_!Y(%s{s z7|S9NttAp(hY+urMIu^r*B^0FOY1dl(Av~Kt0;IZx>nS+63`YG8^jx5JtMc{85@P|zz5vs-0Y`~@ RG7|s*002ovPDHLkV1jb|Ev^6n literal 0 HcmV?d00001 diff --git a/PC/layout/support/nuspec.py b/PC/layout/support/nuspec.py index b85095c555f..9c6a9a91595 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"))