From accbf2cffc6801daa6a2732ea308d8c2fc836eea Mon Sep 17 00:00:00 2001 From: Benjamin Meyers Date: Tue, 18 Apr 2023 12:08:57 -0400 Subject: New packages: py-ogb, py-outdated, py-littleutils (#36824) * New packages: py-ogb, py-outdated, py-littleutils * Update var/spack/repos/builtin/packages/py-outdated/package.py Co-authored-by: Adam J. Stewart --------- Co-authored-by: Adam J. Stewart --- .../builtin/packages/py-littleutils/package.py | 20 +++++++++++++ var/spack/repos/builtin/packages/py-ogb/package.py | 33 ++++++++++++++++++++++ .../repos/builtin/packages/py-outdated/package.py | 23 +++++++++++++++ 3 files changed, 76 insertions(+) create mode 100644 var/spack/repos/builtin/packages/py-littleutils/package.py create mode 100644 var/spack/repos/builtin/packages/py-ogb/package.py create mode 100644 var/spack/repos/builtin/packages/py-outdated/package.py (limited to 'var') diff --git a/var/spack/repos/builtin/packages/py-littleutils/package.py b/var/spack/repos/builtin/packages/py-littleutils/package.py new file mode 100644 index 0000000000..5584733b7d --- /dev/null +++ b/var/spack/repos/builtin/packages/py-littleutils/package.py @@ -0,0 +1,20 @@ +# 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 PyLittleutils(PythonPackage): + """Small personal collection of python utility functions, partly just for + fun.""" + + homepage = "https://github.com/alexmojaki/littleutils" + pypi = "littleutils/littleutils-0.2.2.tar.gz" + + maintainers("meyersbs") + + version("0.2.2", sha256="e6cae3a4203e530d51c9667ed310ffe3b1948f2876e3d69605b3de4b7d96916f") + + depends_on("py-setuptools", type="build") diff --git a/var/spack/repos/builtin/packages/py-ogb/package.py b/var/spack/repos/builtin/packages/py-ogb/package.py new file mode 100644 index 0000000000..b8362aae76 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-ogb/package.py @@ -0,0 +1,33 @@ +# 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 PyOgb(PythonPackage): + """The Open Graph Benchmark (OGB) is a collection of benchmark datasets, data + loaders, and evaluators for graph machine learning. Datasets cover a variety of + graph machine learning tasks and real-world applications. The OGB data loaders + are fully compatible with popular graph deep learning frameworks, including + PyTorch Geometric and Deep Graph Library (DGL). They provide automatic dataset + downloading, standardized dataset splits, and unified performance evaluation. + """ + + homepage = "https://github.com/snap-stanford/ogb" + pypi = "ogb/ogb-1.3.5.tar.gz" + + maintainers("meyersbs") + + version("1.3.5", sha256="ac958094ac3019822e742155b82cb2bf02830aa72a4264ba9ee09b288f0c080c") + + depends_on("py-setuptools", type="build") + depends_on("py-torch@1.6.0:", type=("build", "run")) + depends_on("py-numpy@1.16.0:", type=("build", "run")) + depends_on("py-tqdm@4.29.0:", type=("build", "run")) + depends_on("py-scikit-learn@0.20.0:", type=("build", "run")) + depends_on("py-pandas@0.24.0:", type=("build", "run")) + depends_on("py-six@1.12.0:", type=("build", "run")) + depends_on("py-urllib3@1.24.0:", type=("build", "run")) + depends_on("py-outdated@0.2.0:", type=("build", "run")) diff --git a/var/spack/repos/builtin/packages/py-outdated/package.py b/var/spack/repos/builtin/packages/py-outdated/package.py new file mode 100644 index 0000000000..23d4b2508a --- /dev/null +++ b/var/spack/repos/builtin/packages/py-outdated/package.py @@ -0,0 +1,23 @@ +# 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 PyOutdated(PythonPackage): + """This is a mini-library which, given a package name and a version, checks if + it's the latest version available on PyPI.""" + + homepage = "http://github.com/alexmojaki/outdated" + pypi = "outdated/outdated-0.2.2.tar.gz" + + maintainers("meyersbs") + + version("0.2.2", sha256="4b7fdec88e36711120d096d485fc4d5035e4e5ffbd907cf3a6ce2af43058b970") + + depends_on("py-setuptools@44:", type=("build", "run")) + depends_on("py-setuptools-scm@3.4.3:+toml", type="build") + depends_on("py-littleutils", type=("build", "run")) + depends_on("py-requests", type=("build", "run")) -- cgit v1.2.3-60-g2f50