From a6305a66c7ebab49d30451a4c6d2753e391cf063 Mon Sep 17 00:00:00 2001 From: Dmitry Shachnev Date: Sun, 20 Sep 2026 16:33:35 +0300 Subject: [PATCH] Stop using deprecated pkg_resources Rely on PEP 420 implicit namespace packages instead. --- pyproject.toml | 5 +---- sphinxcontrib/__init__.py | 13 ------------- 2 files changed, 1 insertion(+), 17 deletions(-) delete mode 100644 sphinxcontrib/__init__.py diff --git a/pyproject.toml b/pyproject.toml index a0749f4..1618737 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,7 +31,4 @@ Repository = "https://github.com/sphinx-contrib/googleanalytics" zip-safe = false include-package-data = true platforms = ["any"] - -[tool.setuptools.packages] -find = {namespaces = false} - +py-modules = ["sphinxcontrib.googleanalytics"] diff --git a/sphinxcontrib/__init__.py b/sphinxcontrib/__init__.py deleted file mode 100644 index 9cac213..0000000 --- a/sphinxcontrib/__init__.py +++ /dev/null @@ -1,13 +0,0 @@ -# -*- coding: utf-8 -*- -""" -sphinxcontrib -~~~~~~~~~~~~~ - -This package is a namespace package that contains all extensions -distributed in the ``sphinx-contrib`` distribution. - -:copyright: Copyright 2007-2009 by the Sphinx team, see AUTHORS. -:license: BSD, see LICENSE for details. -""" - -__import__("pkg_resources").declare_namespace(__name__)