From 56eb66e79abc096a1b3f6daccf3e3176259f11b6 Mon Sep 17 00:00:00 2001 From: genric Date: Thu, 29 Apr 2021 18:52:03 +0200 Subject: py-luigi: add v3.0.1-3 (#23246) * py-luigi: add v3.0.1-3 * address review comments * more review comments --- .../repos/builtin/packages/py-luigi/package.py | 23 +++++++++++++++---- .../repos/builtin/packages/py-tenacity/package.py | 26 ++++++++++++++++++++++ 2 files changed, 45 insertions(+), 4 deletions(-) create mode 100644 var/spack/repos/builtin/packages/py-tenacity/package.py diff --git a/var/spack/repos/builtin/packages/py-luigi/package.py b/var/spack/repos/builtin/packages/py-luigi/package.py index 1a3b27b254..849c2a0228 100644 --- a/var/spack/repos/builtin/packages/py-luigi/package.py +++ b/var/spack/repos/builtin/packages/py-luigi/package.py @@ -12,10 +12,25 @@ class PyLuigi(PythonPackage): homepage = "https://github.com/spotify/luigi" pypi = "luigi/luigi-2.8.3.tar.gz" + version('3.0.3', sha256='7edc05a32bcff5aad28d7c7e3b15b761ef13fe2a495692602ebf0800eba66849') + version('3.0.2', sha256='b4b1ccf086586d041d7e91e68515d495c550f30e4d179d63863fea9ccdbb78eb') + version('3.0.1', sha256='f158f4e093638bf734e2f4f08261bdba414bac7187ab69f1d6f8c95b1c408409') version('2.8.3', sha256='8b5c84a3c3f4df07309056d3b98348b93c054f1931b7ee22fc29e7989f645c9e') - depends_on('python@2.7:2.8,3.4:', type=('build', 'run')) + depends_on('python@2.7:2.8,3.3:', type=('build', 'run')) + depends_on('python@3.3:', type=('build', 'run'), when='@3.0.0:') + depends_on('python@3.5:', type=('build', 'run'), when='@3.0.2:') + depends_on('py-setuptools', type='build') - depends_on('py-tornado@4.0:4.99', type=('build', 'run')) - depends_on('py-python-daemon@:2.1', type=('build', 'run')) - depends_on('py-python-dateutil@2.7.5', when='@2.8.3:', type=('build', 'run')) + + depends_on('py-enum34@1.1.1:', when='^python@:3.3.999', type=('build', 'run')) + + depends_on('py-tornado@4.0:4.999', type=('build', 'run'), when='@:2.999') + depends_on('py-tornado@5.0:5.999', type=('build', 'run'), when='@3.0.1') + depends_on('py-tornado@5.0:6.999', type=('build', 'run'), when='@3.0.2:') + + depends_on('py-tenacity@6.3.0:6.999', type=('build', 'run'), when='@3.0.3:') + + depends_on('py-python-daemon', type=('build', 'run')) + + depends_on('py-python-dateutil@2.7.5:2.999', when='@2.8.3:', type=('build', 'run')) diff --git a/var/spack/repos/builtin/packages/py-tenacity/package.py b/var/spack/repos/builtin/packages/py-tenacity/package.py new file mode 100644 index 0000000000..0e6393167c --- /dev/null +++ b/var/spack/repos/builtin/packages/py-tenacity/package.py @@ -0,0 +1,26 @@ +# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack import * + + +class PyTenacity(PythonPackage): + """Retrying library for Python""" + + homepage = "https://github.com/jd/tenacity" + pypi = "tenacity/tenacity-6.3.1.tar.gz" + + version('6.3.1', sha256='e14d191fb0a309b563904bbc336582efe2037de437e543b38da749769b544d7f') + + depends_on('python@2.7:2.8,3.5:', type=('build', 'run')) + + depends_on('py-setuptools', type='build') + depends_on('py-setuptools-scm', type='build') + + depends_on('py-six@1.9.0:', type=('build', 'run')) + + depends_on('py-futures@3.0:', when='^python@:2.999', type=('build', 'run')) + depends_on('py-monotonic@0.6:', when='^python@:2.999', type=('build', 'run')) + depends_on('py-typing@3.7.4.1:', when='^python@:2.999', type=('build', 'run')) -- cgit v1.2.3-70-g09d2