Skip to content

Commit a61943e

Browse files
committed
Merge branch 'master' into add-show-json-docs
2 parents 6f68007 + d150cf2 commit a61943e

File tree

508 files changed

+52658
-16201
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

508 files changed

+52658
-16201
lines changed

.azure-pipelines/jobs/test-windows.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,8 @@ jobs:
99
vmImage: ${{ parameters.vmImage }}
1010
strategy:
1111
matrix:
12-
"2.7-x86":
13-
python.version: '2.7'
14-
python.architecture: x86
15-
"2.7": # because Python 2!
16-
python.version: '2.7'
17-
python.architecture: x64
18-
"3.5": # lowest Py3 version
19-
python.version: '3.5'
12+
"3.6": # lowest Python version
13+
python.version: '3.6'
2014
python.architecture: x64
2115
"3.8": # current
2216
python.version: '3.8'
@@ -38,16 +32,10 @@ jobs:
3832
vmImage: ${{ parameters.vmImage }}
3933
strategy:
4034
matrix:
41-
"3.6":
42-
python.version: '3.6'
43-
python.architecture: x64
4435
"3.7":
4536
python.version: '3.7'
4637
python.architecture: x64
4738
# This is for Windows, so test x86 builds
48-
"3.5-x86":
49-
python.version: '3.5'
50-
python.architecture: x86
5139
"3.6-x86":
5240
python.version: '3.6'
5341
python.architecture: x86

.azure-pipelines/jobs/test.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ jobs:
99
vmImage: ${{ parameters.vmImage }}
1010
strategy:
1111
matrix:
12-
"2.7":
13-
python.version: '2.7'
12+
"3.6": # lowest Python version
13+
python.version: '3.6'
1414
python.architecture: x64
1515
"3.8":
1616
python.version: '3.8'
@@ -29,12 +29,6 @@ jobs:
2929
vmImage: ${{ parameters.vmImage }}
3030
strategy:
3131
matrix:
32-
"3.5":
33-
python.version: '3.5'
34-
python.architecture: x64
35-
"3.6":
36-
python.version: '3.6'
37-
python.architecture: x64
3832
"3.7":
3933
python.version: '3.7'
4034
python.architecture: x64

.azure-pipelines/linux.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
variables:
2+
CI: true
3+
14
jobs:
25
- template: jobs/test.yml
36
parameters:

.azure-pipelines/macos.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

.azure-pipelines/steps/run-tests-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ steps:
4343
# https://bugs.python.org/issue18199
4444
$env:TEMP = "R:\Temp"
4545
46-
tox -e py -- -m integration -n auto --duration=5 --junit-xml=junit/integration-test.xml
46+
tox -e py -- -m integration -n auto --durations=5 --junit-xml=junit/integration-test.xml
4747
displayName: Tox run integration tests
4848
4949
- task: PublishTestResults@2

.azure-pipelines/steps/run-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ steps:
1111
displayName: Tox run unit tests
1212

1313
# Run integration tests in two groups so we will fail faster if there is a failure in the first group
14-
- script: tox -e py -- -m integration -n auto --duration=5 -k "not test_install" --junit-xml=junit/integration-test-group0.xml
14+
- script: tox -e py -- -m integration -n auto --durations=5 -k "not test_install" --junit-xml=junit/integration-test-group0.xml
1515
displayName: Tox run Group 0 integration tests
1616

17-
- script: tox -e py -- -m integration -n auto --duration=5 -k "test_install" --junit-xml=junit/integration-test-group1.xml
17+
- script: tox -e py -- -m integration -n auto --durations=5 -k "test_install" --junit-xml=junit/integration-test-group1.xml
1818
displayName: Tox run Group 1 integration tests
1919

2020
- task: PublishTestResults@2

.azure-pipelines/windows.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
variables:
2+
CI: true
3+
14
jobs:
25
- template: jobs/test-windows.yml
36
parameters:

.coveragerc

Lines changed: 0 additions & 4 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/bug-report.md

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/bug-report.yml

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
---
2+
name: Bug report
3+
about: Something is not working correctly.
4+
title: ""
5+
labels: "S: needs triage, type: bug"
6+
issue_body: true # default: true, adds a classic WSYWIG textarea, if on
7+
body:
8+
- type: markdown
9+
attributes:
10+
value: |
11+
12+
If you're reporting an issue for `--use-feature=2020-resolver`,
13+
use the "Dependency resolver failures / errors" template instead.
14+
- type: markdown
15+
attributes:
16+
value: "**Environment**"
17+
- type: input
18+
attributes:
19+
label: pip version
20+
validations:
21+
required: true
22+
- type: input
23+
attributes:
24+
label: Python version
25+
validations:
26+
required: true
27+
- type: input
28+
attributes:
29+
label: OS
30+
validations:
31+
required: true
32+
- type: textarea
33+
attributes:
34+
label: Additional information
35+
description: >-
36+
Feel free to add more information about your environment here.
37+
38+
- type: textarea
39+
attributes:
40+
label: Description
41+
description: >-
42+
A clear and concise description of what the bug is.
43+
44+
- type: textarea
45+
attributes:
46+
label: Expected behavior
47+
description: >-
48+
A clear and concise description of what you expected to happen.
49+
50+
- type: textarea
51+
attributes:
52+
label: How to Reproduce
53+
description: >-
54+
Describe the steps to reproduce this bug.
55+
value: |
56+
1. Get package from '...'
57+
2. Then run '...'
58+
3. An error occurs.
59+
60+
- type: textarea
61+
attributes:
62+
label: Output
63+
description: >-
64+
Paste the output of the steps above, including the commands
65+
themselves and pip's output/traceback etc.
66+
value: |
67+
```console
68+
69+
```
70+
71+
- type: checkboxes
72+
attributes:
73+
label: Code of Conduct
74+
description: |
75+
Read the [PSF Code of Conduct][CoC] first.
76+
77+
[CoC]: https://github.com/pypa/.github/blob/main/CODE_OF_CONDUCT.md
78+
options:
79+
- label: I agree to follow the PSF Code of Conduct
80+
required: true
81+
...

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
# Ref: https://help.github.com/en/github/building-a-strong-community/configuring-issue-templates-for-your-repository#configuring-the-template-chooser
22
blank_issues_enabled: true # default
33
contact_links:
4-
- name: 🤷💻🤦 Discourse
4+
- name: 💬 Discourse
55
url: https://discuss.python.org/c/packaging
66
about: |
77
Please ask typical Q&A here: general ideas for Python packaging,
88
questions about structuring projects and so on
99
- name: '💬 IRC: #pypa @ Freenode'
1010
url: https://webchat.freenode.net/#pypa
1111
about: Chat with devs
12-
- name: 📝 PyPA Code of Conduct
13-
url: https://www.pypa.io/en/latest/code-of-conduct/
14-
about: ❤ Be nice to other members of the community. ☮ Behave.

.github/ISSUE_TEMPLATE/resolver-failure.md

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,30 @@ labels: ["K: UX", "K: crash", "C: new resolver", "C: dependency resolution"]
55
---
66

77
<!--
8-
Please provide as much information as you can about your failure, so that we can understand the root cause.
8+
Please provide as much information as you can about your failure, so that we can understand the root cause.
99
10-
For example, if you are installing packages from pypi.org, we'd like to see:
10+
Try if your issue has been fixed in the in-development version of pip. Use the following command to install pip from master:
1111
12-
- Your terminal output
13-
- Any inputs to pip, for example:
14-
- any package requirements: any CLI arguments and/or your requirements.txt file
15-
- any already installed packages, outputted via `pip freeze`
12+
python -m pip install -U "pip @ https://github.com/pypa/pip/archive/master.zip"
13+
-->
14+
15+
**What did you want to do?**
16+
<!-- Include any inputs you gave to pip, for example:
17+
18+
* Package requirements: any CLI arguments and/or your requirements.txt file
19+
* Already installed packages, outputted via `pip freeze`
20+
-->
1621

17-
It would be great if you could also include your dependency tree. For this you can use pipdeptree: https://pypi.org/project/pipdeptree/
22+
**Output**
23+
24+
```
25+
Paste what pip outputted in a code block. https://github.github.com/gfm/#fenced-code-blocks
26+
```
27+
28+
**Additional information**
29+
30+
<!--
31+
It would be great if you could also include your dependency tree. For this you can use pipdeptree: https://pypi.org/project/pipdeptree/
1832
19-
For users installing packages from a private repository or local directory, please try your best to describe your setup. We'd like to understand how to reproduce the error locally, so would need (at a minimum) a description of the packages you are trying to install, and a list of dependencies for each package.
33+
For users installing packages from a private repository or local directory, please try your best to describe your setup. We'd like to understand how to reproduce the error locally, so would need (at a minimum) a description of the packages you are trying to install, and a list of dependencies for each package.
2034
-->

.github/workflows/linting.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,13 @@ jobs:
1919
os:
2020
- Ubuntu
2121
- Windows
22-
- MacOS
2322

2423
steps:
2524
- uses: actions/checkout@v2
26-
- name: Set up Python 3.8
27-
uses: actions/setup-python@v1
25+
- name: Set up Python 3.9
26+
uses: actions/setup-python@v2
2827
with:
29-
python-version: 3.8
28+
python-version: 3.9
3029

3130
# Setup Caching
3231
- name: pip cache
@@ -39,7 +38,7 @@ jobs:
3938
${{ runner.os }}-
4039
4140
- name: Set PY (for pre-commit cache)
42-
run: echo "::set-env name=PY::$(python -c 'import hashlib, sys;print(hashlib.sha256(sys.version.encode()+sys.executable.encode()).hexdigest())')"
41+
run: echo "PY=$(python -c 'import hashlib, sys;print(hashlib.sha256(sys.version.encode()+sys.executable.encode()).hexdigest())')" >> $GITHUB_ENV
4342
- name: pre-commit cache
4443
uses: actions/cache@v1
4544
with:

0 commit comments

Comments
 (0)