Commit Graph

115 Commits

Author SHA1 Message Date
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
Pradyun Gedam 26d45a667d
Document and test support for Py3.7 2018-07-03 01:01:15 +05:30
Pradyun Gedam 4ddc705d20
Simplify linter configuration to be consistent 2018-06-25 17:03:42 +05:30
Pradyun Gedam 69783941c7
Move linting requirements to a requirements file 2018-06-16 00:08:33 +05:30
Pradyun Gedam c57705d1e4
Move requirements files to tools/
* Rename dev-requirements to tests-requirements
2018-06-15 23:36:28 +05:30
Pradyun Gedam 8cb234c7c2
Simplify the call to mypy
This makes no functional difference, it's just cleaner.
2018-06-14 23:44:02 +05:30
Pradyun Gedam 1b07ea3725
Rework Travis CI configuration
- Use "group" terminology
- Remove tox factors
- Infer TOXENV from Travis environment (removes need to specify it)
2018-05-30 00:44:21 +05:30
Hugo 61b011293b Run functional tests for install in separate jobs (#5436)
Speeds up the end-to-end running time for Travis tests.

* Adds a new jobs to test_install* separately (using -k "[not] test_install")
* More generic cache ignore
* Move slower Python 3.5 tests before 3.4
* Factor tox envs
2018-05-26 16:46:12 +05:30
Donald Stufft 90b3db476f Drop support for Python 3.3 2018-05-17 13:34:48 -04:00
Pradyun Gedam afbbacf136
Add a coverage job for Python 3 to tox 2017-11-14 12:03:01 +05:30
Benoit Pierre fb56eb9b0a tox: fix handling of flaky tests during CI builds 2017-11-04 21:55:11 +01:00
Pradyun Gedam b96bde47c6
docs,tox: Start using a requirements file 2017-10-08 20:44:43 +05:30
Pradyun Gedam df083c7916 Polish docs and change theme (#4758) 2017-10-07 17:45:27 +01:00