Skip to content

Commit

Permalink
Add cython to setup_requires and pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
anthrotype committed Nov 29, 2019
1 parent 3452a7e commit 2bf1b67
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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%"
Expand Down Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ requires = [
"setuptools",
"wheel",
"setuptools_scm",
"cython",
]
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ def run(self):
],
ext_modules=[ext],
setup_requires=[
'cython>=0.28',
'setuptools_scm>=1.11.1',
] + pytest_runner,
tests_require=['unittest2', 'pytest'],
Expand Down

0 comments on commit 2bf1b67

Please sign in to comment.