Commit Graph

107 Commits

Author SHA1 Message Date
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
cjc7373 f167d99b60 update pytest to 4.6
also update pytest plugins
2020-05-18 18:23:35 +08:00
Tzu-ping Chung a82a5e7abe Add pytest option to globally switch resolver 2020-05-14 18:00:42 +08:00
Nguyễn Gia Phong ff869e0c15 Make mypy happy with beta release automation
Co-Authored-By: Pradyun Gedam <pradyunsg@gmail.com>
2020-04-26 22:33:19 +07:00
Pradyun Gedam f1f63f052e
Make get_next_development_version understand betas 2020-04-20 00:51:45 +05:30
Pradyun Gedam de633cdf4b
Significantly improve release version validation 2020-04-11 23:43:07 +05:30
Devesh Kumar Singh 30d1870cc7 Only use names in AUTHORS.txt 2020-03-25 23:26:53 +05:30
Xavier Fernandez d43699b111 Move darwin special config dir to pip wrapper 2020-03-23 19:31:07 +01:00
Reece Dunham 07d2966e7b 2.4.3 just came out 2020-02-27 19:20:37 +00:00
Reece Dunham a30b024040 Update tools/requirements/docs.txt
Co-Authored-By: Pradyun Gedam <pradyunsg@gmail.com>
2020-02-27 19:20:37 +00:00
Reece Dunham ae80d7d179 Updated sphinx to 2.4.0 2020-02-27 19:20:37 +00:00
Xavier Fernandez db377cec28 vendoring: move /etc appdir patch to pip wrapper 2020-02-25 23:52:18 +01:00
Pradyun Gedam 723b84517d
Merge pull request #7717 from pradyunsg/virtualenv-bodgefix-ci
Workaround breaking changes in virtualenv for CI
2020-02-11 14:16:37 +05:30
Pradyun Gedam 6fd36bdf16
Workaround breaking changes in virtualenv for CI 2020-02-11 00:55:20 +05:30
Pradyun Gedam c24aba5928
Merge pull request #7654 from webknjaz/misc/tmpdir-nox-build
Make release task build dists @ clean tmp checkout
2020-02-10 18:27:36 +05:30
Christopher Hunt f537db5021
Merge pull request #7651 from chrahunt/refactor/wheel-builder-helper-2
Add new wheel builder test helper
2020-02-03 23:45:23 +08:00
Sviatoslav Sydorenko d772171ad9
♻ Relocate get_git_untracked_files to utils 2020-02-03 11:22:02 +01:00
Sviatoslav Sydorenko 6f1a43e4b2
Relocate helper CMs to tools.automation.release 2020-02-03 11:00:40 +01:00
@Switch01 e6a29690d4 Update sphinx version to 2.3.1 2020-02-02 22:16:25 +01:00
Chris Hunt 6d8a58f7e1 Add wheel builder test helper
As we introduce stricter metadata parsing, we will need to ensure that
the wheel files used in our tests are compliant (except in the specific
way that we're testing against).

Currently we have a large number of test cases relying on undocumented or
under-documented wheel files that have various inconsistencies
(incorrect name, missing fields) that are unrelated to the features
actually under test.

With a new wheel builder helper function, we will be able to replace all
of our instances of pre-built wheel test fixtures with dynamically-generated
files in code that are correct by default.
2020-01-31 19:30:19 -05:00
Pradyun Gedam 389443117c Revert "Explicitly set newline when rewriting for release (#7600)"
This reverts commit c55eee4188.
2020-01-23 13:15:36 +05:30
Tzu-ping Chung c55eee4188 Explicitly set newline when rewriting for release (#7600) 2020-01-19 00:15:20 +05:30
Paul Moore 21e5c0eb11 Fix lint error 2020-01-15 09:40:16 +00:00
Paul Moore 53eba71ef4 Add an assertion to check the version got modified 2020-01-15 09:10:27 +00:00