Add cython to setup_requires and pyproject.toml
This commit is contained in:
parent
3452a7e7bf
commit
2bf1b6729e
3 changed files with 9 additions and 7 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -3,4 +3,5 @@ requires = [
|
|||
"setuptools",
|
||||
"wheel",
|
||||
"setuptools_scm",
|
||||
"cython",
|
||||
]
|
||||
|
|
|
|||
1
setup.py
1
setup.py
|
|
@ -91,6 +91,7 @@ setup(
|
|||
],
|
||||
ext_modules=[ext],
|
||||
setup_requires=[
|
||||
'cython>=0.28',
|
||||
'setuptools_scm>=1.11.1',
|
||||
] + pytest_runner,
|
||||
tests_require=['unittest2', 'pytest'],
|
||||
|
|
|
|||
Loading…
Reference in a new issue