Skip to content

Commit

Permalink
Update dependencies (#797)
Browse files Browse the repository at this point in the history
* Update linting tools

Update flake8 from 3.8.3 to 4.0.1
Update black from 19.10b0 to 21.10b0
Update mypy from 0.782 to 0.910
Update isort from 5.6.4 to 5.10.0

* Update pytest packages

Update pytest from 5.4.3 to 6.1.2 (we are not ready for 6.2.* yet due to
PytestUnraisableExceptionWarning)
Update pytest-cov from 2.10.0 to 3.0.0
Update pytest-asyncio from 0.12.0 to 0.16.0

* Update docker from 4.2.1 to 5.0.3

* Update cython from 0.29.20 to 0.29.24

* Update main dependencies

Update lz4 from 3.1.0 to 3.1.3
Update xxhash from 1.4.3 to 2.0.2
Update python-snappy from 0.5.4 to 0.6.0
Update gssapi from 1.6.5 to 1.7.2
Update dataclasses from 0.6 to 0.8

* Update diff-cover from 3.0.1 to 6.4.2

* Update doc dependencies

Update docutils from 0.16 to 0.18
Update pygments from 2.7.4 to 2.10.0
Update sphinx from 3.1.1 to 4.2.0
Update sphinxcontrib-asyncio from 0.2.0 to 0.3.0
Update sphinxcontrib-spelling from 5.1.1 to 7.2.1

Co-authored-by: pyup-bot <github-bot@pyup.io>
  • Loading branch information
ods and pyup-bot committed Nov 20, 2021
1 parent 901b2cb commit fcee7d1
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 38 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ lint:
false; \
fi
flake8 aiokafka tests setup.py
mypy $(FORMATTED_AREAS)
mypy --install-types --non-interactive $(FORMATTED_AREAS)

test: flake
py.test -s --show-capture=no --docker-image $(DOCKER_IMAGE) $(FLAGS) tests
Expand Down
1 change: 0 additions & 1 deletion docs/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ Examples
Manual commit <examples/manual_commit>
Group consumer <examples/group_consumer>
Custom partitioner <examples/custom_partitioner>
Python async for syntax <examples/python35_examples>
SSL usage <examples/ssl_consume_produce>
Local state consumer <examples/local_state_consumer>
Batch producer <examples/batch_produce>
Expand Down
30 changes: 15 additions & 15 deletions requirements-ci.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
-r requirements-cython.txt
flake8==3.8.3
black==19.10b0
mypy==0.782
isort[colors]==5.6.4
pytest==5.4.3
pytest-cov==2.10.0
pytest-asyncio==0.12.0
docker==4.2.1
lz4==3.1.0
xxhash==1.4.3
python-snappy==0.5.4
docutils==0.16
Pygments==2.7.4
gssapi==1.6.5
dataclasses==0.5; python_version<"3.7"
flake8==4.0.1
black==21.10b0
mypy==0.910
isort[colors]==5.10.0
pytest==6.1.2
pytest-cov==3.0.0
pytest-asyncio==0.16.0
docker==5.0.3
lz4==3.1.3
xxhash==2.0.2
python-snappy==0.6.0
docutils==0.18
Pygments==2.10.0
gssapi==1.7.2
dataclasses==0.8; python_version<"3.7"
async_generator==1.10; python_version<"3.7"
2 changes: 1 addition & 1 deletion requirements-cython.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Cython==0.29.20
Cython==0.29.24
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-r requirements-ci.txt
-r requirements-docs.txt

diff-cover==3.0.1
diff-cover==6.4.2
setuptools>=34.4.0
6 changes: 3 additions & 3 deletions requirements-docs.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-r requirements-cython.txt
Sphinx==3.1.1
sphinxcontrib-asyncio==0.2.0
sphinxcontrib-spelling==5.1.1
Sphinx==4.2.0
sphinxcontrib-asyncio==0.3.0
sphinxcontrib-spelling==7.2.1
alabaster==0.7.12
24 changes: 12 additions & 12 deletions requirements-win-test.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
-r requirements-cython.txt
flake8==3.8.3
black==19.10b0
mypy==0.782
isort[colors]==5.6.4
pytest==5.4.3
pytest-cov==2.10.0
pytest-asyncio==0.12.0
docker==4.2.1
lz4==3.1.0
xxhash==1.4.3
python-snappy==0.5.4
dataclasses==0.5; python_version<"3.7"
flake8==4.0.1
black==21.10b0
mypy==0.910
isort[colors]==5.10.0
pytest==6.1.2
pytest-cov==3.0.0
pytest-asyncio==0.16.0
docker==5.0.3
lz4==3.1.3
xxhash==2.0.2
python-snappy==0.6.0
dataclasses==0.8; python_version<"3.7"
async_generator==1.10; python_version<"3.7"
1 change: 0 additions & 1 deletion stubs/kafka/metrics/metrics.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from kafka.metrics import AnonMeasurable as AnonMeasurable, KafkaMetric as KafkaMetric, MetricConfig as MetricConfig, MetricName as MetricName
from kafka.metrics.stats import Sensor as Sensor
from typing import Any, Optional

logger: Any
Expand Down
6 changes: 3 additions & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def hosts(self):

if sys.platform != 'win32':

@pytest.yield_fixture(scope='session')
@pytest.fixture(scope='session')
def kafka_server(request, docker, docker_ip_address,
unused_port, session_id, ssl_folder):
image = request.config.getoption('--docker-image')
Expand Down Expand Up @@ -241,7 +241,7 @@ def kafka_server():
return


@pytest.yield_fixture(scope='class')
@pytest.fixture(scope='class')
def loop(request):
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
Expand All @@ -256,7 +256,7 @@ def loop(request):
asyncio.set_event_loop(None)


@pytest.yield_fixture(autouse=True)
@pytest.fixture(autouse=True)
def collect_garbage():
# This is used to have a better report on ResourceWarnings. Without it
# all warnings will be filled in the end of last test-case.
Expand Down

0 comments on commit fcee7d1

Please sign in to comment.