Skip to content

Commit

Permalink
Add dataclasses backport package to dependencies for Python 3.6 (#690)
Browse files Browse the repository at this point in the history
* Add `dataclasses` backport package to dependencies for Python 3.6

* Run `apt-get update` before installing (fixes CI)
  • Loading branch information
ods committed Nov 30, 2020
1 parent f4ac354 commit 07e9bd3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ jobs:

- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libsnappy-dev libkrb5-dev
- name: Install python dependencies
run: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:

- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libsnappy-dev libkrb5-dev
- name: Get pip cache dir
Expand Down Expand Up @@ -267,6 +268,7 @@ jobs:

- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libsnappy-dev libkrb5-dev krb5-user
- name: Get pip cache dir
Expand Down
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ Allow group coordinator to close when all brokers are unavailable
681.bugfix
Exclude `.so` from source distribution

689.bugfix
Add `dataclasses` backport package to dependencies for Python 3.6


0.7.0 (2020-10-28)
==================
Expand Down
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,10 @@ def build_extension(self, ext):
raise BuildFailed()


install_requires = ["kafka-python>=2.0.0"]
install_requires = [
"kafka-python>=2.0.0",
"dataclasses>=0.5; python_version<'3.7'",
]

PY_VER = sys.version_info

Expand Down

0 comments on commit 07e9bd3

Please sign in to comment.