Skip to content

Commit aebe7fd

Browse files
committed
Replace wrapper with fully modified pip source code to use aria2c
1 parent db72c3e commit aebe7fd

1,017 files changed

Lines changed: 200216 additions & 271 deletions

File tree

Some content is hidden

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

.devcontainer/devcontainer.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"name": "pip",
3+
"image": "mcr.microsoft.com/devcontainers/python:3",
4+
"remoteUser": "vscode",
5+
"remoteEnv": {
6+
"PATH": "/home/vscode/.local/bin:${containerEnv:PATH}"
7+
},
8+
"features": {
9+
"ghcr.io/rocker-org/devcontainer-features/apt-packages:1": {
10+
"packages": "mercurial,subversion,bzr,python3-venv"
11+
}
12+
},
13+
"postCreateCommand": "bash ${containerWorkspaceFolder}/.devcontainer/postCreate.sh",
14+
"customizations": {
15+
"vscode": {
16+
"extensions": [
17+
"ms-python.python",
18+
"ms-python.black-formatter",
19+
"charliermarsh.ruff"
20+
],
21+
"settings": {
22+
"python.testing.pytestEnabled": true,
23+
"python.testing.pytestArgs": [
24+
"-n",
25+
"auto"
26+
]
27+
}
28+
}
29+
}
30+
}

.devcontainer/postCreate.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
set -Eeuo pipefail
3+
4+
# Get the workspace directory
5+
WORKSPACE_DIR="${WORKSPACE_DIR:-/workspaces/pip}"
6+
cd "$WORKSPACE_DIR"
7+
8+
# Upgrade pip and install development dependencies
9+
python -m pip install --upgrade pip
10+
python -m pip install nox --group test
11+
python -m nox -s common-wheels
12+
python -m pip install -e .

.git-blame-ignore-revs

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
917b41d6d73535c090fc312668dff353cdaef906 # Blacken docs/html/conf.py
2+
ed383dd8afa8fe0250dcf9b8962927ada0e21c89 # Blacken docs/pip_sphinxext.py
3+
228405e62451abe8a66233573035007df4be575f # Blacken noxfile.py
4+
f477a9f490e978177b71c9dbaa5465c51ea21129 # Blacken setup.py
5+
e59ba23468390217479465019f8d78e724a23550 # Blacken src/pip/__main__.py
6+
d7013db084e9a52242354ee5754dc5d19ccf062e # Blacken src/pip/_internal/build_env.py
7+
30e9ffacae75378fc3e3df48f754dabad037edb9 # Blacken src/pip/_internal/cache.py
8+
8341d56b46776a805286218ac5fb0e7850fd9341 # Blacken src/pip/_internal/cli/autocompletion.py
9+
3d3461ed65208656358b3595e25d8c31c5c89470 # Blacken src/pip/_internal/cli/base_command.py
10+
d489b0f1b104bc936b0fb17e6c33633664ebdc0e # Blacken src/pip/_internal/cli/cmdoptions.py
11+
591fe4841aefe9befa0530f2a54f820c4ecbb392 # Blacken src/pip/_internal/cli/command_context.py
12+
9265b28ef7248ae1847a80384dbeeb8119c3e2f5 # Blacken src/pip/_internal/cli/main.py
13+
847a369364878c38d210c90beed2737bb6fb3a85 # Blacken src/pip/_internal/cli/main_parser.py
14+
ec97119067041ae58b963935ff5f0e5d9fead80c # Blacken src/pip/_internal/cli/parser.py
15+
6e3b8de22fa39fa3073599ecf9db61367f4b3b32 # Blacken src/pip/_internal/cli/progress_bars.py
16+
55405227de983c5bd5bf0858ea12dbe537d3e490 # Blacken src/pip/_internal/cli/req_command.py
17+
d5ca5c850cae9a0c64882a8f49d3a318699a7e2e # Blacken src/pip/_internal/cli/spinners.py
18+
9747cb48f8430a7a91b36fe697dd18dbddb319f0 # Blacken src/pip/_internal/commands/__init__.py
19+
1c09fd6f124df08ca36bed68085ad68e89bb1957 # Blacken src/pip/_internal/commands/cache.py
20+
315e93d7eb87cd476afcc4eaf0f01a7b56a5037f # Blacken src/pip/_internal/commands/check.py
21+
8ae3b96ed7d24fd24024ccce4840da0dcf635f26 # Blacken src/pip/_internal/commands/completion.py
22+
42ca4792202f26a293ee48380718743a80bbee37 # Blacken src/pip/_internal/commands/configuration.py
23+
790ad78fcd43d41a5bef9dca34a3c128d05eb02c # Blacken src/pip/_internal/commands/debug.py
24+
a6fcc8f045afe257ce321f4012fc8fcb4be01eb3 # Blacken src/pip/_internal/commands/download.py
25+
920e735dfc60109351fbe2f4c483c2f6ede9e52d # Blacken src/pip/_internal/commands/freeze.py
26+
053004e0fcf0851238b1064fbce13aea87b24e9c # Blacken src/pip/_internal/commands/hash.py
27+
a6b6ae487e52c2242045b64cb8962e0a992cfd76 # Blacken src/pip/_internal/commands/help.py
28+
2495cf95a6c7eb61ccf1f9f0e8b8d736af914e53 # Blacken __main__.py
29+
c7ee560e00b85f7486b452c14ff49e4737996eda # Blacken tools/
30+
8e2e1964a4f0a060f7299a96a911c9e116b2283d # Blacken src/pip/_internal/commands/
31+
1bc0eef05679e87f45540ab0a294667cb3c6a88e # Blacken src/pip/_internal/network/
32+
069b01932a7d64a81c708c6254cc93e1f89e6783 # Blacken src/pip/_internal/req
33+
1897784d59e0d5fcda2dd75fea54ddd8be3d502a # Blacken src/pip/_internal/index
34+
94999255d5ede440c37137d210666fdf64302e75 # Reformat the codebase, with black
35+
585037a80a1177f1fa92e159a7079855782e543e # Cleanup implicit string concatenation
36+
8a6f6ac19b80a6dc35900a47016c851d9fcd2ee2 # Blacken src/pip/_internal/resolution directory
37+
acfcae8941bb12ecfc372a05c875a7b414992604 # Reformat with Black's 2025 code style

.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Patches must have Unix-style line endings, even on Windows
2+
tools/vendoring/patches/* eol=lf
3+
# The CA Bundle should always use Unix-style line endings, even on Windows
4+
src/pip/_vendor/certifi/*.pem eol=lf

.github/CONTRIBUTING.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Contributing to pip
2+
3+
Thank you for your interest in contributing to pip! There are many ways to
4+
contribute, and we appreciate all of them.
5+
6+
As a reminder, all contributors are expected to follow our [Code of Conduct][coc].
7+
8+
Contributors wishing to use LLM tools should be aware of, and follow, our [AI Policy][ai].
9+
10+
[coc]: https://www.pypa.io/en/latest/code-of-conduct/
11+
[ai]: https://github.com/pypa/pip/blob/main/AI_POLICY.md
12+
13+
## Development Documentation
14+
15+
Our [development documentation](https://pip.pypa.io/en/latest/development/) contains details on how to get started with contributing to pip, and details of our development processes.

.github/FUNDING.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
2+
patreon: # Replace with a single Patreon username
3+
open_collective: # Replace with a single Open Collective username
4+
ko_fi: # Replace with a single Ko-fi username
5+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
6+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
7+
liberapay: # Replace with a single Liberapay username
8+
issuehunt: # Replace with a single IssueHunt username
9+
otechie: # Replace with a single Otechie username
10+
custom: "https://pypi.org/sponsor/" # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
name: Bug report
2+
description: Something is not working correctly.
3+
labels: "S: needs triage, type: bug"
4+
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: >-
9+
Hi there!
10+
11+
We'd appreciate it if you could search on pip's existing issues prior to filing
12+
a bug report.
13+
14+
We get a lot of duplicate tickets and have limited maintainer capacity to triage
15+
them. Thanks!
16+
17+
- type: textarea
18+
attributes:
19+
label: Description
20+
description: >-
21+
A clear and concise description of what the bug is.
22+
validations:
23+
required: true
24+
25+
- type: textarea
26+
attributes:
27+
label: Expected behavior
28+
description: >-
29+
A clear and concise description of what you expected to happen.
30+
31+
- type: input
32+
attributes:
33+
label: pip version
34+
validations:
35+
required: true
36+
- type: input
37+
attributes:
38+
label: Python version
39+
validations:
40+
required: true
41+
- type: input
42+
attributes:
43+
label: OS
44+
validations:
45+
required: true
46+
47+
- type: textarea
48+
attributes:
49+
label: How to Reproduce
50+
description: Please provide steps to reproduce this bug.
51+
placeholder: |
52+
1. Get package from '...'
53+
2. Then run '...'
54+
3. An error occurs.
55+
validations:
56+
required: true
57+
58+
- type: textarea
59+
attributes:
60+
label: Output
61+
description: >-
62+
Provide the output of the steps above, including the commands
63+
themselves and pip's output/traceback etc.
64+
65+
If you want to present output from multiple commands, please prefix
66+
the line containing the command with `$ `. Please also ensure that
67+
the "How to reproduce" section contains matching instructions for
68+
reproducing this.
69+
70+
- type: checkboxes
71+
attributes:
72+
label: Code of Conduct
73+
options:
74+
- label: >-
75+
I agree to follow the [PSF Code of Conduct](https://www.python.org/psf/conduct/).
76+
required: true

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Documentation for this file can be found at:
2+
# https://help.github.com/en/github/building-a-strong-community/configuring-issue-templates-for-your-repository
3+
4+
blank_issues_enabled: true
5+
# contact_links:
6+
# - name: "(maintainers only) Blank issue"
7+
# url: https://github.com/pypa/pip/issues/new
8+
# about: For maintainers only.
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Feature request
2+
description: Suggest an idea for this project
3+
labels: "S: needs triage, type: feature request"
4+
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: >-
9+
Hi there!
10+
11+
We'd appreciate it if you could search on pip's existing issues prior to filing
12+
a feature request.
13+
14+
We get a lot of duplicate tickets and have limited maintainer capacity to triage
15+
them. Thanks!
16+
17+
- type: textarea
18+
attributes:
19+
label: What's the problem this feature will solve?
20+
description: >-
21+
What are you trying to do, that you are unable to achieve with pip as it
22+
currently stands?
23+
validations:
24+
required: true
25+
26+
- type: textarea
27+
attributes:
28+
label: Describe the solution you'd like
29+
description: >-
30+
Clear and concise description of what you want to happen. Please use examples
31+
of real world use cases that this would help with, and how it solves the
32+
problem described above.
33+
validations:
34+
required: true
35+
36+
- type: textarea
37+
attributes:
38+
label: Alternative Solutions
39+
description: >-
40+
Have you tried to workaround the problem using pip or other tools? Or a
41+
different approach to solving this issue? Please elaborate here.
42+
validations:
43+
required: true
44+
45+
- type: textarea
46+
attributes:
47+
label: Additional context
48+
description: >-
49+
Add any other context, links, etc. relevant to the feature request.
50+
validations:
51+
required: true
52+
53+
- type: checkboxes
54+
attributes:
55+
label: Code of Conduct
56+
options:
57+
- label: >-
58+
I agree to follow the [PSF Code of Conduct](https://www.python.org/psf/conduct/).
59+
required: true

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!---
2+
Thank you for your soon to be pull request. Before you submit this, please
3+
double check to make sure that you've added a news file fragment. In pip we
4+
generate our NEWS.rst from multiple news fragment files, and all pull requests
5+
require either a news file fragment or a marker to indicate they don't require
6+
one.
7+
8+
To read more about adding a news file fragment for your PR, please check out
9+
our documentation at: https://pip.pypa.io/en/latest/development/contributing/#news-entries
10+
-->

0 commit comments

Comments
 (0)