Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merging aio-libs/aiokafka into robinhood/aiokafka 1.1 #22

Open
wants to merge 186 commits into
base: 1.1
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
186 commits
Select commit Hold shift + click to select a range
9ed7a92
Added support for max_poll_interval_ms and rebalance_timeout_ms settings
tvoinarovskyi Feb 23, 2019
9ba5e64
Changed to a simpler check for max_poll_interval_ms
tvoinarovskyi Feb 23, 2019
c44ef4b
Fix tests
tvoinarovskyi Feb 23, 2019
758b246
Fixed flake errors
tvoinarovskyi Mar 3, 2019
775fdb5
Update flake8 from 3.7.6 to 3.7.7
pyup-bot Mar 4, 2019
07b2e14
Update flake8 from 3.7.6 to 3.7.7
pyup-bot Mar 4, 2019
6f20c60
Update cython from 0.29.5 to 0.29.6
pyup-bot Mar 4, 2019
fee39df
Update cython from 0.29.5 to 0.29.6
pyup-bot Mar 4, 2019
364d3cf
Update cython from 0.29.5 to 0.29.6
pyup-bot Mar 4, 2019
59d2def
Fix code for v0.9.0
tvoinarovskyi Mar 5, 2019
390588a
Merge pull request #485 from aio-libs/pyup-scheduled-update-2019-03-04
tvoinarovskyi Mar 5, 2019
0afa1ef
Merge pull request #482 from aio-libs/heartbeat_refactor
tvoinarovskyi Mar 5, 2019
fe19382
SASL GSSAPI/Kerberos support
jsurloppe Jan 16, 2019
c38c1f5
direct usage of data instead of wrapper
jsurloppe Jan 17, 2019
c15b4aa
Isolate SASL in an executor and add missing param
jsurloppe Jan 23, 2019
8c37c83
add kdc in docker and related configuration
jsurloppe Mar 2, 2019
d2cd233
edit kdc docker conf and gssapi unit test
jsurloppe Mar 3, 2019
a25fed1
Added support for MacOSX implementation of ktutil
tvoinarovskyi Mar 5, 2019
f8d94c2
Refactor code of authenticators
tvoinarovskyi Mar 5, 2019
bba3492
Added krb5-user to travis
tvoinarovskyi Mar 5, 2019
74fda69
Fix subprocess for ktutil on linux. Temporary limit test runner to de…
tvoinarovskyi Mar 9, 2019
45e34dc
Convert Posix paths to str explicitly
tvoinarovskyi Mar 9, 2019
7940212
Fix issue with SaslAuthenticate degrading to 0 version on 2nd request
tvoinarovskyi Mar 9, 2019
831d048
Added support for 0.9 broker with GSSAPI only
tvoinarovskyi Mar 9, 2019
5c06411
Add unstaged docker/scripts/kafka_server_gssapi_jaas.conf
tvoinarovskyi Mar 9, 2019
a8c731f
Merge pull request #475 from aio-libs/add_sasl
tvoinarovskyi Mar 9, 2019
2f20350
Bumpversion to 0.5.1. SASL related release
tvoinarovskyi Mar 10, 2019
02fb661
Update sphinx from 1.8.4 to 1.8.5
pyup-bot Mar 11, 2019
1b21e28
Merge pull request #488 from aio-libs/pyup-scheduled-update-2019-03-11
tvoinarovskyi Mar 11, 2019
24344a1
fix event_waiter reference before assignment
romantolkachyov May 7, 2019
1630b33
correction to mypy type comment.
May 8, 2019
e8a2a64
Merge pull request #504 from romantolkachyov/patch-1
tvoinarovskyi May 14, 2019
075adab
Merge pull request #505 from AustralianSynchrotron/master
tvoinarovskyi May 14, 2019
c6f629f
Update setup.py
bmoscon May 14, 2019
b5760e6
Merge pull request #508 from bmoscon/master
tvoinarovskyi May 24, 2019
9bbe71f
Minor doc fix
Jun 23, 2019
0455651
Merge pull request #519 from aio-libs/minor_doc_fix
tvoinarovskyi Jun 23, 2019
2ef7f19
Added Kafka error to the list of connection errors
Jun 23, 2019
ac1a8b9
Merge pull request #520 from aio-libs/fix_issue517
tvoinarovskyi Jun 23, 2019
d6e5dc7
Bumpversion to 0.5.2. Minor bugfixes
Jun 23, 2019
16e6b00
Update pytest from 4.3.0 to 4.6.3
pyup-bot Jun 24, 2019
e3f2240
Update pytest from 4.3.0 to 4.6.3
pyup-bot Jun 24, 2019
64d4dc6
Update pytest-cov from 2.6.1 to 2.7.1
pyup-bot Jun 24, 2019
8507315
Update pytest-cov from 2.6.1 to 2.7.1
pyup-bot Jun 24, 2019
97cd2dc
Update docker from 3.7.0 to 4.0.2
pyup-bot Jun 24, 2019
b858e65
Update lz4 from 2.1.6 to 2.1.10
pyup-bot Jun 24, 2019
233d024
Update lz4 from 2.1.6 to 2.1.10
pyup-bot Jun 24, 2019
2865e54
Update python-snappy from 0.5.3 to 0.5.4
pyup-bot Jun 24, 2019
46fc635
Update python-snappy from 0.5.3 to 0.5.4
pyup-bot Jun 24, 2019
6da4f36
Update cython from 0.29.6 to 0.29.10
pyup-bot Jun 24, 2019
865b9c9
Update cython from 0.29.6 to 0.29.10
pyup-bot Jun 24, 2019
f458725
Update cython from 0.29.6 to 0.29.10
pyup-bot Jun 24, 2019
3d426da
Update pygments from 2.3.1 to 2.4.2
pyup-bot Jun 24, 2019
b951da6
Update diff-cover from 1.0.6 to 2.2.0
pyup-bot Jun 24, 2019
524783c
Update sphinx from 1.8.5 to 2.1.2
pyup-bot Jun 24, 2019
77be66a
Update sphinxcontrib-spelling from 4.2.0 to 4.3.0
pyup-bot Jun 24, 2019
f13a916
Merge pull request #521 from aio-libs/pyup-scheduled-update-2019-06-24
tvoinarovskyi Jun 25, 2019
7d18910
Change all code base to async-await
tvoinarovskyi Jun 28, 2019
ba4646c
Fix appveyor
tvoinarovskyi Jun 28, 2019
8b0f881
Try to fix coverage
tvoinarovskyi Jun 29, 2019
61fa44e
Merge pull request #522 from aio-libs/feature/change_to_await
tvoinarovskyi Jun 29, 2019
b0631bc
Update pytest from 4.6.3 to 5.0.0
pyup-bot Jul 1, 2019
9ef6621
Update pytest from 4.6.3 to 5.0.0
pyup-bot Jul 1, 2019
c7bf677
Update cython from 0.29.10 to 0.29.11
pyup-bot Jul 1, 2019
3bef69b
Update cython from 0.29.10 to 0.29.11
pyup-bot Jul 1, 2019
e9e98ea
Update cython from 0.29.10 to 0.29.11
pyup-bot Jul 1, 2019
2e92b44
Update diff-cover from 2.2.0 to 2.3.0
pyup-bot Jul 1, 2019
0815837
#523: add commit.last_poll_timestamp(partition)
aure-olli Jul 5, 2019
9b8c92a
Merge pull request #526 from aure-olli/timestamp_pr
tvoinarovskyi Jul 6, 2019
1c59f57
Merge pull request #524 from aio-libs/pyup-scheduled-update-2019-07-01
tvoinarovskyi Jul 6, 2019
706422d
Better logging for bad CRC
Jul 10, 2019
3fd2db7
Message Accumulator: add_message being recursive eventually overflows
ask Jul 11, 2019
fda2423
Consumer.seek_to_committed now returns mapping of committed offsets
ask Jul 11, 2019
9756b33
Merge pull request #530 from ask/accumulator_add_message_nonrecursive
tvoinarovskyi Jul 13, 2019
f96bc6e
Update flake8 from 3.7.7 to 3.7.8
pyup-bot Jul 22, 2019
489a49f
Update flake8 from 3.7.7 to 3.7.8
pyup-bot Jul 22, 2019
233f3dd
Update pytest from 5.0.0 to 5.0.1
pyup-bot Jul 22, 2019
f22897f
Update pytest from 5.0.0 to 5.0.1
pyup-bot Jul 22, 2019
756a9ab
Update cython from 0.29.11 to 0.29.12
pyup-bot Jul 22, 2019
77b65e3
Update cython from 0.29.11 to 0.29.12
pyup-bot Jul 22, 2019
5f3204b
Update cython from 0.29.11 to 0.29.12
pyup-bot Jul 22, 2019
61b5c9a
Update docutils from 0.14 to 0.15
pyup-bot Jul 22, 2019
f83e522
Merge pull request #532 from aio-libs/pyup-scheduled-update-2019-07-22
tvoinarovskyi Jul 28, 2019
b2ca1d6
Merge pull request #529 from ask/A_crc_logging
tvoinarovskyi Jul 28, 2019
6f00960
Merge pull request #531 from ask/seek_to_committed_return_new_offsets
tvoinarovskyi Jul 28, 2019
94f9889
Return run for all tests
tvoinarovskyi Jul 28, 2019
e4ab2d6
Fix fstring for CRC
tvoinarovskyi Jul 28, 2019
b371bdc
Merge pull request #533 from aio-libs/run_all_tests
tvoinarovskyi Jul 28, 2019
a75eaf0
Add backoff on fetcher
tvoinarovskyi Jul 28, 2019
ef883b1
Merge pull request #534 from aio-libs/issue496
tvoinarovskyi Jul 28, 2019
14860ae
Fix documentation for benchmark
abhishekray07 Aug 2, 2019
fc2884d
Merge pull request #537 from abhishekray07/fix_perf_documentation
tvoinarovskyi Aug 11, 2019
f422d91
Fix typo in docs
pablogamboa Aug 13, 2019
7253e21
Merge pull request #541 from pablogamboa/patch-1
tvoinarovskyi Aug 17, 2019
510f9ba
Fix typos, spelling, grammar, etc
jeffwidman Aug 21, 2019
a6b66c7
Delete old benchmark file
jeffwidman Aug 21, 2019
4bee1fe
sugger --> sugar
jeffwidman Aug 21, 2019
073d08b
Update pytest from 5.0.1 to 5.1.2
pyup-bot Sep 2, 2019
dcb520c
Update pytest from 5.0.1 to 5.1.2
pyup-bot Sep 2, 2019
58672fc
Update xxhash from 1.3.0 to 1.4.1
pyup-bot Sep 2, 2019
60a29e7
Update xxhash from 1.3.0 to 1.4.1
pyup-bot Sep 2, 2019
48abb05
Update cython from 0.29.12 to 0.29.13
pyup-bot Sep 2, 2019
5916bca
Update cython from 0.29.12 to 0.29.13
pyup-bot Sep 2, 2019
22bee60
Update cython from 0.29.12 to 0.29.13
pyup-bot Sep 2, 2019
955969b
Update docutils from 0.15 to 0.15.2
pyup-bot Sep 2, 2019
1a1671a
Update gssapi from 1.5.1 to 1.6.1
pyup-bot Sep 2, 2019
6abddbe
Update sphinx from 2.1.2 to 2.2.0
pyup-bot Sep 2, 2019
7aaf0f9
Merge pull request #550 from aio-libs/pyup-scheduled-update-2019-09-02
tvoinarovskyi Sep 4, 2019
0cf76ae
Merge pull request #547 from jeffwidman/patch-3
tvoinarovskyi Sep 4, 2019
c0fa11f
Merge pull request #545 from jeffwidman/patch-1
tvoinarovskyi Sep 4, 2019
f69b337
added headers param to Producer.send_and_wait
megabotan Sep 5, 2019
42526b0
Upgrade to kafka-python 1.4.7.
originalgremlin Oct 4, 2019
b898ccb
Add news fragment for changes.
originalgremlin Oct 4, 2019
d5fa42b
Update pytest from 5.1.2 to 5.2.1
pyup-bot Oct 14, 2019
dc3c538
Update pytest from 5.1.2 to 5.2.1
pyup-bot Oct 14, 2019
2d9687b
Update pytest-cov from 2.7.1 to 2.8.1
pyup-bot Oct 14, 2019
5a70f90
Update pytest-cov from 2.7.1 to 2.8.1
pyup-bot Oct 14, 2019
db156b8
Update docker from 4.0.2 to 4.1.0
pyup-bot Oct 14, 2019
5dc04c4
Update lz4 from 2.1.10 to 2.2.1
pyup-bot Oct 14, 2019
97ec418
Update lz4 from 2.1.10 to 2.2.1
pyup-bot Oct 14, 2019
33dfd35
Update xxhash from 1.4.1 to 1.4.2
pyup-bot Oct 14, 2019
0d15d96
Update xxhash from 1.4.1 to 1.4.2
pyup-bot Oct 14, 2019
693d6c7
fix typo in error handling code sample
ultrabug Oct 17, 2019
1407754
Merge pull request #563 from ultrabug/patch-1
tvoinarovskyi Oct 17, 2019
fa772b4
Merge pull request #553 from megabotan/add_headers_param_to_send_and_…
tvoinarovskyi Oct 17, 2019
04d1c82
Merge pull request #558 from whiterabbit-ai/upgrade-to-kafka-1.4.7
tvoinarovskyi Oct 17, 2019
8ebde79
Merge pull request #560 from aio-libs/pyup-scheduled-update-2019-10-14
tvoinarovskyi Oct 17, 2019
4b2e209
docs: fix typo tranactional -> transactional
ultrabug Jan 19, 2020
96159c6
Merge pull request #573 from numberly/tranactional_typo
tvoinarovskyi Jan 20, 2020
5d21dbc
Fixing Timeout on metadata request to broker #576
MichalMazurek Jan 31, 2020
335a99d
chore: adding changes to CHANGES.rst
MichalMazurek Jan 31, 2020
28d3806
Removed benchmark file as asked
tvoinarovskyi Feb 14, 2020
30ee801
Merge pull request #546 from jeffwidman/patch-2
tvoinarovskyi Feb 14, 2020
bea8d12
Merge pull request #577 from MichalMazurek/timeout-on-broker-metadata…
tvoinarovskyi Feb 14, 2020
8381239
updated test_commit_failed_scenarios with the case when RequestTimedO…
FedirAlifirenko Feb 14, 2020
2142978
handle RequestTimedOutError in coordinator._do_commit_offsets() metho…
FedirAlifirenko Feb 14, 2020
d6e8673
updated CHANGES.rst
FedirAlifirenko Feb 14, 2020
fc2da9c
Merge pull request #585 from FedirAlifirenko/catch_request_timeout_in…
tvoinarovskyi Feb 17, 2020
ad2ee26
Update flake8 from 3.7.8 to 3.7.9
pyup-bot Feb 17, 2020
25efcf0
Update flake8 from 3.7.8 to 3.7.9
pyup-bot Feb 17, 2020
79c0fb2
Update pytest from 5.2.1 to 5.3.5
pyup-bot Feb 17, 2020
fc4f293
Update pytest from 5.2.1 to 5.3.5
pyup-bot Feb 17, 2020
2064d61
Update docker from 4.1.0 to 4.2.0
pyup-bot Feb 17, 2020
4c2122e
Update xxhash from 1.4.2 to 1.4.3
pyup-bot Feb 17, 2020
b21e21b
Update xxhash from 1.4.2 to 1.4.3
pyup-bot Feb 17, 2020
b348df9
Update cython from 0.29.13 to 0.29.15
pyup-bot Feb 17, 2020
870bd49
Update cython from 0.29.13 to 0.29.15
pyup-bot Feb 17, 2020
850cf10
Update cython from 0.29.13 to 0.29.15
pyup-bot Feb 17, 2020
8af3349
Update docutils from 0.15.2 to 0.16
pyup-bot Feb 17, 2020
cfe8abd
Update pygments from 2.4.2 to 2.5.2
pyup-bot Feb 17, 2020
7ff7b80
Update diff-cover from 2.3.0 to 2.6.0
pyup-bot Feb 17, 2020
e98f7b1
Update sphinx from 2.2.0 to 2.4.1
pyup-bot Feb 17, 2020
2e1f708
Merge pull request #586 from aio-libs/pyup-scheduled-update-2020-02-17
tvoinarovskyi Feb 18, 2020
c1092e6
Add debug logs to CI builds too better debug behaviour (#589)
tvoinarovskyi Feb 29, 2020
4580fdb
Fix spelling errors using codespell (#567)
mauritsvdvijgh Mar 1, 2020
dddc19c
Update issue templates
tvoinarovskyi Mar 1, 2020
7b6f9fe
kafka-python 2.0 support (#593)
yumendy Mar 9, 2020
758d5b8
WIP: SCRAM-SHA-256 and -512 (#588)
SukiCZ Mar 9, 2020
041a1e3
Some ci fixes (#591)
tvoinarovskyi Mar 10, 2020
f2fd596
Add some missing test, that was in a different PR for some reason. (#…
tvoinarovskyi Mar 15, 2020
45c3b4b
Clarify auto_offset_reset usage. (#601)
dargor Apr 9, 2020
34b7ada
Update issue templates
tvoinarovskyi Apr 23, 2020
8d6ed13
Fix issue #536 (#539)
tvoinarovskyi Apr 23, 2020
1094d37
Allow omitting loop argument in constructor. Fixes #544 (#610)
tvoinarovskyi May 11, 2020
deb9e06
Fix issue where UnknownMemberId was actually raised to the user inste…
tvoinarovskyi May 11, 2020
d45e832
Ignore debug package generation on bdist_rpm command (#600)
May 15, 2020
88a5830
Add pull_request_template.md file (#614)
tvoinarovskyi May 15, 2020
931e22f
Add context managers to both Consumer and Producer (#613)
tvoinarovskyi May 15, 2020
d4f7681
Wrap up CHANGES for release (#615)
tvoinarovskyi May 15, 2020
39d734a
Bump version to 0.6.0
tvoinarovskyi May 15, 2020
120957f
Set language_level to version 3. (#619)
jameshilliard May 21, 2020
10bdd29
Update Cython to version 0.29.19 (#620)
jameshilliard May 21, 2020
fa9868c
Consumer memory leak in idle state (#629)
iamsinghrajat Jun 10, 2020
68be906
Use repr for metadata error print in logs (#631)
tvoinarovskyi Jun 10, 2020
ea1aab8
Added SASL/OAuthBearer (#630)
oulydna Jun 17, 2020
de5f8dc
Update pull_request_template.md
tvoinarovskyi Jun 17, 2020
a54ba3f
Add coverage confusing comment
tvoinarovskyi Jun 18, 2020
ccbd39e
Try out GitHub Actions as Travis alternative (#635)
tvoinarovskyi Jun 22, 2020
597ab1c
Fix test command (#636)
tvoinarovskyi Jun 22, 2020
43bc30b
Remove debug comment in consumer
tvoinarovskyi Jun 22, 2020
4eb0934
gssapi 1.6.6 is yanked, but pyupbot tries to update it
tvoinarovskyi Jun 23, 2020
5c12f57
Scheduled weekly dependency update for week 25 (#637)
pyup-bot Jun 23, 2020
84e2a98
Add black and isort as formatting utility for the project. Start mypy…
tvoinarovskyi Jun 24, 2020
de29441
Merge remote-tracking branch 'aio-libs/master' into merge-aio-libs
forsberg Aug 20, 2020
ec46014
Merge fixes
forsberg Aug 20, 2020
8978e80
Sets version to 1.1.6ec46014 for this fork of robinhood-aiokafka
forsberg Aug 21, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**Expected behaviour**
A clear and concise description of what you expected to happen.

**Environment (please complete the following information):**
- aiokafka version (`python -c "import aiokafka; print(aiokafka.__version__)"`):
- kafka-python version (`python -c "import kafka; print(kafka.__version__)"`):
- Kafka Broker version (`kafka-topics.sh --version`):
- Other information (Confluent Cloud version, etc.):

**Reproducible example**
```python
# Add a short Python script or Docker configuration that can reproduce the issue.
```
14 changes: 14 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: enhancement
assignees: ''

---

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Additional context**
Add any other context about the feature request here (Other library implementation examples, Kafka Improvement Proposal (KIP), Kafka jira ticket, etc.).
10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: Question
about: Feel free to ask questions if you don't understand something ^^
title: "[QUESTION] "
labels: question
assignees: ''

---


24 changes: 24 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!-- Thank you for your contribution!
Feel free to change the template if you feel confused.
-->
### Changes

Fixes #<!-- Provide issue number if exists -->

<!-- Please give a short brief about these changes. -->

### Checklist

- [ ] I think the code is well written
- [ ] Unit tests for the changes exist
- [ ] Documentation reflects the changes
- [ ] Add a new news fragment into the `CHANGES` folder
* name it `<issue_id>.<type>` (e.g. `588.bugfix`)
* if you don't have an `issue_id` change it to the pr id after creating the PR
* ensure type is one of the following:
* `.feature`: Signifying a new feature.
* `.bugfix`: Signifying a bug fix.
* `.doc`: Signifying a documentation improvement.
* `.removal`: Signifying a deprecation or removal of public API.
* `.misc`: A ticket has been closed, but it is not of interest to users.
* Make sure to use full sentences with correct case and punctuation, for example: `Fix issue with non-ascii contents in doctest text files.`
199 changes: 199 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,199 @@
# This workflows will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries

name: Publish

on:
release:
types: [created]

jobs:
package-source:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Prepare C files to include
run: |
python -m pip install --upgrade pip setuptools
python -m pip install -r requirements-cython.txt
# Make sure we install to have all c files to be shiped with bundle
python -m pip install -vv -Ue . # We set -vv to see compiler exceptions/warnings
- name: Build source package
run: python setup.py sdist
- name: Upload source package
uses: actions/upload-artifact@v2
with:
name: dist
path: dist/

package-wheel:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Build wheels
env:
CIBW_BEFORE_BUILD_LINUX: pip install -r requirements-cython.txt && yum install -y zlib-devel
# On windows and mac we should have z library preinstalled
CIBW_BEFORE_BUILD: pip install -r requirements-cython.txt
CIBW_BUILD_VERBOSITY: 2
CIBW_SKIP: cp27-* cp35-* pp27-*
run: |
python -m pip install --upgrade pip setuptools
pip install cibuildwheel
cibuildwheel --output-dir dist
shell: bash
- name: Upload wheels
uses: actions/upload-artifact@v2
with:
name: dist
path: dist/

test-wheels-windows:
needs: [package-source, package-wheel]
runs-on: windows-latest

strategy:
matrix:
python: [3.6, 3.7]
include:
- python: 3.6
snappy_whl: tools/python_snappy-0.5.4-cp36-cp36m-win_amd64.whl
aiokafka_whl: dist/aiokafka-*-cp36-cp36m-win_amd64.whl
- python: 3.7
snappy_whl: tools/python_snappy-0.5.4-cp37-cp37m-win_amd64.whl
aiokafka_whl: dist/aiokafka-*-cp37-cp37m-win_amd64.whl

steps:
- uses: actions/checkout@v2
- name: Download distributions
uses: actions/download-artifact@v2
with:
name: dist
path: dist/
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}

- name: Install python dependencies
run: |
pip install --upgrade pip setuptools wheel
pip install ${{ matrix.snappy_whl }}
pip install -r requirements-win-test.txt
pip install ${{ matrix.aiokafka_whl }}
shell: bash

- name: Run Unit Tests
run: |
# Remove source code to be sure we use wheel code
rm -rf aiokafka
make ci-test-unit
shell: bash

test-wheels-mac:
needs: [package-source, package-wheel]
runs-on: macos-latest

strategy:
matrix:
python: [3.6, 3.7]
include:
- python: 3.6
aiokafka_whl: dist/aiokafka-*-cp36-cp36m-macosx_10_9_x86_64.whl
- python: 3.7
aiokafka_whl: dist/aiokafka-*-cp37-cp37m-macosx_10_9_x86_64.whl

steps:
- uses: actions/checkout@v2
- name: Download distributions
uses: actions/download-artifact@v2
with:
name: dist
path: dist/
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}

- name: Install system dependencies
run: |
brew install snappy
- name: Install python dependencies
run: |
pip install --upgrade pip setuptools wheel
pip install -r requirements-ci.txt
pip install ${{ matrix.aiokafka_whl }}

- name: Run Unit Tests
run: |
# Remove source code to be sure we use wheel code
rm -rf aiokafka
make ci-test-unit

test-wheels-linux:
needs: [package-source, package-wheel]
runs-on: ubuntu-latest

strategy:
matrix:
python: [3.6, 3.7]
include:
- python: 3.6
aiokafka_whl: dist/aiokafka-*-cp36-cp36m-manylinux1_x86_64.whl
- python: 3.7
aiokafka_whl: dist/aiokafka-*-cp37-cp37m-manylinux1_x86_64.whl

steps:
- uses: actions/checkout@v2
- name: Download distributions
uses: actions/download-artifact@v2
with:
name: dist
path: dist/
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}

- name: Install system dependencies
run: |
sudo apt-get install -y libsnappy-dev libkrb5-dev
- name: Install python dependencies
run: |
pip install --upgrade pip setuptools wheel
pip install -r requirements-ci.txt
pip install ${{ matrix.aiokafka_whl }}

- name: Run Unit Tests
run: |
# Remove source code to be sure we use wheel code
rm -rf aiokafka
make ci-test-unit

deploy:

runs-on: ubuntu-latest
needs: [test-wheels-linux, test-wheels-mac, test-wheels-windows]

steps:
- uses: actions/checkout@v2
- name: Download distributions
uses: actions/download-artifact@v2
with:
name: dist
path: dist/
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: ${{ secrets.PYPI_USERNAME }}
password: ${{ secrets.PYPI_PASSWORD }}
Loading