summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorMelven Roehrig-Zoellner <Melven.Roehrig-Zoellner@DLR.de>2024-06-05 23:53:10 +0200
committerBernhard Kaindl <bernhardkaindl7@gmail.com>2024-08-01 03:20:40 +0200
commitd8184b37a3e529142519f2c76793672fcf623e67 (patch)
tree0a7fc2b1b6a5332fdd1dd4c19b9e636ff5b360c2 /var
parentbd952a552f18a974e21f1dbfc57907cf2199e255 (diff)
downloadspack-d8184b37a3e529142519f2c76793672fcf623e67.tar.gz
spack-d8184b37a3e529142519f2c76793672fcf623e67.tar.bz2
spack-d8184b37a3e529142519f2c76793672fcf623e67.tar.xz
spack-d8184b37a3e529142519f2c76793672fcf623e67.zip
py-pylint-gitlab: new package
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-pylint-gitlab/package.py34
1 files changed, 34 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-pylint-gitlab/package.py b/var/spack/repos/builtin/packages/py-pylint-gitlab/package.py
new file mode 100644
index 0000000000..1af4498832
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-pylint-gitlab/package.py
@@ -0,0 +1,34 @@
+# 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 PyPylintGitlab(PythonPackage):
+ """This project provides pylint formatters for a nice integration with GitLab CI."""
+
+ homepage = "https://gitlab.com/smueller18/pylint-gitlab"
+ pypi = "pylint-gitlab/pylint-gitlab-2.0.0.tar.gz"
+
+ git = "https://gitlab.com/smueller18/pylint-gitlab.git"
+
+ # Unfortunately, this just installs from git.
+ # The setup needs the file "Pipfile.lock" which is only
+ # available in git, not in a tarball.
+ version("2.0.0", tag="2.0.0")
+
+ depends_on("py-setuptools", type="build")
+ depends_on("py-pylint", type=("build", "run"))
+ depends_on("py-jinja2", type=("build", "run"))
+ depends_on("py-anybadge", type=("build", "run"))
+ depends_on("py-importlib-metadata", type=("build", "run"))
+ depends_on("py-typing-extensions", type=("build", "run"))
+ depends_on("py-wrapt", type=("build", "run"))
+ depends_on("py-tomli", type=("build", "run"))
+ depends_on("py-dill", type=("build", "run"))
+
+ def setup_build_environment(self, env):
+ env.set("CI_COMMIT_TAG", self.spec.version.string)