From: Colin Watson Date: Tue, 22 Sep 2026 16:21:02 +0100 Subject: Convert to a PEP 420 namespace package Bug-Debian: https://bugs.debian.org/1147770 Last-Update: 2026-09-22 --- flufl/__init__.py | 23 ----------------------- setup.py | 4 ++-- 2 files changed, 2 insertions(+), 25 deletions(-) delete mode 100644 flufl/__init__.py diff --git a/flufl/__init__.py b/flufl/__init__.py deleted file mode 100644 index 9c297ef..0000000 --- a/flufl/__init__.py +++ /dev/null @@ -1,23 +0,0 @@ -# Copyright (C) 2004-2014 by Barry A. Warsaw -# -# This file is part of flufl.password. -# -# flufl.password is free software: you can redistribute it and/or modify it -# under the terms of the GNU Lesser General Public License as published by -# the Free Software Foundation, version 3 of the License. -# -# flufl.password is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public -# License for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with flufl.password. If not, see . - -# this is a namespace package -try: - import pkg_resources - pkg_resources.declare_namespace(__name__) -except ImportError: - import pkgutil - __path__ = pkgutil.extend_path(__path__, __name__) diff --git a/setup.py b/setup.py index a659aac..da677f3 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ from setup_helpers import ( description, get_version, long_description, require_python) -from setuptools import setup, find_packages +from setuptools import setup, find_namespace_packages require_python(0x20600f0) @@ -28,7 +28,7 @@ setup( name='flufl.password', version=__version__, namespace_packages=['flufl'], - packages=find_packages(), + packages=find_namespace_packages(), include_package_data=True, maintainer='Barry Warsaw', maintainer_email='barry@python.org',