Skip to content

Commit 8d2eeee

Browse files
committed
CI: Multi-platform images: Exclude specific package/platform comb.
1 parent 7bfbaaf commit 8d2eeee

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

setup.py

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# -*- coding: utf-8 -*-
22
# (c) 2014-2021 The mqttwarn developers
33
import os
4+
import platform
5+
46
from setuptools import setup, find_packages
57

68
here = os.path.abspath(os.path.dirname(__file__))
@@ -110,24 +112,41 @@
110112
],
111113
}
112114

113-
# Convenience extra to install all dependencies
115+
116+
# Convenience extra to install *all* dependencies for building a `mqttwarn-full` distribution.
114117
extras_all = []
115118
for extra, packages in extras.items():
116-
# FIXME: Skip all packages needing compilation.
119+
120+
# FIXME: Skip specific packages having build issues.
117121
# https://github.com/commx/python-rrdtool/issues/36
118122
if extra in ["mysql", "rrdtool"]:
119123
continue
124+
125+
# FIXME: Skip specific packages on specific platforms,
126+
# because they would also need a build toolchain.
127+
machine = platform.uname()[4]
128+
if machine in ["armv7l", "aarch64"] and extra in ["postgres", "slixmpp", "ssh"]:
129+
continue
130+
131+
# FIXME: The `cryptography` package is not available as binary wheel on arm32v7.
132+
if machine in ["armv7l"] and extra in ["apprise"]:
133+
continue
134+
120135
for package in packages:
121136
extras_all.append(package)
137+
122138
extras["all"] = extras_all
123139

140+
141+
# Packages needed for running the tests.
124142
extras["test"] = [
125143
'pytest>=4.6.7',
126144
'pytest-cov>=2.8.1',
127145
'lovely.testlayers>=0.7.1',
128146
'tox>=3.14.2',
129147
]
130148

149+
131150
setup(name='mqttwarn',
132151
version='0.23.1',
133152
description='mqttwarn - subscribe to MQTT topics and notify pluggable services',

0 commit comments

Comments
 (0)