Commit Graph

127 Commits

Author SHA1 Message Date
Hugo van Kemenade 0252c04a16 Drop support for soon-EOL Python 3.6 2021-11-08 12:02:16 +02:00
Pradyun Gedam 858dd34af6
Upgrade to vendoring 1.2
This enables wheel usage in vendoring's license fetching, at the cost of
requiring two more license-related fallbacks.

The additional fallbacks are due to packages which include the license
in their source distributions but not in their wheel distributions, and
the change in vendoring that prefers using wheels when possible.

This should fix the bootstrapping problem we're seeing with `flit` and
`tomli`, by allowing us to use wheels to break the loop.
2021-10-14 08:00:40 +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
Pradyun Gedam 4ee9a4af25
Add Python 3.10 support 2021-08-06 13:42:31 +01: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
Sviatoslav Sydorenko 92862e28ec
Enable parallelism in Sphinx 2021-04-20 22:35:53 +02: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
Stéphane Bidoul fe3aec0f5e
Better way to run slow linters in CI only
Taking advantage of pre-commit's manual stage.
2021-01-24 15:39:51 +01:00
Pradyun Gedam 1eebb12550
Merge pull request #9335 from hugovk/rm-2
Remove redundant Python 2.7 code
2020-12-23 17:49:30 +00:00
Hugo van Kemenade 817ee23051 Remove redundant Python 2.7 code 2020-12-22 09:06:26 +02:00
Stéphane Bidoul ccbf085095
Improve local pre-commit experience 2020-12-21 20:10:44 +01:00
Nguyễn Gia Phong c69644257e
Pin vendoring to ~=0.3.3 in test suite
Co-authored-by: Pradyun Gedam <3275593+pradyunsg@users.noreply.github.com>
2020-10-17 19:47:55 +07:00
Nguyễn Gia Phong da7569a440 Document and start testing Python 3.9 support
At first use it for GitHub Action for linting.
2020-10-12 17:37:23 +07:00
Nguyễn Gia Phong d363b4a427 Replace tabs by spaces for consistency 2020-07-18 17:00:59 +07:00
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
Tzu-ping Chung a82a5e7abe Add pytest option to globally switch resolver 2020-05-14 18:00:42 +08:00
Tzu-ping Chung f5093a022b Pass through PIP_UNSTABLE_FEATURE into Tox 2020-03-23 16:32:20 +08:00
Paul Moore f404eaa6ef Add HTTP proxy variables to tox environment passthrough 2020-01-15 15:32:39 +00:00
Pradyun Gedam 6929cc6d6b
Address review comments
These were all nitpicks but hey, that's good news. :)
2019-12-15 21:22:04 +05:30
Pradyun Gedam 248f6b2fc6
Switch tox -e vendoring, to use vendoring 2019-12-15 04:02:12 +05:30
Chris Hunt 8ab7d239fa Use pip 19.3.1+ for vendoring task 2019-11-26 21:36:40 -05:00
hugovk 9f6ee74d1a Test on Python 3.8 final 2019-10-15 22:07:03 +03:00
Xavier Fernandez c30bfa5a9f Add vendoring target to heck that vendoring is up-to-date 2019-10-10 10:29:34 +02:00
Pradyun Gedam 87a3e75487
Remove the testenv:packaging sections from tox.ini
Why: Because we no longer need it and it's covered in tox -e lint now.
2019-09-27 10:44:57 +05:30
Pradyun Gedam 10beeea0b0
Allow passing hook-ids to `tox -e lint`
Why: To allow running a specific hook when running locally.
2019-09-25 07:57:59 +05:30
Pradyun Gedam 7b005c2d7d
Switch to using pre-commit in `tox lint` 2019-09-24 18:03:18 +05:30
Pradyun Gedam dc5d2b91c8
Drop lint-py2 and mypy from tox environment
Why: They would become redundant in following commits, which move the
linting workloads over to pre-commit.
2019-09-24 17:03:31 +05:30
Pradyun Gedam 7d84255929
Switch order of lint and lint-py2 2019-08-27 13:56:13 +05:30
Pradyun Gedam 506a08bc38
Rename `tox lint-py3` to `tox lint`
Also update references to it, in Travis CI config and in documentation.
2019-08-27 13:55:20 +05:30
Christopher Hunt 5e97de4773 Ignore errors copying socket files for source installs (in Python 3). (#6844) 2019-08-21 02:19:02 -07:00
Pradyun Gedam 69706e8b2b
Merge branch 'master' into tox-docs-update 2019-07-31 12:27:12 +05:30
Pradyun Gedam c6da85a6eb
Move requirement files to tools/requirements/ 2019-07-30 17:01:05 +05:30
Sumana Harihareswara 365d602e3a Update tox docs-building Python version to 3.7. 2019-07-28 16:39:28 -04:00
Xavier Fernandez 8f45aee97a Fix line length & don't flake8 docs in python 2 2019-07-18 14:37:31 +02:00
Hugo 2c1010ee96 Drop support for EOL Python 3.4 2019-07-07 11:45:16 +03:00
SeongSoo Cho 17be5bfe81 Upgrade Sphinx version for Read the Docs (#6477) 2019-05-08 11:26:34 -04:00
Donald Stufft 21b759315f Don't use editable mode as it is not supported 2019-04-23 22:42:30 -04:00
Pradyun Gedam 5274d7544e
Remove workaround for #6057 2018-12-08 09:17:53 +05:30
Pradyun Gedam f5ae9597c4
Disable Mercurial Tests on Travis 2018-12-02 16:45:53 +05:30
Benoit Pierre 116c3b1c7e tox: define the minimal tox version required (#5914) 2018-10-24 11:14:14 -07:00
Benoit Pierre add3801163 tests: rework tests virtual environment
- cleanup virtualenv creation code
- ensure all testing virtual environments use a recent version
  of setuptools / wheel, making it easier to switch to custom
  versions of those, as well as reducing network accesses
- reduce size of testing virtual environment, slightly speeding
  up the testsuite
2018-10-18 23:28:37 +02:00
Benoit Pierre c9e47c9903 tox: fix environment setup
Ensure a stable version of pip is used for installing
dependencies, and not the version about to be tested.
2018-10-07 14:10:58 +02:00
Pradyun Gedam 9a2f1aa8a3
Pin to the older mypy version 2018-09-18 12:59:49 +05:30
Pradyun Gedam 20f672c4e6
Move conf.py into the html directory, to be compatible with RTD
Also add a small comment explaining why this has been done.
2018-08-22 16:33:16 +05:30
Pradyun Gedam d2e7377c0f
Reorganize pip's docs folder 2018-08-22 13:54:47 +05:30
Pradyun Gedam 60c203521f
Skip installation for tox jobs that don't need the in-developement pip 2018-08-13 10:56:54 +05:30
Pradyun Gedam b3473b329d
Merge branch 'master' into python-3.7 2018-07-24 23:08:09 +05:30
Pradyun Gedam 16cd301abb
🎨 for tox.ini 2018-07-24 13:03:36 +05:30
Paul Moore dd8cbf8da3 Fix a typo in tox.ini 2018-07-21 18:49:08 +01:00