py-elasticsearch: new versions (#35764)

* py-elasticsearch: new versions

Also add py-elastic-transport as a new dependency

* py-elasticsearch: py-urllib3 is no longer a dependency

* Update var/spack/repos/builtin/packages/py-elasticsearch/package.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

---------

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
This commit is contained in:
Erik Heeren 2023-03-06 17:30:31 +01:00 committed by GitHub
parent 97c2dd3a5a
commit f3841774f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 1 deletions

View File

@ -0,0 +1,19 @@
# Copyright 2013-2023 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.package import *
class PyElasticTransport(PythonPackage):
"""Transport classes and utilities shared among Python Elastic client libraries"""
homepage = "https://github.com/elastic/elastic-transport-python"
pypi = "elastic-transport/elastic-transport-8.4.0.tar.gz"
version("8.4.0", sha256="b9ad708ceb7fcdbc6b30a96f886609a109f042c0b9d9f2e44403b3133ba7ff10")
depends_on("py-setuptools", type="build")
depends_on("py-urllib3@1.26.2:1", type=("build", "run"))
depends_on("py-certifi", type=("build", "run"))

View File

@ -12,13 +12,22 @@ class PyElasticsearch(PythonPackage):
homepage = "https://github.com/elastic/elasticsearch-py"
pypi = "elasticsearch/elasticsearch-5.2.0.tar.gz"
version("8.6.2", sha256="084458e84caa91e3ad807b68aa82c022e785bead853a3b125641a25e894a1d47")
version("7.6.0", sha256="d228b2d37ac0865f7631335268172dbdaa426adec1da3ed006dddf05134f89c8")
version("7.5.1", sha256="2a0ca516378ae9b87ac840e7bb529ec508f3010360dd9feed605dff2a898aff5")
version("6.4.0", sha256="fb5ab15ee283f104b5a7a5695c7e879cb2927e4eb5aed9c530811590b41259ad")
version("5.2.0", sha256="45d9f8fbe0878a1b7493afeb20f4f6677a43982776ed1a77d9373e9c5b9de966")
version("2.3.0", sha256="be3080a2bf32dff0a9f9fcc1c087515a25a357645673a976d25ef77166134d81")
variant("async", when="@8.6.2:", default=False, description="Include support for asyncio")
depends_on("py-setuptools", type="build")
depends_on("py-urllib3@1.8:1", type=("build", "run"))
depends_on("python@3.7:3", when="@7.6.0:", type=("build", "run"))
depends_on("py-urllib3@1.8:1", when="@:5.2.0", type=("build", "run"))
depends_on("py-urllib3@1.21.1:", when="@6:7", type=("build", "run"))
depends_on("py-elastic-transport@8.0:8", when="@8.6.2:", type=("build", "run"))
depends_on("py-aiohttp@3.0:3", when="+async", type=("build", "run"))
# tests_require
# depends_on('py-requests@1.0.0:2.9', type=('build', 'run'))
# depends_on('py-nose', type=('build', 'run'))