projects
/
EVA-2020-02-2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0020a8d
)
Add setuptools minimum version trap
author
Phil Howard
<phil@gadgetoid.com>
Thu, 4 Jul 2019 12:55:41 +0000
(13:55 +0100)
committer
Phil Howard
<phil@gadgetoid.com>
Thu, 4 Jul 2019 12:55:41 +0000
(13:55 +0100)
library/setup.py
patch
|
blob
|
blame
|
history
diff --git
a/library/setup.py
b/library/setup.py
index aefc0229b3e1b2bef05297c985a90db9d1fdf52d..b21ce9d096d1de81b1997730cdc53626b7c16324 100755
(executable)
--- a/
library/setup.py
+++ b/
library/setup.py
@@
-22,9
+22,14
@@
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
"""
SOFTWARE.
"""
-from setuptools import setup
+from setuptools import setup
, __version__, version
-setup(
+minimum_version = version.pkg_resources.parse_version('30.4.0')
+
+if version.pkg_resources.parse_version(__version__) < minimum_version:
+ raise RuntimeError("Package setuptools must be at least version {}".format(minimum_version))
+
+result = setup(
packages=['enviroplus'],
packages=['enviroplus'],
- install_requires=['pimoroni-bme280', 'pms5003', 'ltr559', 'st7735', 'ads1015']
+ install_requires=['
setuptools>='.format(minimum_version), '
pimoroni-bme280', 'pms5003', 'ltr559', 'st7735', 'ads1015']
)
)