1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00
Commit graph

162 commits

Author SHA1 Message Date
Stéphane Bidoul
6fb4bf2688
Vendoring: update ceritfi patch 2022-07-17 01:05:13 +02:00
Stéphane Bidoul
f1b3926eaa
Vendoring: update requests patch 2022-07-17 00:55:41 +02:00
Tzu-ping Chung
42359a9605 Migrate tests to use pathlib.Path
The pip-specific Path implementation has been removed, and all its
usages replaced by pathlib.Path. The tmpdir and tmpdir_factory fixtures
are also removed, and all usages are replaced by tmp_path and
tmp_path_factory, which use pathlib.Path.

The pip() function now also accepts pathlib.Path so we don't need to put
str() everywhere. Path arguments are coerced with os.fspath() into str.
2022-06-08 19:58:46 +08:00
Pradyun Gedam
b881c2ae50
Run towncrier build instead of towncrier
Newer versions of towncrier exit eagerly, when `towncrier --version` is
run only printing the version and not actually doing any news file
generation.
2022-05-03 11:56:30 +01:00
Pradyun Gedam
8068b30a09
Revert "Add additional context to protected_pip.py about how it works"
This reverts commit 84ee57d126.
2022-04-30 12:50:58 +01:00
Pradyun Gedam
84ee57d126
Add additional context to protected_pip.py about how it works
This should make it easier to understand what this file is doing,
and when it is useful.
2022-04-29 16:20:14 +01:00
Pradyun Gedam
1a2d2a188f
Rename tox_pip.py to protected_pip.py
This is in line with what the only point of use (in noxfile.py) calls
this.
2022-04-29 16:10:26 +01:00
Pradyun Gedam
377d642384 Upgrade rich to 12.2.0 2022-04-22 15:50:29 +01:00
Pradyun Gedam
dfcac4add2 Upgrade platformdirs to 2.5.2 2022-04-22 15:50:29 +01:00
q0w
6689e531d3 Disable brotli import in urllib3 2022-03-27 16:25:41 +03:00
Pradyun Gedam
b3a156892b
Trim unnecessary newlines in news template 2022-01-29 09:10:54 +00:00
Pradyun Gedam
5c565fc786
Upgrade platformdirs to 2.4.1 2022-01-25 08:51:13 +00:00
Nate Prewitt
cc21ec2a2e
Upgrade Requests to 2.27.1 2022-01-14 09:49:09 -07:00
Pradyun Gedam
7510fb04b6
Vendor rich and required dependencies (pygments, typing_extensions)
This will enable building upon these libraries, to improve the
presentation style and output.
2021-11-26 11:50:21 +00:00
Pradyun Gedam
14f8803bf8
Add a missing newline to fix the newfile rendering
towncrier renders with `trim_blocks=True` which trims the newline at the
start of the for loop's body. This adds an additional newline which is
not trimmed, which ensures that the code blocks don't blend into each
other.
2021-10-22 08:16:04 +01:00
Pradyun Gedam
aa89947b01
Improve our towncrier template, to do the right thing after releases
This also adds a bunch of comments, which should serve as useful guides
to future humans that work on these files.
2021-10-15 15:11:43 +01:00
Dominic Davis-Foster
d031c640eb
Bump platformdirs version. 2021-09-30 15:36:13 +01:00
Dominic Davis-Foster
f2d29df908
Update pkg_resources patch. 2021-09-30 15:34:35 +01:00
Dominic Davis-Foster
ae6cf66c79
Switch from appdirs to platformdirs 2021-09-30 15:34:35 +01:00
Pradyun Gedam
3b8113d452
Bump to vendoring 1.0.x
This now supports:

- Clearer failure mode, for imports of the format `import x.y`
- Regular expression support for dropping files (useful for when we vendor pygments)
- Patching files prior to rewriting imports, allowing generation of patches on the
  original package sources.
- Detection of py.typed files, which omits generation of unnecessary `.pyi` stubs.
2021-09-13 08:11:45 +01:00
Jon Dufresne
030b8b4ef6 Upgrade nox to remove mypy ignores 2021-08-12 07:41:30 -07:00
Tzu-ping Chung
f0323c7888
Merge pull request #10200 from uranusjr/release-procedure-improvements 2021-08-07 17:58:43 +08:00
Pradyun Gedam
664beeabf7
Merge pull request #10197 from pradyunsg/breakout-tools-requirements-folder
Get rid of tools/requirements/ directory, by moving those files into better locations
2021-07-28 10:35:10 +01:00
Dominic Davis-Foster
20629e4675
Patch tenacity to quote typing.NoReturn 2021-07-26 18:12:09 +01:00
Tzu-ping Chung
94dc07a28a Use shallow clone to make the release 2021-07-25 13:18:31 +08:00
Pradyun Gedam
236c0ccb8a
Move test requirements into tests/
This makes the file easier to locate, by placing it next to the stuff
that it will affect.
2021-07-24 12:06:51 +01:00
Pradyun Gedam
25af8e5f36
Move docs requirements to docs/
This makes the file easier to locate, by placing it next to the stuff
that it will affect.
2021-07-24 12:06:51 +01:00
Tzu-ping Chung
9ebd05c962
Merge pull request #10191 from pradyunsg/blacken/tools
Blacken tools/
2021-07-24 09:47:36 +08:00
Pradyun Gedam
c7ee560e00
Blacken tools/
Progresses the black formatting of the codebase further.
2021-07-23 17:11:56 +01:00
Illia Volochii
0fb0e3b547
Upgrade vendored requests to 2.26.0 (#10174)
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
2021-07-23 17:03:53 +08:00
Tzu-ping Chung
1c4753f299
Vendoring update for 21.2 (#10179) 2021-07-23 11:06:29 +08:00
Taneli Hukkinen
af79d0d393 Replace use of vendored toml in tests with PyPI toml 2021-07-02 00:21:00 +03:00
Ben Darnell
b8f1fcf863 Avoid importing a non-vendored version of Tornado
Code depending on this conditional import could break if an old
version of Tornado is present in the environment, rendering pip
unusable.
2021-05-30 11:26:48 -04:00
Diego Ramirez
5ee933aab8
Use "typing.List" as an annotation
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
2021-05-25 22:09:27 +08:00
Stéphane Bidoul
30faa6478e
Fix duplicate top line in NEWS.rst
It looks like towncrier unconditionally writes top_line
when it is defined in the title_format configuration.
So we must not repeat it in the template.
When running towncrier with --draft, it works differently
so in that case the top line is not shown...
2021-05-23 11:19:37 +02:00
Tzu-ping Chung
cf2c2ccf6f
Fix changelog misformat (#9817) 2021-04-18 07:44:38 +08:00
Tzu-ping Chung
a79c6267de Render top_line explicitly in towncrier template
This allows sphinxcontrib-towncrier to render it in the documentation.
The rendering of NEWS.rst is unchanged since Towncrier detects
automatically if that line exists and does not render a duplicated
section title.
2021-04-15 07:21:24 +08:00
Tzu-ping Chung
df84d1ce62 Upgrade sphinxcontrib-towncrier for docs 2021-04-15 01:31:51 +08:00
Tzu-ping Chung
80039e9376 Pin towncrier under 19.9.0
sphinxcontrib-towncrier uses towncrier internals and has not been
updated to work with later versions.
2021-04-07 20:21:13 +08:00
Tzu-ping Chung
2eb7e887ff Patch certifi to use environ for passing cert 2021-04-03 00:29:04 +08:00
Pradyun Gedam
6c87373965
Merge pull request #9759 from pradyunsg/revamp-ci-apr-2021 2021-04-02 09:47:22 +01:00
Pradyun Gedam
c022615961
Add a single GitHub Actions workflow for CI 2021-04-02 01:26:26 +01:00
Pradyun Gedam
0cdf9d7260
Drop all existing CI 2021-04-01 23:29:19 +01:00
Pradyun Gedam
147b914782
Get rid of the tools/automation folder
It was an unnecessary level added to the folder hierarchy.
2021-04-01 23:25:09 +01:00
Pradyun Gedam
6ff1f7da2f
Merge pull request #9739 from pradyunsg/tests/drop-YAML-based-resolver-tests
Drop YAML tests for the resolver
2021-03-28 07:56:09 +01:00
Pradyun Gedam
724bf3df0c
Drop pytest-timeout
It is incompatible with pytest-xdist and causes crashes when used with
it. Also removes the marker from the only test that uses it.
2021-03-26 08:03:04 +00:00
Pradyun Gedam
ad63666749
Drop YAML tests for the resolver
We've created a fairly capable setup with the new resolver tests,
which has now rendered this logic redundant and generally unnecessary.
2021-03-21 11:55:07 +00:00
Pradyun Gedam
d4431996db
Add sphinx-copybutton 2021-03-06 10:52:23 +00:00
Pradyun Gedam
11986d7641
Enable MyST in documentation 2021-03-06 10:52:22 +00:00
Pradyun Gedam
68e13c8b0d
Merge pull request #9377 from jdufresne/mock
Drop mock test dependency
2021-02-27 18:25:08 +00:00