Add cython to setup_requires and pyproject.toml

This commit is contained in:
Cosimo Lupo 2019-11-29 17:19:33 +00:00
parent 3452a7e7bf
commit 2bf1b6729e
No known key found for this signature in database
GPG key ID: 20D4A261E4A0E642
3 changed files with 9 additions and 7 deletions

View file

@ -46,8 +46,8 @@ environment:
PYTHON_VERSION: "3.8"
PYTHON_ARCH: "64"
matrix:
fast_finish: true
# matrix:
# fast_finish: true
init:
- "ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%"
@ -75,17 +75,17 @@ install:
# Install build and test dependencies
- "%CMD_IN_ENV% pip install cython setuptools_scm setuptools_scm_git_archive sympy unittest2 pytest"
# We skip the build step as the `built_ext` command is implicitly called
# when running `python setup.py test`
build: off
build:
# create binary packages
- "%CMD_IN_ENV% pip wheel -w wheelhouse ."
# install wheel so we can test it
- pip install --no-index --find-links wheelhouse pyclipper
test_script:
# Run the project tests
- "%CMD_IN_ENV% pytest"
after_test:
# If tests are successful, create binary packages
- "%CMD_IN_ENV% pip wheel -w wheelhouse ."
- ps: "ls wheelhouse"
artifacts:

View file

@ -3,4 +3,5 @@ requires = [
"setuptools",
"wheel",
"setuptools_scm",
"cython",
]

View file

@ -91,6 +91,7 @@ setup(
],
ext_modules=[ext],
setup_requires=[
'cython>=0.28',
'setuptools_scm>=1.11.1',
] + pytest_runner,
tests_require=['unittest2', 'pytest'],