New package: py-loguru (#32074)

* [py-loguru] New package

* [py-loguru] Removed commented out line

* [py-loguru] Added types removed extra dependencies

* [py-loguru] missing windows dependency. listing windows as a conflict for now

* [py-loguru] depends on py-colorama when platform=windows

* [py-loguru] flake8

* [py-loguru] Import update

* [py-loguru]

- python is a runtime dependency
- setuptools is a build dependency

* [@spackbot] updating style on behalf of qwertos

Co-authored-by: James A Zilberman <jazrc@rit.edu>
Co-authored-by: qwertos <qwertos@users.noreply.github.com>
This commit is contained in:
Jen Herting 2022-08-23 13:00:25 -04:00 committed by GitHub
parent 2c567edc1d
commit 00feccde34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,25 @@
# Copyright 2013-2022 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 PyLoguru(PythonPackage):
"""Loguru is a library which aims to bring enjoyable logging in Python."""
homepage = "https://github.com/Delgan/loguru"
pypi = "loguru/loguru-0.6.0.tar.gz"
version("0.6.0", sha256="066bd06758d0a513e9836fd9c6b5a75bfb3fd36841f4b996bc60b547a309d41c")
depends_on("python@3.5:", type=("build", "run"))
depends_on("py-setuptools", type="build")
depends_on("py-aiocontextvars@0.2.0:", when="^python@3.6:", type=("build", "run"))
depends_on("py-colorama@0.3.4:", when="platform=windows", type=("build", "run"))
# Missing dependency required for windows
# depends_on('py-win32-setctime@1.0.0:',
# when='platform=windows',
# type=('build', 'run'))
conflicts("platform=windows")