Commit Graph

115 Commits

Author SHA1 Message Date
Mathieu Dupuy f7ae8f10a8 more cleaning 2023-10-11 13:33:12 +02:00
kalebmckale 486d003829 Update build to use exclusively pyproject.toml
- consolidates all of `setuptools` metadata and configuration as well
as `coverage` configuration within `pyproject.toml`.
- removes deprecated `setup.cfg` and `setup.py`.
- updates `run-tests.sh` to use 	`pyproject.toml` instead of
`setup.cfg` for `coverage` configuration.
2023-09-01 08:54:39 -04:00
Matt Davis 9848862927 Convert test runner to use pypiserver package as standalone process (#5284)
* Check point progress on moving tests to pypiserver.

* Allow other indexes to mimic the pypi json API for package hashes.

* Fix these tests that run on lower python versions only.

* Try adding the pypiserver to the github actions to only run once.

* Expand the scope of fixtures for pypiserver.

* try to accomedate microsoft runner.

* Windows networking troubles.

* Remove running as a background job.

* Try to condtionally invoke different start pypi-server commands

* Try to condtionally invoke different start pypi-server commands

* Try to condtionally invoke different start pypi-server commands

* Try to condtionally invoke different start pypi-server commands

* Try to condtionally invoke different start pypi-server commands

* Try to condtionally invoke different start pypi-server commands

* Try to condtionally invoke different start pypi-server commands

* Try to introduce pypi as the root index because setuptools-scm is not in our pypi artifacts.

* see if the windows tests run faster (and the other tests) by supplying waitress.

* Only use waitress on windows because the others are fast on the default.  Fix requests pollution.

* Supply a suitable Pipfile instead for these two failing tests.

* More requests resolver cross test contamination cleanup.

* remove problematic tests because even on my version of python 3.8.12 this does not work due to AttributeError: 'HTMLParser' object has no attribute 'unescape'

* fix mirror install test.

* Fix Pipfile.

* Fix Pipfile for real

* Fix tests

* Cleanup test naming and more test enhancements.

* Save this optimization for a subsequent PR.

* Cleanup the TemporaryDirectory between tests.

* resolve merge conflict.

* Cleanup path initalization -- it hsould always be a TemporaryDirectory for tests that gets cleanedup.

* Cleanup path initalization -- it hsould always be a TemporaryDirectory for tests that gets cleanedup.

* tableflip on those requests tests that read the setup metadata in reqlib from other tests.

* Update developer documentation for running tests.

* add news fragment.

* Try gunicorn perfoormance for linux/mac

* Only use gunicorn on linux based on the results of last run.
2022-09-05 10:19:12 -04:00
Matt Davis 5d845dc6b9 Added pytest-cov and addressed outdated references to pip-tools (#5038)
* Add pytest-cov; Remove code references to pip-tools and refactor method _build_package_list

* Regenerate lock file.

* Add back required typing-extensions, not sure how it got dropped from locking previously.

* Adopt the setup.cfg for coverage config.

* Actually pin to the version of click we have vendored in.

* Do not adopt coverage for CI since it slows everything down.  Fix py36 dependency pinning.

* Drop support for 3.6 in this PR.

* No need to exclude the vendor and patched directory from the coverage reprot.
2022-04-14 08:59:27 +02:00
Oz N Tiram 39a16f14da Fix run-tests.sh
The script was very much neglected ...
For example:

PIP_PROCESS_DEPENDENCY_LINKS

Is no longer used in pip. The TEST_SUITE variable was not used anywhere.

Dropped Python2.7 and added a variable to specify python version.
Set sensible defaults to all variables, and allow overriding them
from the calling shell, e.g.:
```
PIPENV_PYTHON=3.9 ./run-tests.sh
```

This was tested to work both on alpine linux and debian.
2022-01-12 23:37:26 +01:00
Frost Ming 72b571bd06 Change multiple styles in CLI output 2020-11-02 11:11:54 +08:00
Dan Ryan 1adb502b18 Update test runner code and contribution guide
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-06-03 22:01:09 -04:00
Dan Ryan f8a51024e0 Install local tests extra for test runners
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-02-18 16:29:33 -05:00
Dan Ryan d407ac4740 Add submodule sync and update to scripts
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-11-18 23:55:50 -05:00
Dan Ryan a6fb4a7945 Update tests
Signed-off-by: Dan Ryan <dan@danryan.co>

Fix windows testing

Signed-off-by: Dan Ryan <dan@danryan.co>

Update runner

Signed-off-by: Dan Ryan <dan@danryan.co>

Fix powershell script

Signed-off-by: Dan Ryan <dan@danryan.co>

Fix git ssl issues

Signed-off-by: Dan Ryan <dan@danryan.co>

Fix test name

Signed-off-by: Dan Ryan <dan@danryan.co>

Update test publication

Signed-off-by: Dan Ryan <dan@danryan.co>

Only run py36 py37 and py27 for testing

Signed-off-by: Dan Ryan <dan@danryan.co>

Enable linux builds

Signed-off-by: Dan Ryan <dan@danryan.co>

triple parallel

Signed-off-by: Dan Ryan <dan@danryan.co>

Update linux tests

Signed-off-by: Dan Ryan <dan@danryan.co>

Make sure home directory exists

Signed-off-by: Dan Ryan <dan@danryan.co>

Use pipenv to run tests

Signed-off-by: Dan Ryan <dan@danryan.co>

add vendoring script to linux build scripts

Signed-off-by: Dan Ryan <dan@danryan.co>

fix vendoring test

Signed-off-by: Dan Ryan <dan@danryan.co>

Lets try it this way

Signed-off-by: Dan Ryan <dan@danryan.co>

Syntax issue

Signed-off-by: Dan Ryan <dan@danryan.co>

Prune vsts-ci folder from manifest

Signed-off-by: Dan Ryan <dan@danryan.co>

Separate manifest step from vendoring

Signed-off-by: Dan Ryan <dan@danryan.co>

Update vsts vendoring script

Signed-off-by: Dan Ryan <dan@danryan.co>

Syntax error..

Signed-off-by: Dan Ryan <dan@danryan.co>

fix vendoring

Signed-off-by: Dan Ryan <dan@danryan.co>

gah wrong version spec!

Signed-off-by: Dan Ryan <dan@danryan.co>

fix vsts

Signed-off-by: Dan Ryan <dan@danryan.co>

test updates

Signed-off-by: Dan Ryan <dan@danryan.co>

VSTS Syntax error...

Signed-off-by: Dan Ryan <dan@danryan.co>

and fix windows runner

Signed-off-by: Dan Ryan <dan@danryan.co>

maybe...

Signed-off-by: Dan Ryan <dan@danryan.co>

does this one work?

Signed-off-by: Dan Ryan <dan@danryan.co>

how about now

Signed-off-by: Dan Ryan <dan@danryan.co>

fix manifest

Signed-off-by: Dan Ryan <dan@danryan.co>

hmm now windows fails?

Signed-off-by: Dan Ryan <dan@danryan.co>

hmmmm...

Signed-off-by: Dan Ryan <dan@danryan.co>

Conditonal testing uses its own special phase

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-08-28 20:44:37 -04:00
Dan Ryan ddb6065ee2 Final fixes to vendoring
- Add news
- upate test runner
- Unvendor typing
- Fix environment error
- Fix click completion patch
- update vendoring script
- Install flit with vendoring script for wheels
- disable build isolation also

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-08-27 16:01:11 -04:00
Dan Ryan d5836ed3b0 Just strip https from test mirror index
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-08-22 03:10:34 -04:00
Dan Ryan e462444d15 Export CA bundle properly
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-08-22 02:53:43 -04:00
Dan Ryan b0085bbd97 configure cert bundle
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-08-22 02:50:58 -04:00
Dan Ryan e934ccc73c Minor adjustments to get CI passing
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-08-22 02:24:51 -04:00
Dan Ryan c6a3284d30 Updated buildkite to set home properly
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-07-25 17:03:41 -04:00
Dan Ryan 26c34641d1 Updated buildkite to echo out the path
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-07-25 17:03:41 -04:00
Jacob Hayes dd4b4be175 Remove explicit sets of PYPI_VENDOR_DIR and let integration conftest do its thing 2018-07-11 13:25:02 -05:00
kennethreitz c801283d3f fix test script 2018-07-03 22:32:34 -04:00
kennethreitz b87be9c72a fix docker stuff 2018-07-03 20:09:36 -04:00
kennethreitz 2addee4fd6 3.7 2018-07-03 08:48:18 -04:00
Dan Ryan 4b8d9ffd33 Pass -y to pip uninstall for buildkite
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-29 12:45:14 -04:00
Dan Ryan 95e932e668 update buildkite
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-28 21:21:37 -04:00
Dan Ryan 511d0dd293 Fix buildkite
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-28 21:17:26 -04:00
Dan Ryan d2dbbf4363 Update vendoring scripts
- Update appveyor script to respect PR updates
- Add vendoring script to CI
- Closes #2428
2018-06-27 21:07:54 -04:00
Dan Ryan 6a15ee2456 Test updates
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-27 18:52:13 -04:00
Dan Ryan b03113906f Don't use user mode to run tests
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-18 00:35:13 -04:00
kennethreitz 747317c5f6 tests
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-05-05 21:18:22 -04:00
kennethreitz 3bc5cf5d1e changes
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-05-05 21:14:15 -04:00
kennethreitz 6efe2136bd subtle improvement
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-05-05 21:12:39 -04:00
kennethreitz 32818e9236 cleanups
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-05-05 21:11:25 -04:00
kennethreitz 692df5fd2c unset cI
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-05-05 21:09:35 -04:00
kennethreitz 239fa2e657 adjustments
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-05-05 21:06:44 -04:00
kennethreitz c766c2c5d7 don't uninstall pipenv
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-05-05 20:59:19 -04:00
Dan Ryan e8efe3fd72 Add encoding to jenkins test runner
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-04-16 23:15:04 -04:00
Dan Ryan a36239ff68 Make all imports relative
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-04-13 21:02:43 -04:00
luz.paz 63f7e988f7 Misc. typos
Found via `codespell -q 3`
2018-03-27 13:42:27 -04:00
Tzu-ping Chung b6a333be87 Set -o pipefail so errors propagate through piping
This prevents the pipe syntax in the $TAP_OUTPUT branch from masking
the underlying pytest failure.
2018-03-26 23:18:37 -04:00
kennethreitz a4380b4f7b tests upgrade
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-12 09:37:36 -04:00
kennethreitz d77fa932d1 fix tests 2018-03-12 07:48:16 -04:00
kennethreitz a2866d631f run-tests
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-11 15:22:26 -04:00
kennethreitz 651afb480f improve test script
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-11 15:20:36 -04:00
kennethreitz 7904e8ed35 test both 2.7 and 3.6 locally, with pipenv! 2018-03-11 15:12:18 -04:00
kennethreitz f6dd7b5148 test suite downgrade
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-11 10:36:16 -04:00
kennethreitz 6574e97a5b clear caches
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-10 10:09:55 -05:00
kennethreitz 2829b96a1c upgrade all the things
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-10 10:03:24 -05:00
kennethreitz 08b8484d68 don't do that
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-09 20:06:41 -05:00
kennethreitz d2cc5f443d cleanup script
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-07 06:37:07 -05:00
kennethreitz 571e5f9a6e script cleanup
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-07 06:36:00 -05:00
kennethreitz a2f41da559 script cleanup
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-07 06:35:35 -05:00