py-gluoncv: switch to PyPI and add 0.10.5.post0 (#38814)

* py-gluoncv: switch to PyPI and add 0.10.5.post0

* Fix style

* Remove no-unicode-readme.patch
This commit is contained in:
Manuela Kuhn 2023-07-11 04:19:15 +02:00 committed by GitHub
parent 5ba40913af
commit f0ef0ceb34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 29 additions and 19 deletions

View file

@ -0,0 +1,18 @@
# 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 PyAutocfg(PythonPackage):
"""Deep learning configuration."""
homepage = "https://github.com/zhreshold/autocfg"
pypi = "autocfg/autocfg-0.0.8.tar.gz"
version("0.0.8", sha256="749986b4f3b3bd85b15298734bf8fa4a590e6c34a314ac515025e058ed76c319")
depends_on("py-setuptools", type="build")
depends_on("py-pyyaml", type=("build", "run"))

View file

@ -1,11 +0,0 @@
--- a/README.md 2020-04-03 11:56:41.820271316 -0400
+++ b/README.md 2020-04-03 11:56:55.901335611 -0400
@@ -72,7 +72,7 @@
There are multiple versions of MXNet pre-built package available. Please refer to [mxnet packages](https://gluon-crash-course.mxnet.io/mxnet_packages.html) if you need more details about MXNet versions.
-# Docs 📖
+# Docs
GluonCV documentation is available at [our website](https://gluon-cv.mxnet.io/index.html).
# Examples

View file

@ -14,11 +14,16 @@ class PyGluoncv(PythonPackage):
vision.""" vision."""
homepage = "https://gluon-cv.mxnet.io/" homepage = "https://gluon-cv.mxnet.io/"
url = "https://github.com/dmlc/gluon-cv/archive/v0.6.0.tar.gz" pypi = "gluoncv/gluoncv-0.6.0.tar.gz"
git = "https://github.com/dmlc/gluon-cv.git"
version("0.6.0", sha256="5ac89d73f34d02b2e60595a5cc35f46d0a69376567fae3a9518005dd89161305") version(
"0.10.5.post0", sha256="4598b9612e8b459a5a14ebeffedefcdae4a5700302a91f9b99fc82e9b08928a5"
)
version("0.6.0", sha256="313848b939c30e9e4c0040078421c02e32a350b8ebf2a966313fd893d7b3bdf6")
depends_on("py-setuptools", type="build") depends_on("py-setuptools", type="build")
depends_on("py-numpy", type=("build", "run")) depends_on("py-numpy", type=("build", "run"))
depends_on("py-tqdm", type=("build", "run")) depends_on("py-tqdm", type=("build", "run"))
depends_on("py-requests", type=("build", "run")) depends_on("py-requests", type=("build", "run"))
@ -26,9 +31,7 @@ class PyGluoncv(PythonPackage):
depends_on("py-portalocker", type=("build", "run")) depends_on("py-portalocker", type=("build", "run"))
depends_on("pil", type=("build", "run")) depends_on("pil", type=("build", "run"))
depends_on("py-scipy", type=("build", "run")) depends_on("py-scipy", type=("build", "run"))
depends_on("py-cython", type="build") depends_on("py-yacs", when="@0.8:", type=("build", "run"))
depends_on("py-pandas", when="@0.9:", type=("build", "run"))
patch("no-unicode-readme.patch") depends_on("py-pyyaml", when="@0.9:", type=("build", "run"))
depends_on("py-autocfg", when="@0.9:", type=("build", "run"))
def install_options(self, spec, prefix):
return ["--with-cython"]