
* py-psyclone and py-fparser new releases added * py-fparser: add missing releases for py-psyclone * py-psyclone: actioned @adamjstewart comments * py-psyclone: removed py-pytest-pylint * py-pytest-pylint: added package @ latest version * py-pytest-pylint: reformatted * Update var/spack/repos/builtin/packages/py-psyclone/package.py Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com> * py-pytest-pylint: added build deps and runtime dep versions * py-pytest-pylint: removed version from setuptools * py-psyclone: add py-pytest-pylint test dep and alphabetize deps * Update var/spack/repos/builtin/packages/py-pytest-pylint/package.py Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com> * py-psyclone: deps ordered --------- Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
32 lines
1.0 KiB
Python
32 lines
1.0 KiB
Python
# Copyright 2013-2024 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 PyPytestPylint(PythonPackage):
|
|
"""Run pylint with pytest and have configurable rule types (i.e.
|
|
Convention, Warn, and Error) fail the build. You can also specify a
|
|
pylintrc file.
|
|
|
|
"""
|
|
|
|
homepage = "https://pypi.org/project/pytest-pylint/"
|
|
pypi = "pytest-pylint/pytest-pylint-0.21.0.tar.gz"
|
|
git = "https://github.com/pytest-dev/pytest"
|
|
|
|
license("MIT")
|
|
|
|
version("0.21.0", sha256="88764b8e1d5cfa18809248e0ccc2fc05035f08c35f0b0222ddcfea1c3c4e553e")
|
|
|
|
# python_requires
|
|
depends_on("python@3.7:", type=("build", "run"))
|
|
|
|
# install_requires
|
|
depends_on("py-setuptools", type=("build"))
|
|
depends_on("py-pytest@7.0.0:", type=("build", "run"))
|
|
depends_on("py-pylint@2.15.0:", type=("build", "run"))
|
|
depends_on("py-tomli@1.1.0:", type=("build", "run"), when="^python@:3.10")
|