From 49feddf71e74a83dd1a0c259f72377b11b40b7c7 Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Sat, 17 Mar 2018 20:33:13 +0100 Subject: [PATCH] py-performance: added package (#7500) --- .../repos/builtin/packages/py-perf/package.py | 39 ++++++++++++++++ .../packages/py-performance/package.py | 44 +++++++++++++++++++ 2 files changed, 83 insertions(+) create mode 100644 var/spack/repos/builtin/packages/py-perf/package.py create mode 100644 var/spack/repos/builtin/packages/py-performance/package.py diff --git a/var/spack/repos/builtin/packages/py-perf/package.py b/var/spack/repos/builtin/packages/py-perf/package.py new file mode 100644 index 0000000000..fc75740d17 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-perf/package.py @@ -0,0 +1,39 @@ +############################################################################## +# Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC. +# Produced at the Lawrence Livermore National Laboratory. +# +# This file is part of Spack. +# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. +# LLNL-CODE-647188 +# +# For details, see https://github.com/spack/spack +# Please also see the NOTICE and LICENSE files for our notice and the LGPL. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License (as +# published by the Free Software Foundation) version 2.1, February 1999. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and +# conditions of the GNU Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +############################################################################## +from spack import * + + +class PyPerf(PythonPackage): + """The Python perf module is a toolkit to write, run and + analyze benchmarks. + """ + + homepage = "https://pypi.python.org/pypi/perf" + url = "https://github.com/vstinner/perf/archive/1.5.1.tar.gz" + + version('1.5.1', 'e3dc532fdbaf44f2d921556164bd74e5') + + depends_on('py-setuptools', type='build') + depends_on('py-six', type=('build', 'run')) diff --git a/var/spack/repos/builtin/packages/py-performance/package.py b/var/spack/repos/builtin/packages/py-performance/package.py new file mode 100644 index 0000000000..932a593c30 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-performance/package.py @@ -0,0 +1,44 @@ +############################################################################## +# Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC. +# Produced at the Lawrence Livermore National Laboratory. +# +# This file is part of Spack. +# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. +# LLNL-CODE-647188 +# +# For details, see https://github.com/spack/spack +# Please also see the NOTICE and LICENSE files for our notice and the LGPL. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License (as +# published by the Free Software Foundation) version 2.1, February 1999. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and +# conditions of the GNU Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +############################################################################## +from spack import * + + +class PyPerformance(PythonPackage): + """The performance project is intended to be an authoritative source + of benchmarks for all Python implementations. + + The focus is on real-world benchmarks, rather than synthetic benchmarks, + using whole applications when possible. + """ + + homepage = 'http://pyperformance.readthedocs.io/' + url = 'https://github.com/python/performance/archive/0.6.1.tar.gz' + + version('0.6.1', '95477b584a284582b66c922a5335b427') + version('0.6.0', 'b93661e07668fa0b461236dca164eedf') + + depends_on('py-setuptools', type=('build', 'run')) + depends_on('py-six', type=('build', 'run')) + depends_on('py-perf', type=('build', 'run'))