Skip to content

Commit

Permalink
Remove namespace init file. (#303)
Browse files Browse the repository at this point in the history
Remove old __init__.py file.
  • Loading branch information
mcmtroffaes committed Jun 3, 2022
1 parent 051973a commit 65153f7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 14 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ jobs:
- python-version: '3.9'
pip-sphinx: '"sphinx<4" "jinja2<3.1"'
pytest-options: '-m "not (numpydoc or rinohtype)"'
# latest of sphinx 4.x series (released for Python 3.10)
- python-version: '3.10'
pip-sphinx: '"sphinx<5"'
pytest-options: '-m "not (numpydoc or rinohtype)"'
# sphinx pre-release
- python-version: '3.10'
pip-sphinx: '--pre sphinx'
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
This is because ``importlib`` does not allow runtime modification of
entry points.

* Remove sphinxcontrib namespace ``__init__.py`` file (no longer needed for
Python 3.3+ by PEP420).

2.4.2 (10 April 2022)
---------------------

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import io
import re
from setuptools import setup, find_packages
from setuptools import setup, find_namespace_packages
from typing import Optional


Expand Down Expand Up @@ -58,7 +58,7 @@ def plugin(plugin_name: str, mod_name: Optional[str] = None) -> str:
'Topic :: Utilities',
],
platforms='any',
packages=find_packages('src'),
packages=find_namespace_packages('src'),
package_dir={'': 'src'},
package_data={'sphinxcontrib.bibtex': ['py.typed']},
include_package_data=True,
Expand Down
12 changes: 0 additions & 12 deletions src/sphinxcontrib/__init__.py

This file was deleted.

0 comments on commit 65153f7

Please sign in to comment.