| 1 |
From: Colin Watson <[email protected]> |
| 2 |
Date: Tue, 22 Sep 2026 16:21:02 +0100 |
| 3 |
Subject: Convert to a PEP 420 namespace package |
| 4 |
|
| 5 |
Bug-Debian: https://bugs.debian.org/1147770 |
| 6 |
Last-Update: 2026-09-22 |
| 7 |
--- |
| 8 |
flufl/__init__.py | 23 ----------------------- |
| 9 |
setup.py | 4 ++-- |
| 10 |
2 files changed, 2 insertions(+), 25 deletions(-) |
| 11 |
delete mode 100644 flufl/__init__.py |
| 12 |
|
| 13 |
diff --git a/flufl/__init__.py b/flufl/__init__.py |
| 14 |
deleted file mode 100644 |
| 15 |
index 9c297ef..0000000 |
| 16 |
--- a/flufl/__init__.py |
| 17 |
+++ /dev/null |
| 18 |
@@ -1,23 +0,0 @@ |
| 19 |
-# Copyright (C) 2004-2014 by Barry A. Warsaw |
| 20 |
-# |
| 21 |
-# This file is part of flufl.password. |
| 22 |
-# |
| 23 |
-# flufl.password is free software: you can redistribute it and/or modify it |
| 24 |
-# under the terms of the GNU Lesser General Public License as published by |
| 25 |
-# the Free Software Foundation, version 3 of the License. |
| 26 |
-# |
| 27 |
-# flufl.password is distributed in the hope that it will be useful, but WITHOUT |
| 28 |
-# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 29 |
-# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public |
| 30 |
-# License for more details. |
| 31 |
-# |
| 32 |
-# You should have received a copy of the GNU Lesser General Public License |
| 33 |
-# along with flufl.password. If not, see <http://www.gnu.org/licenses/>. |
| 34 |
- |
| 35 |
-# this is a namespace package |
| 36 |
-try: |
| 37 |
- import pkg_resources |
| 38 |
- pkg_resources.declare_namespace(__name__) |
| 39 |
-except ImportError: |
| 40 |
- import pkgutil |
| 41 |
- __path__ = pkgutil.extend_path(__path__, __name__) |
| 42 |
diff --git a/setup.py b/setup.py |
| 43 |
index a659aac..da677f3 100644 |
| 44 |
--- a/setup.py |
| 45 |
+++ b/setup.py |
| 46 |
@@ -17,7 +17,7 @@ |
| 47 |
|
| 48 |
from setup_helpers import ( |
| 49 |
description, get_version, long_description, require_python) |
| 50 |
-from setuptools import setup, find_packages |
| 51 |
+from setuptools import setup, find_namespace_packages |
| 52 |
|
| 53 |
|
| 54 |
require_python(0x20600f0) |
| 55 |
@@ -28,7 +28,7 @@ setup( |
| 56 |
name='flufl.password', |
| 57 |
version=__version__, |
| 58 |
namespace_packages=['flufl'], |
| 59 |
- packages=find_packages(), |
| 60 |
+ packages=find_namespace_packages(), |
| 61 |
include_package_data=True, |
| 62 |
maintainer='Barry Warsaw', |
| 63 |
maintainer_email='[email protected]', |