diff options
Diffstat (limited to 'var')
5 files changed, 155 insertions, 6 deletions
diff --git a/var/spack/repos/builtin/packages/py-fiscalyear/package.py b/var/spack/repos/builtin/packages/py-fiscalyear/package.py new file mode 100644 index 0000000000..2c9cc771c2 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-fiscalyear/package.py @@ -0,0 +1,48 @@ +############################################################################## +# Copyright (c) 2013-2016, 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/llnl/spack +# Please also see the LICENSE file 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 PyFiscalyear(PythonPackage): + """fiscalyear is a small, lightweight Python module providing helpful + utilities for managing the fiscal calendar. It is designed as an extension + of the built-in datetime and calendar modules, adding the ability to query + the fiscal year and fiscal quarter of a date or datetime object.""" + + homepage = "https://github.com/adamjstewart/fiscalyear" + url = "https://pypi.io/packages/source/f/fiscalyear/fiscalyear-0.1.0.tar.gz" + + import_modules = ['fiscalyear'] + + version('master', branch='master', + git='https://github.com/adamjstewart/fiscalyear.git') + version('0.1.0', '30e36b259f3e72e4929abbf259335742') + + depends_on('python@2.5:') + depends_on('py-setuptools', type='build') + + # TODO: Add a 'test' deptype + # depends_on('py-pytest', type='test') + # depends_on('py-pytest-runner', type='test') diff --git a/var/spack/repos/builtin/packages/py-hypothesis/package.py b/var/spack/repos/builtin/packages/py-hypothesis/package.py new file mode 100644 index 0000000000..866d151f3e --- /dev/null +++ b/var/spack/repos/builtin/packages/py-hypothesis/package.py @@ -0,0 +1,45 @@ +############################################################################## +# Copyright (c) 2013-2016, 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/llnl/spack +# Please also see the LICENSE file 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 PyHypothesis(PythonPackage): + """A library for property based testing.""" + + homepage = "https://github.com/HypothesisWorks/hypothesis-python" + url = "https://pypi.io/packages/source/h/hypothesis/hypothesis-3.7.0.tar.gz" + + import_modules = [ + 'hypothesis', 'hypothesis.searchstrategy', 'hypothesis.extra', + 'hypothesis.tools', 'hypothesis.utils', 'hypothesis.vendor', + 'hypothesis.internal', 'hypothesis.internal.conjecture' + ] + + # TODO: Add missing dependency required to import hypothesis.extra.django + + version('3.7.0', '4afb25fa6785fceac034b63eaa2dfe28') + + depends_on('py-setuptools', type='build') + depends_on('py-enum34', type=('build', 'run'), when='^python@:2') diff --git a/var/spack/repos/builtin/packages/py-py/package.py b/var/spack/repos/builtin/packages/py-py/package.py index 5a963105bd..1bba4b7252 100644 --- a/var/spack/repos/builtin/packages/py-py/package.py +++ b/var/spack/repos/builtin/packages/py-py/package.py @@ -29,8 +29,13 @@ class PyPy(PythonPackage): """library with cross-python path, ini-parsing, io, code, log facilities""" homepage = "http://pylib.readthedocs.io/en/latest/" - url = "https://pypi.python.org/packages/source/p/py/py-1.4.31.tar.gz" + url = "https://pypi.io/packages/source/p/py/py-1.4.33.tar.gz" + import_modules = [ + 'py', 'py._code', 'py._io', 'py._log', 'py._path', 'py._process', + ] + + version('1.4.33', '15d7107cbb8b86593bf9afa16e56da65') version('1.4.31', '5d2c63c56dc3f2115ec35c066ecd582b') depends_on('py-setuptools', type='build') diff --git a/var/spack/repos/builtin/packages/py-pytest-runner/package.py b/var/spack/repos/builtin/packages/py-pytest-runner/package.py new file mode 100644 index 0000000000..02ef5dc09d --- /dev/null +++ b/var/spack/repos/builtin/packages/py-pytest-runner/package.py @@ -0,0 +1,38 @@ +############################################################################## +# Copyright (c) 2013-2016, 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/llnl/spack +# Please also see the LICENSE file 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 PyPytestRunner(PythonPackage): + """Invoke py.test as distutils command with dependency resolution.""" + + homepage = "https://github.com/pytest-dev/pytest-runner" + url = "https://pypi.io/packages/source/p/pytest-runner/pytest-runner-2.11.1.tar.gz" + + import_modules = ['ptr'] + + version('2.11.1', 'bdb73eb18eca2727944a2dcf963c5a81') + + depends_on('py-setuptools', type='build') diff --git a/var/spack/repos/builtin/packages/py-pytest/package.py b/var/spack/repos/builtin/packages/py-pytest/package.py index 4af49306c2..c1c4ee534c 100644 --- a/var/spack/repos/builtin/packages/py-pytest/package.py +++ b/var/spack/repos/builtin/packages/py-pytest/package.py @@ -28,11 +28,24 @@ from spack import * class PyPytest(PythonPackage): """pytest: simple powerful testing with Python.""" - homepage = "http://doc.pytest.org/en/latest/" - url = "https://pypi.python.org/packages/source/p/pytest/pytest-3.0.2.tar.gz" + homepage = "http://pytest.org/" + url = "https://pypi.io/packages/source/p/pytest/pytest-3.0.7.tar.gz" - version('3.0.2', '61dc36e65a6f6c11c53b1388e043a9f5', - url="https://pypi.python.org/packages/2b/05/e20806c99afaff43331f5fd8770bb346145303882f98ef3275fa1dd66f6d/pytest-3.0.2.tar.gz") + import_modules = [ + '_pytest', '_pytest.assertion', '_pytest._code', + '_pytest.vendored_packages', 'pytest' + ] - depends_on('py-setuptools', type='build') + version('3.0.7', '89c60546507dc7eb6e9e40a6e9f720bd') + version('3.0.2', '61dc36e65a6f6c11c53b1388e043a9f5') + + # Most Python packages only require setuptools as a build dependency. + # However, pytest requires setuptools during runtime as well. + depends_on('py-setuptools', type=('build', 'run')) depends_on('py-py@1.4.29:', type=('build', 'run')) + depends_on('py-hypothesis@3.5.2:', type=('build', 'run')) + + # TODO: Add a 'test' deptype + # depends_on('py-nose', type='test') + # depends_on('py-mock', type='test') + # depends_on('py-requests', type='test') |