Skip to content

Commit 65153f7

Browse files
authored
Remove namespace init file. (#303)
Remove old __init__.py file.
1 parent 051973a commit 65153f7

File tree

4 files changed

+9
-14
lines changed

4 files changed

+9
-14
lines changed

.github/workflows/python-package.yml

+4
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ jobs:
3333
- python-version: '3.9'
3434
pip-sphinx: '"sphinx<4" "jinja2<3.1"'
3535
pytest-options: '-m "not (numpydoc or rinohtype)"'
36+
# latest of sphinx 4.x series (released for Python 3.10)
37+
- python-version: '3.10'
38+
pip-sphinx: '"sphinx<5"'
39+
pytest-options: '-m "not (numpydoc or rinohtype)"'
3640
# sphinx pre-release
3741
- python-version: '3.10'
3842
pip-sphinx: '--pre sphinx'

CHANGELOG.rst

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
This is because ``importlib`` does not allow runtime modification of
1010
entry points.
1111

12+
* Remove sphinxcontrib namespace ``__init__.py`` file (no longer needed for
13+
Python 3.3+ by PEP420).
14+
1215
2.4.2 (10 April 2022)
1316
---------------------
1417

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import io
22
import re
3-
from setuptools import setup, find_packages
3+
from setuptools import setup, find_namespace_packages
44
from typing import Optional
55

66

@@ -58,7 +58,7 @@ def plugin(plugin_name: str, mod_name: Optional[str] = None) -> str:
5858
'Topic :: Utilities',
5959
],
6060
platforms='any',
61-
packages=find_packages('src'),
61+
packages=find_namespace_packages('src'),
6262
package_dir={'': 'src'},
6363
package_data={'sphinxcontrib.bibtex': ['py.typed']},
6464
include_package_data=True,

src/sphinxcontrib/__init__.py

-12
This file was deleted.

0 commit comments

Comments
 (0)