From b3519fb566ab27c1251dc7ee4db4117db0ff2803 Mon Sep 17 00:00:00 2001
From: Andrew Rowley <Andrew.Rowley@manchester.ac.uk>
Date: Tue, 25 Jul 2023 15:05:19 +0100
Subject: [PATCH] Make version 7

---
 packages/py-spalloc/package.py                |  8 ++---
 .../py-spinnaker-dataspecification/package.py | 20 -------------
 packages/py-spinnaker-pacman/package.py       |  9 +++---
 packages/py-spinnfrontendcommon/package.py    | 16 ++++------
 packages/py-spinnmachine/package.py           |  6 ++--
 packages/py-spinnman/package.py               |  8 ++---
 packages/py-spinnutilities/package.py         |  7 ++---
 packages/py-spynnaker/package.py              | 29 +++++++------------
 py-sPyNNaker/.gitkeep                         |  0
 spack.yaml                                    |  1 +
 10 files changed, 35 insertions(+), 69 deletions(-)
 delete mode 100644 packages/py-spinnaker-dataspecification/package.py
 delete mode 100644 py-sPyNNaker/.gitkeep

diff --git a/packages/py-spalloc/package.py b/packages/py-spalloc/package.py
index 99d8ae94..ef548dde 100644
--- a/packages/py-spalloc/package.py
+++ b/packages/py-spalloc/package.py
@@ -11,10 +11,10 @@ class PySpalloc(PythonPackage):
     requesting SpiNNaker machines from a spalloc server."""
 
     homepage = "https://github.com/SpiNNakerManchester/spalloc"
-    pypi = "spalloc/spalloc-1!6.0.0.tar.gz"
+    pypi = "spalloc/spalloc-1!7.0.0.tar.gz"
 
-    version('6.0.0', sha256='1275fd703dfa36fe7fc03407f768f95f05597092c2fe6fb0e743dacb5528be08')
+    version('7.0.0', sha256='e141a0e661efd6fd634f3793752d8d6deef56ee37a21fa8e3d7208f4edd86f51')
 
     depends_on("python@3.7:", type=("build", "run"))
-    depends_on("py-appdirs", type=("build", "run"))
-    depends_on("py-spinnutilities@6.0.0", type=("build", "run"), when="^python@3.7")
+    depends_on("py-jsonschema", type=("build", "run"))
+    depends_on("py-spinnutilities@7.0.0", type=("build", "run"))
diff --git a/packages/py-spinnaker-dataspecification/package.py b/packages/py-spinnaker-dataspecification/package.py
deleted file mode 100644
index 07d1dbcc..00000000
--- a/packages/py-spinnaker-dataspecification/package.py
+++ /dev/null
@@ -1,20 +0,0 @@
-# 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 PySpinnakerDataspecification(PythonPackage):
-    """This package provides utilities for specifying binary data
-    algorithmically, and executing the specifications to produce the data."""
-
-    homepage = "https://github.com/SpiNNakerManchester/DataSpecification"
-    pypi = "SpiNNaker_DataSpecification/SpiNNaker_DataSpecification-1!6.0.0.tar.gz"
-
-    version("6.0.0", sha256="5265771f5a3e77b1d7a1e075d8cfea5987c37b0a3880874316101a33d15d01dd")
-
-    depends_on("python@3.7:", type=("build", "run"))
-    depends_on("py-spinnutilities@6.0.0", type=("build", "run"))
-    depends_on("py-spinnmachine@6.0.0", type=("build", "run"))
diff --git a/packages/py-spinnaker-pacman/package.py b/packages/py-spinnaker-pacman/package.py
index 0ac11a88..b4dd8759 100644
--- a/packages/py-spinnaker-pacman/package.py
+++ b/packages/py-spinnaker-pacman/package.py
@@ -11,12 +11,11 @@ class PySpinnakerPacman(PythonPackage):
     SpiNNaker machine."""
 
     homepage = "https://github.com/SpiNNakerManchester/PACMAN"
-    pypi = "SpiNNaker_PACMAN/SpiNNaker_PACMAN-1!6.0.0.tar.gz"
+    pypi = "SpiNNaker_PACMAN/SpiNNaker_PACMAN-1!7.0.0.tar.gz"
 
-    version("6.0.0", sha256="2baf2d2451fa3c645dc731bb5716b95bb7f7bac1ea5f569921783ffedd1f0a88")
+    version("7.0.0", sha256="d9e7e620d02fda88f57a8cf157cc9421b5606d453230847f3d35985eae4c074d")
 
     depends_on("python@3.7:", type=("build", "run"))
     depends_on("py-jsonschema", type=("build", "run"))
-    depends_on("py-sortedcollections", type=("build", "run"))
-    depends_on("py-spinnutilities@6.0.0", type=("build", "run"))
-    depends_on("py-spinnmachine@6.0.0", type=("build", "run"))
+    depends_on("py-spinnutilities@7.0.0", type=("build", "run"))
+    depends_on("py-spinnmachine@7.0.0", type=("build", "run"))
diff --git a/packages/py-spinnfrontendcommon/package.py b/packages/py-spinnfrontendcommon/package.py
index d1881565..4ebc201b 100644
--- a/packages/py-spinnfrontendcommon/package.py
+++ b/packages/py-spinnfrontendcommon/package.py
@@ -11,17 +11,13 @@ class PySpinnfrontendcommon(PythonPackage):
     algorithmically, and executing the specifications to produce the data."""
 
     homepage = "https://github.com/SpiNNakerManchester/SpiNNFrontEndCommon"
-    pypi = "SpiNNFrontEndCommon/SpiNNFrontEndCommon-1!6.0.0.tar.gz"
+    pypi = "SpiNNFrontEndCommon/SpiNNFrontEndCommon-1!7.0.0.tar.gz"
 
-    version("6.0.0", sha256="a45770487d2b7e8d865bb5fb472f6f4ad22025924448611c19ea9afa7ddf64e5")
+    version("7.0.0", sha256="07539734ed0105472d06d655bbd92e149ef44c77c388fcca28857558faa6dd10")
 
     depends_on("python@3.7:", type=("build", "run"))
-    depends_on("py-spinnutilities@6.0.0", type=("build", "run"))
-    depends_on("py-spinnmachine@6.0.0", type=("build", "run"))
-    depends_on("py-spinnman@6.0.0", type=("build", "run"))
-    depends_on("py-spinnaker-pacman@6.0.0", type=("build", "run"))
-    depends_on("py-spinnaker-dataspecification@6.0.0", type=("build", "run"))
-    depends_on("py-spalloc@6.0.0", type=("build", "run"))
-    depends_on("py-requests@2.4.1:", type=("build", "run"))
-    depends_on("py-scipy@0.16.0:1.7", type=("build", "run"), when="^python@3.7")
+    depends_on("py-spinnman@7.0.0", type=("build", "run"))
+    depends_on("py-spinnaker-pacman@7.0.0", type=("build", "run"))
+    depends_on("py-spalloc@7.0.0", type=("build", "run"))
     depends_on("py-scipy@0.16.0:", type=("build", "run"))
+    depends_on("py-ebrains-drive@0.5.1:", type=("build", "run"))
diff --git a/packages/py-spinnmachine/package.py b/packages/py-spinnmachine/package.py
index 133f3124..c7302cae 100644
--- a/packages/py-spinnmachine/package.py
+++ b/packages/py-spinnmachine/package.py
@@ -11,9 +11,9 @@ class PySpinnmachine(PythonPackage):
     machine."""
 
     homepage = "https://github.com/SpiNNakerManchester/SpiNNMachine"
-    pypi = "SpiNNMachine/SpiNNMachine-1!6.0.0.tar.gz"
+    pypi = "SpiNNMachine/SpiNNMachine-1!7.0.0.tar.gz"
 
-    version("6.0.0", sha256="713510e78353a3772b4a5fb52cf742ea76fb5d520f5fac3b5c3fd34534afc7ed")
+    version("7.0.0", sha256="5da374fd9208287799fbc324136fe5954dd1b370792ea81ea10d4537643272ad")
 
     depends_on("python@3.7:", type=("build", "run"))
-    depends_on("py-spinnutilities@6.0.0", type=("build", "run"))
+    depends_on("py-spinnutilities@7.0.0", type=("build", "run"))
diff --git a/packages/py-spinnman/package.py b/packages/py-spinnman/package.py
index b9604f61..977bb5bc 100644
--- a/packages/py-spinnman/package.py
+++ b/packages/py-spinnman/package.py
@@ -11,10 +11,10 @@ class PySpinnman(PythonPackage):
     machine."""
 
     homepage = "https://github.com/SpiNNakerManchester/SpiNNMan"
-    pypi = "SpiNNMan/SpiNNMan-1!6.0.0.tar.gz"
+    pypi = "SpiNNMan/SpiNNMan-1!7.0.0.tar.gz"
 
-    version("6.0.0", sha256="9e88789de3417bd9aa9d038c14efe7312569293aadc3a110dfd0d1005cc21241")
+    version("7.0.0", sha256="61bc8934e4ad6798b48c02ff6c8a3ef5c8e080a5ee2f4b88fc9cd587ed1b1ae6")
 
     depends_on("python@3.7:", type=("build", "run"))
-    depends_on("py-spinnutilities@6.0.0", type=("build", "run"))
-    depends_on("py-spinnmachine@6.0.0", type=("build", "run"))
+    depends_on("py-spinnmachine@7.0.0", type=("build", "run"))
+    depends_on("py-websocket-client", type=("build", "run"))
diff --git a/packages/py-spinnutilities/package.py b/packages/py-spinnutilities/package.py
index 687340df..d964711c 100644
--- a/packages/py-spinnutilities/package.py
+++ b/packages/py-spinnutilities/package.py
@@ -12,13 +12,12 @@ class PySpinnutilities(PythonPackage):
     functionality."""
 
     homepage = "https://github.com/SpiNNakerManchester/SpiNNUtils"
-    pypi = "SpiNNUtilities/SpiNNUtilities-1!6.0.0.tar.gz"
+    pypi = "SpiNNUtilities/SpiNNUtilities-1!7.0.0.tar.gz"
 
-    version("6.0.0", sha256="b84b1c174dd0824eac97e8bbb64a56189c082de7fcfc5be07cf9ac3bed9efd81")
+    version("7.0.0", sha256="662855395ec367008735047a66a7ca75d1e5070e309ca3aa6ba3a843fb722841")
 
     depends_on("python@3.7:", type=("build", "run"))
     depends_on("py-appdirs", type=("build", "run"))
-    depends_on("py-numpy@1.13:1.20", when="^python@3.7")
-    depends_on("py-numpy", type=("build", "run"), when="^python@3.8:")
+    depends_on("py-numpy", type=("build", "run"),)
     depends_on("py-pyyaml", type=("build", "run"))
     depends_on("py-requests", type=("build", "run"))
diff --git a/packages/py-spynnaker/package.py b/packages/py-spynnaker/package.py
index 03d8083c..33b608c2 100644
--- a/packages/py-spynnaker/package.py
+++ b/packages/py-spynnaker/package.py
@@ -11,26 +11,17 @@ class PySpynnaker(PythonPackage):
     SpiNNaker."""
 
     homepage = "https://github.com/SpiNNakerManchester/sPyNNaker"
-    pypi = "sPyNNaker/sPyNNaker-1!6.0.0.tar.gz"
+    pypi = "sPyNNaker/sPyNNaker-1!7.0.0.tar.gz"
 
-    version("6.0.0", sha256="821c2af838cffeba65feb0e12bf3a4c39b1b6a597d224871cf0f0476e38edfef")
+    version("7.0.0", sha256="caeaa624e3fdbca3b938c9be7ea4c78a51a037e659389fb01952822f069664db")
 
     depends_on("python@3.7:", type=("build", "run"))
-    depends_on("py-spinnutilities@6.0.0", type=("build", "run"))
-    depends_on("py-spinnmachine@6.0.0", type=("build", "run"))
-    depends_on("py-spinnman@6.0.0", type=("build", "run"))
-    depends_on("py-spinnaker-pacman@6.0.0", type=("build", "run"))
-    depends_on("py-spinnaker-dataspecification@6.0.0", type=("build", "run"))
-    depends_on("py-spalloc@6.0.0", type=("build", "run"))
-    depends_on("py-spinnfrontendcommon@6.0.0", type=("build", "run"))
-    depends_on("py-matplotlib@:3.5.99", type=("build", "run"), when="^python@3.7")
+    depends_on("py-spinnfrontendcommon@7.0.0", type=("build", "run"))
     depends_on("py-matplotlib", type=("build", "run"))
-    depends_on("py-quantities@0.12.1:", type=("build", "run"))
-    #depends_on("py-pynn@0.9.1:0.9", type=("build", "run"))
-    depends_on("py-pynn@0.9.1:", type=("build", "run"))
-    #depends_on("py-lazyarray@0.2.9:0.4.0", type=("build", "run"))
-    depends_on("py-lazyarray@0.2.9:", type=("build", "run"))
-    #depends_on("py-appdirs@1.4.2:1.9", type=("build", "run"))
-    depends_on("py-appdirs@1.4.2:", type=("build", "run"))
-    #depends_on("py-neo@0.5.2:0.9", type=("build", "run"))
-    depends_on("py-neo@0.5.2:", type=("build", "run"))
+    depends_on("py-pyparsing@2.2.1:2.4.7", type=("build", "run"))
+    depends_on("py-quantities", type=("build", "run"))
+    depends_on("py-pynn", type=("build", "run"))
+    depends_on("py-neo", type=("build", "run"))
+    depends_on("py-lazyarray", type=("build", "run"))
+    depends_on("py-scipy", type=("build", "run"))
+    depends_on("py-csa", type=("build", "run"))
diff --git a/py-sPyNNaker/.gitkeep b/py-sPyNNaker/.gitkeep
deleted file mode 100644
index e69de29b..00000000
diff --git a/spack.yaml b/spack.yaml
index a059021e..cc7d3376 100644
--- a/spack.yaml
+++ b/spack.yaml
@@ -44,6 +44,7 @@ spack:
     - py-quantities@0.14.1
     - py-siibra@0.4a57
     - py-snudda@1.4.71
+    - py-spynnaker@7.0.0
     - py-tvb-data@2.7
     - py-tvb-framework@2.8.1.1
     - py-tvb-gdist@2.2
-- 
GitLab