Skip to content

Commit

Permalink
check cytonize some modules (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
sonic182 committed Jan 24, 2021
1 parent df620c1 commit 8ea587b
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ python:
install:
- pip install -r requirements.txt
- pip install -e .[test]
- python setup.py build_ext --inplace
script:
- pytest --cov=aiosonic
after_success:
Expand Down
2 changes: 1 addition & 1 deletion aiosonic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ async def _do_request(urlparsed: ParseResult,
else:
connection.writer.write(body)

response = HttpResponse(timeouts=timeouts)
response = HttpResponse()

# get response code and version
try:
Expand Down
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ steps:
pip install --upgrade pip setuptools wheel
pip install -r requirements.txt
pip install -e ".[test]"
python setup.py build_ext --inplace
pytest --cov=aiosonic --doctest-modules --junitxml=junit/test-results.xml --cov-report=xml --cov-report=html
timeoutInMinutes: 5
displayName: 'Run tests'
Expand Down
1 change: 1 addition & 0 deletions requirements.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
chardet
h2
Cython
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
#
chardet==3.0.4
# via -r requirements.in
cython==0.29.21
# via -r requirements.in
h2==4.0.0
# via -r requirements.in
hpack==4.0.0
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import re
from setuptools import setup
from Cython.Build import cythonize


RGX = re.compile(r'([\w-]+[<>=]{1}=[\d.\w]+)')
Expand Down Expand Up @@ -69,6 +70,7 @@ def _map_func(dependency):
'Programming Language :: Python :: 3.7',
],
setup_requires=['pytest-runner'],
ext_modules = cythonize("aiosonic/*.pyx"),
install_requires=requirements('./requirements.txt'),
extras_require={
'test': add_marks(
Expand Down

0 comments on commit 8ea587b

Please sign in to comment.