From 67ebcea902cb0afa84f693b2242df7eff83468f2 Mon Sep 17 00:00:00 2001 From: munechika-koyo Date: Mon, 18 May 2026 14:45:50 +0200 Subject: [PATCH 1/3] Remove __init__.py file to follow pep420 --- cherab/__init__.py | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 cherab/__init__.py diff --git a/cherab/__init__.py b/cherab/__init__.py deleted file mode 100644 index 53af8cd3..00000000 --- a/cherab/__init__.py +++ /dev/null @@ -1,19 +0,0 @@ -# Copyright 2016-2018 Euratom -# Copyright 2016-2018 United Kingdom Atomic Energy Authority -# Copyright 2016-2018 Centro de Investigaciones Energéticas, Medioambientales y Tecnológicas -# -# Licensed under the EUPL, Version 1.1 or – as soon they will be approved by the -# European Commission - subsequent versions of the EUPL (the "Licence"); -# You may not use this work except in compliance with the Licence. -# You may obtain a copy of the Licence at: -# -# https://joinup.ec.europa.eu/software/page/eupl5 -# -# Unless required by applicable law or agreed to in writing, software distributed -# under the Licence is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR -# CONDITIONS OF ANY KIND, either express or implied. -# -# See the Licence for the specific language governing permissions and limitations -# under the Licence. - -__import__('pkg_resources').declare_namespace(__name__) From 96cacb0a0d0c6a3aaee1f3b50da91684b978de00 Mon Sep 17 00:00:00 2001 From: munechika-koyo Date: Mon, 18 May 2026 15:14:53 +0200 Subject: [PATCH 2/3] Update test script to use unittest discovery to handle the namespace packge --- dev/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/test.sh b/dev/test.sh index 6132427b..edfbc452 100755 --- a/dev/test.sh +++ b/dev/test.sh @@ -1,3 +1,3 @@ #!/bin/bash -python -m unittest $1 $2 $3 $4 $5 +python -m unittest discover cherab $1 $2 $3 $4 $5 From 57aef1ebc58e941b797ca8428d8f0d44473b2cc7 Mon Sep 17 00:00:00 2001 From: munechika-koyo Date: Fri, 29 May 2026 00:13:12 +0200 Subject: [PATCH 3/3] Remove namespace_packages from setup.py --- setup.py | 1 - 1 file changed, 1 deletion(-) diff --git a/setup.py b/setup.py index c57bb0d3..bee897ed 100644 --- a/setup.py +++ b/setup.py @@ -96,7 +96,6 @@ name="cherab", version=version, license="EUPL 1.1", - namespace_packages=["cherab"], description="Cherab spectroscopy framework", classifiers=[ "Development Status :: 5 - Production/Stable",