← Back to DAGDA | Support | Source: https://github.com/python/cpython/pull/10245/commits/3615a732773fcbde5882183f8b964a242c1d2266
Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
17ba155
bpo-34977: Add Windows App Store package
zooba Oct 1, 2018
303497e
Runs symlink tests in correct directory
zooba Nov 19, 2018
164506e
Merge remote-tracking branch 'cpython/master' into msix
zooba Nov 19, 2018
8d1d6f8
Switch python_uwp to use new API
zooba Nov 19, 2018
d02bc93
Undoes some unnecessary changes
zooba Nov 19, 2018
1bf9ae8
Merge remote-tracking branch 'cpython/master' into msix
zooba Nov 20, 2018
0e2c7ad
Merge remote-tracking branch 'cpython/master' into msix
zooba Nov 22, 2018
5d600d1
Fixes MSIX registry keys
zooba Nov 23, 2018
312e9f0
Merge remote-tracking branch 'cpython/master' into msix
zooba Nov 23, 2018
f02f481
Fixes argc issue and handle new include/ dirs
zooba Nov 23, 2018
cb34aa3
Fix invalid name
zooba Nov 23, 2018
64e24d4
Fixes tcl library not being correctly included
zooba Nov 23, 2018
28e7f1f
Fixes missing vcruntime and venv warning
zooba Nov 26, 2018
76c1864
Fix minor issues, improve sccd file
zooba Nov 26, 2018
9e7675e
Remove classicAppCompat SCCD and registry keys
zooba Nov 28, 2018
b7383fe
Fixes version number and adds registry exception
zooba Nov 29, 2018
c108ab6
Add missing XML prefix
zooba Nov 29, 2018
8ce142a
Fix version numbers and enable reg virtualization for current versions
zooba Nov 29, 2018
48dd10a
Added signed classicAppCompat.sccd
zooba Nov 30, 2018
9ac3c57
Treat classicAppCompat files as binary
zooba Nov 30, 2018
8fe2b24
Fixes size of logo image
zooba Dec 4, 2018
8ca533a
Remove mapping files and fix APPX build
zooba Dec 6, 2018
3615a73
Adds basic store info and support local signing with cert file
zooba Dec 6, 2018
bdcf497
Ensures name is passed to makepri
zooba Dec 7, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Adds basic store info and support local signing with cert file
  • Loading branch information
zooba committed Dec 6, 2018
commit 3615a732773fcbde5882183f8b964a242c1d2266
146 changes: 146 additions & 0 deletions PC/store_info.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
# Overview

NOTE: This file requires more content.

Since Python 3.8.2, releases have been made through the Microsoft Store
to allow easy installation on Windows 10.0.17763.0 and later.

# Building

To build the store package, the PC/layout script should be used.
Execute the directory with the build of Python to package, and pass
"-h" for full command-line options.

To sideload test builds, you will need a local certificate.
Instructions are available at
https://docs.microsoft.com/windows/uwp/packaging/create-certificate-package-signing.

After exporting your certificate, you will need the subject name and
SHA256 hash. The `certutil -dump <cert file>` command will display this
information.

To build for sideloading, use these commands in PowerShell:

```
$env:APPX_DATA_PUBLISHER=<your certificate subject name>
$env:APPX_DATA_SHA256=<your certificate SHA256>
$env:SigningCertificateFile=<your certificate file>

python PC/layout --copy <layout directory> --include-appxmanifest
Tools/msi/make_appx.ps1 <layout directory> python.msix -sign

Add-AppxPackage python.msix
```

(Note that only the last command requires PowerShell, and the others
can be used from Command Prompt. You can also double-click to install
the final package.)

To build for publishing to the Store, use these commands:

```
$env:APPX_DATA_PUBLISHER = $null
$env:APPX_DATA_SHA256 = $null

python PC/layout --copy <layout directory> --preset-appxmanifest --precompile
Tools/msi/make_appx.ps1 <layout directory> python.msix
```

Note that this package cannot be installed locally. It may only be
added to a submission for the store.


# Submission Metadata

This file contains the text that we use to fill out the store listing
for the Microsoft Store. It needs to be entered manually when creating
a new submission via the dashboard at
https://partner.microsoft.com/dashboard.

We keep it here for convenience and to allow it to be updated via pull
requests.

## Title

Python 3.8

## Short Title

Python

## Description

Python is an easy to learn, powerful programming language. It has efficient high-level data structures and a simple but effective approach to object-oriented programming. Python’s elegant syntax and dynamic typing, together with its interpreted nature, make it an ideal language for scripting and rapid application development in many areas on most platforms.

The Python interpreter and the extensive standard library are freely available in source or binary form for all major platforms from the Python Web site, https://www.python.org/, and may be freely distributed. The same site also contains distributions of and pointers to many free third party Python modules, programs and tools, and additional documentation.

The Python interpreter is easily extended with new functions and data types implemented in C or C++ (or other languages callable from C). Python is also suitable as an extension language for customizable applications.

## ShortDescription

The Python 3.8 interpreter and runtime.

## Copyright Trademark Information

(c) Python Software Foundation

## Additional License Terms

Visit https://docs.python.org/3.8/license.html for latest license terms.

PSF LICENSE AGREEMENT FOR PYTHON 3.8

1. This LICENSE AGREEMENT is between the Python Software Foundation ("PSF"), and
the Individual or Organization ("Licensee") accessing and otherwise using Python
3.8 software in source or binary form and its associated documentation.

2. Subject to the terms and conditions of this License Agreement, PSF hereby
grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce,
analyze, test, perform and/or display publicly, prepare derivative works,
distribute, and otherwise use Python 3.8 alone or in any derivative
version, provided, however, that PSF's License Agreement and PSF's notice of
copyright, i.e., "Copyright © 2001-2018 Python Software Foundation; All Rights
Reserved" are retained in Python 3.8 alone or in any derivative version
prepared by Licensee.

3. In the event Licensee prepares a derivative work that is based on or
incorporates Python 3.8 or any part thereof, and wants to make the
derivative work available to others as provided herein, then Licensee hereby
agrees to include in any such work a brief summary of the changes made to Python
3.8.

4. PSF is making Python 3.8 available to Licensee on an "AS IS" basis.
PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF
EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND DISCLAIMS ANY REPRESENTATION OR
WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE
USE OF PYTHON 3.8 WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.

5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON 3.8
FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF
MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 3.8, OR ANY DERIVATIVE
THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.

6. This License Agreement will automatically terminate upon a material breach of
its terms and conditions.

7. Nothing in this License Agreement shall be deemed to create any relationship
of agency, partnership, or joint venture between PSF and Licensee. This License
Agreement does not grant permission to use PSF trademarks or trade name in a
trademark sense to endorse or promote products or services of Licensee, or any
third party.

8. By copying, installing or otherwise using Python 3.8, Licensee agrees
to be bound by the terms and conditions of this License Agreement.

## Features

* Easy to install Python runtime
* Supported by core CPython team
* Find Python, Pip and Idle on PATH

## Search Terms

* Python
* Scripting
* Interpreter

5 changes: 3 additions & 2 deletions Tools/msi/make_appx.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ param(
[switch]$sign,
[string]$description,
[string]$certname,
[string]$certsha1
[string]$certsha1,
[string]$certfile
)

$tools = $script:MyInvocation.MyCommand.Path | Split-Path -parent;
Expand Down Expand Up @@ -61,7 +62,7 @@ try {
}

if ($sign) {
Sign-File -certname $certname -certsha1 $certsha1 -description $description -files $msix
Sign-File -certname $certname -certsha1 $certsha1 -certfile $certfile -description $description -files $msix

if (-not $?) {
throw "Package signing failed"
Expand Down
5 changes: 3 additions & 2 deletions Tools/msi/make_cat.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ param(
[Parameter(Mandatory=$true)][string]$catalog,
[string]$description,
[string]$certname,
[string]$certsha1
[string]$certsha1,
[string]$certfile
)

$tools = $script:MyInvocation.MyCommand.Path | Split-Path -parent;
Expand All @@ -30,4 +31,4 @@ MakeCat $catalog
if (-not $?) {
throw "Catalog compilation failed"
}
Sign-File -certname $certname -certsha1 $certsha1 -description $description -files @($catalog -replace 'cdf$', 'cat')
Sign-File -certname $certname -certsha1 $certsha1 -certfile $certfile -description $description -files @($catalog -replace 'cdf$', 'cat')
7 changes: 6 additions & 1 deletion Tools/msi/sdktools.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function Find-Tool {
Set-Alias SignTool (Find-Tool "signtool.exe") -Scope Script

function Sign-File {
param([string]$certname, [string]$certsha1, [string]$description, [string[]]$files)
param([string]$certname, [string]$certsha1, [string]$certfile, [string]$description, [string[]]$files)

if (-not $description) {
$description = $env:SigningDescription;
Expand All @@ -24,12 +24,17 @@ function Sign-File {
if (-not $certname) {
$certname = $env:SigningCertificate;
}
if (-not $certfile) {
$certfile = $env:SigningCertificateFile;
}

foreach ($a in $files) {
if ($certsha1) {
SignTool sign /sha1 $certsha1 /fd sha256 /t http://timestamp.verisign.com/scripts/timestamp.dll /d $description $a
} elseif ($certname) {
SignTool sign /n $certname /fd sha256 /t http://timestamp.verisign.com/scripts/timestamp.dll /d $description $a
} elseif ($certfile) {
SignTool sign /f $certfile /fd sha256 /t http://timestamp.verisign.com/scripts/timestamp.dll /d $description $a
} else {
SignTool sign /a /fd sha256 /t http://timestamp.verisign.com/scripts/timestamp.dll /d $description $a
}
Expand Down
5 changes: 3 additions & 2 deletions Tools/msi/sign_build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,16 @@ param(
[string[]]$patterns=@("*.exe", "*.dll", "*.pyd"),
[string]$description,
[string]$certname,
[string]$certsha1
[string]$certsha1,
[string]$certfile
)

$tools = $script:MyInvocation.MyCommand.Path | Split-Path -parent;
Import-Module $tools\sdktools.psm1 -WarningAction SilentlyContinue -Force

pushd $root
try {
Sign-File -certname $certname -certsha1 $certsha1 -description $description -files (gci -r $patterns)
Sign-File -certname $certname -certsha1 $certsha1 -certfile $certfile -description $description -files (gci -r $patterns)
} finally {
popd
}