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

130 commits

Author SHA1 Message Date
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
Pradyun Gedam baaf66f70d
Merge pull request #9591 from hexagonrecursion/open
Replace `open(file, 'r')` with `open(file)`
2021-02-23 13:37:25 +00:00
Jon Dufresne 63ea2e8c08 Handle several mypy TODO comments and exceptions
Remove mypy exceptions that are straightforward to remove.
2021-02-22 16:53:54 -08:00
Jon Dufresne 7ffd0ca13e Complete typing of noxfile.py
Allows removing a "mypy: disallow-untyped-defs=False" comment.

To workaround a mypy bug, map(os.path.basename, distribution_files) was
changed to use a generator expression. See:
https://github.com/python/mypy/issues/9864

To verify correct usage of the nox API, it is now a dependency during
pre-commit mypy runs.

The mypy configuration "follow_imports = silent" allowed erroneous code
to pass, so it has been removed. Now, all imports must be available
during type.
2021-02-19 05:47:55 -08:00
Jon Dufresne 3874afe72c Drop mock test dependency 2021-02-18 18:55:23 -08:00
Andrey Bienkowski f13e10c915 Replace open(file, 'r') with open(file) 2021-02-10 13:20:11 +03:00
Jon Dufresne 3cfb0ca1e8 Drop enum34 in favor of stdlib enum
Using enum34 has been unnecessary since dropping Python 2 support. It
previously remained as a compatibility shim.
2020-12-27 08:10:20 -08:00
Jon Dufresne 14380668b5 Drop csv23 in favor of stdlib csv
Using csv23 has been unnecessary since dropping Python 2 support. It
previously remained as a compatibility shim.
2020-12-27 08:09:32 -08:00
Pradyun Gedam c383ec3b41
Merge pull request #9172 from webknjaz/docs/unreleased-change-fragments-preview
Add a preview for the "next release" change notes
2020-12-26 10:50:10 +00:00
Pradyun Gedam a48ad5385b
Merge pull request #9352 from jdufresne/io-codecs-open
Replace io.open() and codecs.open() with builtin open()
2020-12-26 10:24:47 +00:00
Jon Dufresne cdcf74fb8e Use f-strings for simple string formatting
Use pyupgrade to convert simple string formatting to use f-string
syntax. pyupgrade is intentionally timid and will not create an f-string
if it would make the expression longer or if the substitution parameters
are anything but simple names or dotted names.
2020-12-25 16:21:20 -08:00
Jon Dufresne a1fff4a080 Replace io.open() and codecs.open() with builtin open()
In Python 3, these are functionally equivalent and share the same
feature set.
2020-12-25 15:53:08 -08:00
Jon Dufresne 2e38024991 Drop u prefix from str literals
Unnecessary since dropping Python 2 support.

This makes one test case from test_str_to_display a duplicate and so has
been removed.
2020-12-25 07:26:06 -08:00
Sviatoslav Sydorenko 0ddfe08828
Add a preview for the "next release" change notes
This change integrates `sphinxcontrib-towncrier` into the docs build.
It uses Towncrier and its configs to render a draft changelog as RST
and injects that into the `news.rst` document right above the older
changelog entries using `towncrier-draft-entries` directive.

Co-Authored-By: Pradyun Gedam <pradyunsg@gmail.com>
2020-12-10 15:36:51 +01:00
Pradyun Gedam 19717d1701
Switch documentation theme to Furo 2020-11-12 07:29:19 +05:30
Pradyun Gedam fb03b6aede
Switch to sphinx-inline-tabs for tabs 2020-10-18 22:42:24 +05:30
Hugo van Kemenade 4fc4333abf Revert "Pin pytest whilst pytest-rerunfailures is incompatible with pytest 6.1"
This reverts commit fbf710ea5d.
2020-09-29 09:57:46 +03:00
Hugo van Kemenade fbf710ea5d Pin pytest whilst pytest-rerunfailures is incompatible with pytest 6.1 2020-09-28 09:52:15 +03:00
Srinivas Nyayapati dccf555813 update docs requirements 2020-09-13 20:47:16 -04:00
Srinivas Nyayapati 119d8666b4 implement sphinx-tabs on installing page of docs 2020-09-13 20:47:16 -04:00
Srinivas Nyayapati e51de6ecb4 Bump to latest version 3.2.1 2020-08-20 07:54:34 -04:00
Srinivas Nyayapati ce85775155 Bump Sphinx to v3.1.2 and fix rst issues 2020-08-20 07:47:36 -04:00
Nguyễn Gia Phong 15e5680d8a Use the new resolver for test requirements 2020-08-16 14:25:32 +07:00
Nguyễn Gia Phong 0c0223765a Unpin pytest and its plugins
This works around the incompatibility of pytest-xdist 2.0.0
with older pytest: https://github.com/pytest-dev/pytest-xdist/issues/580
2020-08-16 14:24:41 +07:00
Nguyễn Gia Phong 530463879e Use --durations instead of --duration for pytest
Newer pytest no longer accepts --duration as an alias for --durations.
2020-08-16 14:20:37 +07:00
Pradyun Gedam 2ac80f4336
Upgrade certifi to 2020.6.20 2020-07-22 19:57:19 +05:30
Pradyun Gedam 28aad200b3
Upgrade requests to 2.24.0 2020-07-22 19:57:19 +05:30
Pradyun Gedam e84d0c1813
Upgrade html5lib to 1.1
Also, drop the no-longer-necessary patch.
2020-07-22 19:57:18 +05:30
Chris Hunt cb540f30e3 Add basic test coverage configuration
This handles:

* Sub-processes within unit tests (thanks pytest-cov)
* Our pytest-fixture-based virtual environments and subprocesses
  therein
* Running with xdist (e.g. `-n auto`)
* Combining results from all of the above using paths rooted with
  `src/pip/*`

This doesn't handle:

* Platform-specific branches
* Python 2
* CI integration
2020-07-07 21:58:55 -04:00
Pradyun Gedam d01bfcfaa1
Merge pull request #8278 from tiran/py3_celementtree 2020-05-30 17:07:10 +05:30
Sumana Harihareswara cef69fef7f Updated author email in configuration and tests
Per https://groups.google.com/d/msg/pypa-dev/rUNsfIbruHM/LCEx-CB5AgAJ
the pypa-dev Google Group is now decommissioned.
Using distutils-sig instead as author/maintainer email.

Signed-off-by: Sumana Harihareswara <sh@changeset.nyc>
2020-05-28 16:51:02 -04:00
Paul Moore 19a613efc5 Add a travis job to test the new resolver known failures 2020-05-22 09:00:19 +01:00
Christian Heimes 3ed33bd3a1 update html5lib vendoring patch 2020-05-21 18:49:22 +02:00