diff options
author | Andrew W Elble <aweits@rit.edu> | 2020-07-31 15:54:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-31 14:54:25 -0500 |
commit | d89bc1d998a1c9e8107ca71cf1fdd54715235b67 (patch) | |
tree | c10bb114fe0fc14c45642a4e6427b4602e6a1b41 | |
parent | 0303ef72ac2ab537168245a2251ed112e680b75b (diff) | |
download | spack-d89bc1d998a1c9e8107ca71cf1fdd54715235b67.tar.gz spack-d89bc1d998a1c9e8107ca71cf1fdd54715235b67.tar.bz2 spack-d89bc1d998a1c9e8107ca71cf1fdd54715235b67.tar.xz spack-d89bc1d998a1c9e8107ca71cf1fdd54715235b67.zip |
new package(s): py-gql (#17769)
* new package(s): py-gql
and related dependencies:
py-aiohttp
py-async-timeout
py-graphql-core
py-idna-ssl
py-multidict
py-websockets
py-yarl
new versions:
py-requests
* fixes
Co-authored-by: Andrew W Elble <aweits@skl-a-00.rc.rit.edu>
9 files changed, 169 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/py-aiohttp/package.py b/var/spack/repos/builtin/packages/py-aiohttp/package.py new file mode 100644 index 0000000000..e29f467c29 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-aiohttp/package.py @@ -0,0 +1,26 @@ +# Copyright 2013-2020 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) + + +class PyAiohttp(PythonPackage): + """Supports both client and server side of HTTP protocol. + Supports both client and server Web-Sockets out-of-the-box and + avoids Callbacks. Provides Web-server with middlewares and + plugable routing.""" + + homepage = "https://github.com/aio-libs/aiohttp" + url = "https://github.com/aio-libs/aiohttp/archive/v3.6.2.tar.gz" + + version('3.6.2', sha256='4ad2d8393843ea0c7b50a93bf04fb1cf20b93c0a5e958de128efcd2e5f8adf80') + + depends_on('py-setuptools', type='build') + depends_on('python@3.5.3:', type=('build', 'run')) + depends_on('py-attrs@17.3.0:', type=('build', 'run')) + depends_on('py-chardet@2.0:3.999', type=('build', 'run')) + depends_on('py-multidict@4.5:4.999', type=('build', 'run')) + depends_on('py-async-timeout@3.0:3.999', type=('build', 'run')) + depends_on('py-yarl@1.0:1.999', type=('build', 'run')) + depends_on('py-idna-ssl@1.0:', type=('build', 'run'), when='^python@:3.6') + depends_on('py-typing-extensions@3.6.5:', type=('build', 'run'), when='^python@:3.6') diff --git a/var/spack/repos/builtin/packages/py-async-timeout/package.py b/var/spack/repos/builtin/packages/py-async-timeout/package.py new file mode 100644 index 0000000000..dd7ca9943c --- /dev/null +++ b/var/spack/repos/builtin/packages/py-async-timeout/package.py @@ -0,0 +1,16 @@ +# Copyright 2013-2020 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) + + +class PyAsyncTimeout(PythonPackage): + """asyncio-compatible timeout context manager.""" + + homepage = "https://github.com/aio-libs/async-timeout" + url = "https://github.com/aio-libs/async-timeout/archive/v3.0.1.tar.gz" + + version('3.0.1', sha256='d0a7a927ed6b922835e1b014dfcaa9982caccbb25131320582cc660af7c93949') + + depends_on('py-setuptools', type='build') + depends_on('python@3.5.3:', type=('build', 'run')) diff --git a/var/spack/repos/builtin/packages/py-gql/package.py b/var/spack/repos/builtin/packages/py-gql/package.py new file mode 100644 index 0000000000..a3962bc649 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-gql/package.py @@ -0,0 +1,23 @@ +# Copyright 2013-2020 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) + + +class PyGql(PythonPackage): + """This is a GraphQL client for Python. Plays nicely with + graphene, graphql-core, graphql-js and any other GraphQL + implementation compatible with the spec. + GQL architecture is inspired by React-Relay and Apollo-Client.""" + + homepage = "https://github.com/graphql-python/gql" + url = "https://github.com/graphql-python/gql/archive/v3.0.0a1.tar.gz" + + version('3.0.0a1', sha256='3254a6010464932e3700a8d225cf6e40a6983aaf5f279615504c8196a374daf9') + + depends_on('py-setuptools', type='build') + depends_on('py-aiohttp@3.6.2', type=('build', 'run')) + depends_on('py-graphql-core@3.1.0:3.1.999', type=('build', 'run')) + depends_on('py-requests@2.23:2.999', type=('build', 'run')) + depends_on('py-websockets@8.1:8.999', type=('build', 'run')) + depends_on('py-yarl@1.4:1.999', type=('build', 'run')) diff --git a/var/spack/repos/builtin/packages/py-graphql-core/package.py b/var/spack/repos/builtin/packages/py-graphql-core/package.py new file mode 100644 index 0000000000..6b74fa9095 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-graphql-core/package.py @@ -0,0 +1,19 @@ +# Copyright 2013-2020 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) + + +class PyGraphqlCore(PythonPackage): + """GraphQL-core 3 is a Python 3.6+ port of GraphQL.js, the + JavaScript reference implementation for GraphQL, a query language + for APIs created by Facebook.""" + + homepage = "https://github.com/graphql-python/graphql-core" + url = "https://github.com/graphql-python/graphql-core/archive/v3.1.2.tar.gz" + + version('3.1.2', sha256='16087360d34f9cfa295b401fc17f9f11bcddef0e6e0dc5a694bbe2298b31949b') + version('3.0.5', sha256='88021f8b879f18cf56523644e51e1552b126a9ad9ab218f579bf503d236d5272') + + depends_on('python@3.6:3.999', type=('build', 'run')) + depends_on('py-setuptools', type='build') diff --git a/var/spack/repos/builtin/packages/py-idna-ssl/package.py b/var/spack/repos/builtin/packages/py-idna-ssl/package.py new file mode 100644 index 0000000000..273cdd9bc5 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-idna-ssl/package.py @@ -0,0 +1,16 @@ +# Copyright 2013-2020 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) + + +class PyIdnaSsl(PythonPackage): + """Patch ssl.match_hostname for Unicode(idna) domains support""" + + homepage = "https://github.com/aio-libs/idna-ssl" + url = "https://github.com/aio-libs/idna-ssl/archive/v1.1.0.tar.gz" + + version('1.1.0', sha256='cdbefa2429a6a2fa5cbe8d2a47c677ca671e84531618d3460fc0bcfc840684c5') + + depends_on('py-setuptools', type='build') + depends_on('py-idna@2.0:', type=('build', 'run')) diff --git a/var/spack/repos/builtin/packages/py-multidict/package.py b/var/spack/repos/builtin/packages/py-multidict/package.py new file mode 100644 index 0000000000..fe0d0ae627 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-multidict/package.py @@ -0,0 +1,17 @@ +# Copyright 2013-2020 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) + + +class PyMultidict(PythonPackage): + """Multidict is dict-like collection of key-value pairs where key + might be occurred more than once in the container.""" + + homepage = "https://github.com/aio-libs/multidict" + url = "https://github.com/aio-libs/multidict/archive/v4.7.6.tar.gz" + + version('4.7.6', sha256='449035f89a12f189579ff83811424c71e4a39e335bcb8045145ad084b7bde2dc') + + depends_on('py-setuptools', type='build') + depends_on('python@3.5:', type=('build', 'run')) diff --git a/var/spack/repos/builtin/packages/py-requests/package.py b/var/spack/repos/builtin/packages/py-requests/package.py index 5d7249a079..30af0cd73f 100644 --- a/var/spack/repos/builtin/packages/py-requests/package.py +++ b/var/spack/repos/builtin/packages/py-requests/package.py @@ -10,7 +10,7 @@ class PyRequests(PythonPackage): """Python HTTP for Humans.""" homepage = "http://python-requests.org" - url = "https://pypi.io/packages/source/r/requests/requests-2.22.0.tar.gz" + url = "https://pypi.io/packages/source/r/requests/requests-2.24.0.tar.gz" import_modules = [ 'requests', 'requests.packages', 'requests.packages.chardet', @@ -23,6 +23,8 @@ class PyRequests(PythonPackage): 'requests.packages.urllib3.contrib._securetransport' ] + version('2.24.0', sha256='b3559a131db72c33ee969480840fff4bb6dd111de7dd27c8ee1f820f4f00231b') + version('2.23.0', sha256='b3f43d496c6daba4493e7c431722aeb7dbc6288f52a6e04e7b6023b0247817e6') version('2.22.0', sha256='11e007a8a2aa0323f5a921e9e6a2d7e4e67d9877e85773fba9ba6419025cbeb4') version('2.21.0', sha256='502a824f31acdacb3a35b6690b5fbf0bc41d63a24a45c4004352b0242707598e') version('2.14.2', sha256='a274abba399a23e8713ffd2b5706535ae280ebe2b8069ee6a941cb089440d153') @@ -33,8 +35,10 @@ class PyRequests(PythonPackage): depends_on('python@2.7:2.8,3.5:', type=('build', 'run')) depends_on('py-setuptools', type='build') - depends_on('py-chardet@3.0.2:3.0.999', type=('build', 'run'), when='@2.16.0:') - depends_on('py-idna@2.5:2.8', type=('build', 'run'), when='@2.16.0:') + depends_on('py-chardet@3.0.2:3.0.999', type=('build', 'run'), when='@2.16.0:2.22.999') + depends_on('py-idna@2.5:2.8', type=('build', 'run'), when='@2.16.0:2.22.999') + depends_on('py-chardet@3.0.2:3.999', type=('build', 'run'), when='@2.23.0:') + depends_on('py-idna@2.5:2.999', type=('build', 'run'), when='@2.23.0:') depends_on('py-urllib3@1.21.1:1.24,1.25.2:1.25.999', type=('build', 'run'), when='@2.16.0:') depends_on('py-certifi@2017.4.17:', type=('build', 'run'), when='@2.16.0:') diff --git a/var/spack/repos/builtin/packages/py-websockets/package.py b/var/spack/repos/builtin/packages/py-websockets/package.py new file mode 100644 index 0000000000..891678934c --- /dev/null +++ b/var/spack/repos/builtin/packages/py-websockets/package.py @@ -0,0 +1,17 @@ +# Copyright 2013-2020 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) + + +class PyWebsockets(PythonPackage): + """websockets is a library for building WebSocket servers and + clients in Python with a focus on correctness and simplicity.""" + + homepage = "https://github.com/aaugustin/websockets" + url = "https://github.com/aaugustin/websockets/archive/8.1.tar.gz" + + version('8.1', sha256='c19ce96ad5f7606127d3915364144df93fb865a215784b06048fae3d39364f14') + + depends_on('py-setuptools', type='build') + depends_on('python@3.6.1:', type=('build', 'run')) diff --git a/var/spack/repos/builtin/packages/py-yarl/package.py b/var/spack/repos/builtin/packages/py-yarl/package.py new file mode 100644 index 0000000000..3b33ac4776 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-yarl/package.py @@ -0,0 +1,28 @@ +# Copyright 2013-2020 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) + + +class PyYarl(PythonPackage): + """The module provides handy URL class for URL parsing and changing.""" + + homepage = "https://github.com/aio-libs/yarl" + url = "https://github.com/aio-libs/yarl/archive/v1.4.2.tar.gz" + + version('1.4.2', sha256='a400eb3f54f7596eeaba8100a8fa3d72135195423c52808dc54a43c6b100b192') + + depends_on('python@3.5:', type=('build', 'run')) + depends_on('py-setuptools', type='build') + depends_on('py-cython', type='build') + depends_on('py-multidict@4.0:', type=('build', 'run')) + depends_on('py-idna@2.0:', type=('build', 'run')) + + @run_before('build') + def fix_cython(self): + cython = self.spec['py-cython'].command + cython('-3', + '-o', + 'yarl/_quoting.c', + 'yarl/_quoting.pyx', + '-Iyarl') |