Skip to content

Commit

Permalink
Dependencies: Install a few packages on Python >= 3.7 only
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Oct 14, 2023
1 parent 06042d5 commit 1dc3793
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
4 changes: 3 additions & 1 deletion mqttwarn/services/amqp.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
__copyright__ = 'Copyright 2014 Jan-Piet Mens'
__license__ = 'Eclipse Public License - v 1.0 (http://www.eclipse.org/legal/epl-v10.html)'

import puka
import pytest

puka = pytest.importorskip("puka")


def plugin(srv, item):
Expand Down
12 changes: 6 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

extras = {
"amqp": [
"puka>=0.0.7",
"puka>=0.0.7; python_version<'3.12'",
],
"apns": [
"apns>=2.0.1",
Expand All @@ -40,7 +40,7 @@
"celery",
],
"chromecast": [
"pychromecast>=7.5.0",
"pychromecast>=7.5.0; python_version>='3.7'",
],
"dnsupdate": [
"dnspython>=1.15.0",
Expand All @@ -49,7 +49,7 @@
"fbchat>=1.3.6",
],
"gss2": [
"google-api-python-client<2",
"google-api-python-client<2; python_version>='3.7'",
"gspread>=2.1.1",
"oauth2client>=4.1.2",
],
Expand Down Expand Up @@ -91,7 +91,7 @@
"slack-sdk>=3.1.0",
],
"ssh": [
"paramiko>=2.4.1",
"paramiko>=2.4.1; python_version>='3.7'",
],
"tootpaste": [
"Mastodon.py>=1.2.2",
Expand Down Expand Up @@ -162,7 +162,7 @@
"pytest-mock<4",
"pytest-mqtt<1",
"tox<4",
'dataclasses; python_version<"3.7"',
"dataclasses; python_version<'3.7'",
"requests-toolbelt>=1,<2",
"responses>=0.13.3,<1",
"pyfakefs>=4.5,<6",
Expand All @@ -175,7 +175,7 @@
"build<1",
"mypy<1.3",
"poethepoet<1",
'ruff==0.0.254; python_version>="3.7"',
"ruff==0.0.254; python_version>='3.7'",
"sphinx-autobuild",
]

Expand Down

0 comments on commit 1dc3793

Please sign in to comment.