build: Create tox environments using a known Cython version (#408)

This change causes Tox to run the project's setup.py in a virtualenv
(default path is .tox/.package). The required version of Cython is
installed, rather than whatever version is installed system wide.
This commit is contained in:
Alex Willmer 2021-01-27 01:11:32 +00:00 committed by GitHub
parent 3b71818bb0
commit 02e1f7623c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 0 deletions

8
pyproject.toml Normal file
View file

@ -0,0 +1,8 @@
[build-system]
requires = [
# Also declared in requirements.txt, if updating here please also update
# there
"Cython~=0.29.13",
"setuptools >= 35.0.2",
]
build-backend = "setuptools.build_meta"

View file

@ -1 +1,2 @@
# Also declared in pyproject.toml, if updating here please also update there
Cython~=0.29.13

View file

@ -5,6 +5,7 @@ envlist =
{pypy,pypy3}-pure,
py27-x86,
py34-x86,
isolated_build = true
[variants:pure]
setenv=