Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated so it shows the correct versions of Python #1515

Merged
merged 2 commits into from
Jan 26, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 5 additions & 7 deletions test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,21 @@ the test for vendor_package_pairs:

## Running tests on different versions of Python

Our CI currently runs tests on Python 3.6 and 3.7 under Linux.
Our CI currently runs tests on Python 3.7 - 3.10 under Linux.

The recommended way to do this yourself is to use python's `virtualenv`

You can set up virtualenv for all these environments:

```console
virtualenv -p python3.6 venv3.6
virtualenv -p python3.7 venv3.7
virtualenv -p python3.8 venv3.8
virtualenv -p python3.9 venv3.9
```

To activate one of these (the example uses 3.6), run the tests, and deactivate:
To activate one of these (the example uses 3.8), run the tests, and deactivate:

```console
source venv3.6/bin/activate
source venv3.8/bin/activate
python setup.py test
deactivate

Expand Down Expand Up @@ -145,5 +145,3 @@ pytest -v test/test_checkers.py -k python
```

## Known issues

If you're using Windows we **strongly** recommend also `pdftotext`. We experienced problems running tests without this. The best approach to do this is through [conda](https://docs.conda.io/projects/conda/en/latest/user-guide/install/windows.html) (click [here](https://anaconda.org/conda-forge/pdftotext) to find out how to install this package with conda).