diff --git a/Makefile b/Makefile deleted file mode 100644 index c0aa685ed47ac..0000000000000 --- a/Makefile +++ /dev/null @@ -1,30 +0,0 @@ -.PHONY : develop build clean clean_pyc doc lint-diff black test-scripts - -all: develop - -clean: - -python setup.py clean - -clean_pyc: - -find . -name '*.py[co]' -exec rm {} \; - -build: clean_pyc - python setup.py build_ext - -lint-diff: - git diff upstream/main --name-only -- "*.py" | xargs flake8 - -black: - black . - -develop: build - python -m pip install --no-build-isolation -e . - -doc: - -rm -rf doc/build doc/source/generated - cd doc; \ - python make.py clean; \ - python make.py html - -test-scripts: - pytest scripts diff --git a/doc/source/development/contributing_codebase.rst b/doc/source/development/contributing_codebase.rst index d0e918196beae..c60edd0d1c2b9 100644 --- a/doc/source/development/contributing_codebase.rst +++ b/doc/source/development/contributing_codebase.rst @@ -796,16 +796,16 @@ need to install ``pytest-xdist`` via:: pip install pytest-xdist -Two scripts are provided to assist with this. These scripts distribute -testing across 4 threads. +The ``-n`` flag then can be specified when running ``pytest`` to parallelize a test run +across the number of specified cores or ``auto`` to utilize all the available cores on your machine. -On Unix variants, one can type:: +.. code-block:: bash - test_fast.sh + # Utilize 4 cores + pytest -n 4 pandas -On Windows, one can type:: - - test_fast.bat + # Utilizes all available cores + pytest -n auto pandas This can significantly reduce the time it takes to locally run tests before submitting a pull request. diff --git a/test_fast.bat b/test_fast.bat deleted file mode 100644 index 85ce305ab2d64..0000000000000 --- a/test_fast.bat +++ /dev/null @@ -1,3 +0,0 @@ -:: test on windows -set PYTHONHASHSEED=314159265 -pytest --skip-slow --skip-network --skip-db -m "not single_cpu" -n 4 -r sXX pandas diff --git a/test_fast.sh b/test_fast.sh deleted file mode 100755 index 0120c712e3df8..0000000000000 --- a/test_fast.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -# Workaround for pytest-xdist flaky collection order -# https://github.com/pytest-dev/pytest/issues/920 -# https://github.com/pytest-dev/pytest/issues/1075 -export PYTHONHASHSEED=$(python -c 'import random; print(random.randint(1, 4294967295))') - -pytest pandas --skip-slow --skip-network --skip-db -m "not single_cpu" -n 4 -r sxX "$@"