Skip to content

暗黙的namespace package(PEP 420)に変更し、Python 3.13-3.14/Django 5.2をサポート#18

Open
kashewnuts wants to merge 3 commits intomasterfrom
implicit-namespace
Open

暗黙的namespace package(PEP 420)に変更し、Python 3.13-3.14/Django 5.2をサポート#18
kashewnuts wants to merge 3 commits intomasterfrom
implicit-namespace

Conversation

@kashewnuts
Copy link
Contributor

@kashewnuts kashewnuts commented Feb 9, 2026

何を達成したいのか、なぜその変更をしたか

具体的な変更内容

  • beproud/init.pyとbeproud/django/init.pyを削除して暗黙的namespace packageに変更。bpcommonsとのファイル競合を構造的に解消。
  • pyproject.tomlのincludeをbeproud.django.notify*に限定し、バージョンを 0.51に更新。
  • Python 3.9/Django5.1を削除し、Python 3.13-3.14、Django 5.2、 Celery 5.6を追加。

実装時に確認したこと

  • toxが通ること
  • python -m build .twine check --strict dist/* が実行できること
    $ twine check --strict dist/*
    Checking dist/bpnotify-0.51-py3-none-any.whl: PASSED
    Checking dist/bpnotify-0.51.tar.gz: PASSED
    

特にレビューしてほしいこと

  • PRコメントで記述した変更内容が妥当そうか

beproud/__init__.pyとbeproud/django/__init__.pyを削除して暗黙的namespace
packageに変更。bpcommonsとのファイル競合を構造的に解消。
pyproject.tomlのincludeをbeproud.django.notify*に限定し、バージョンを
0.51に更新。Python 3.9を削除し、Python 3.13-3.14、Django 5.2、
Celery 5.6を追加。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

bpcommons との競合を避けるために beproud.* を暗黙的 namespace package (PEP 420) に移行しつつ、サポートする Python/Django/Celery のバージョン範囲を更新するPRです。

Changes:

  • beproud/__init__.pybeproud/django/__init__.py を削除し、PEP 420 の暗黙的 namespace package に移行
  • pyproject.toml のパッケージ include を beproud.django.notify* に限定し、0.51 にバージョン更新・対応バージョン表記更新
  • tox のテストマトリクスを Python 3.10–3.14 / Django 4.2, 5.2 / Celery 5.3, 5.6 に拡張

Reviewed changes

Copilot reviewed 3 out of 5 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
tox.ini tox/envlist と tox-gh-actions の Python/Django マッピングを更新
pyproject.toml requires-python / classifiers 更新、パッケージ探索 include を限定、version を 0.51 に更新
CHANGES.rst 0.51 の変更点を追記
beproud/init.py 暗黙的 namespace package 化のため削除
beproud/django/init.py 暗黙的 namespace package 化のため削除

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

GitHub Actionsのmatrixを更新してPython 3.13-3.14とDjango 5.2を追加し、
Python 3.13-3.14とDjango 4.2の組み合わせを除外。actions/checkout@v6と
actions/setup-python@v6に更新。pyproject.tomlからDjango 5.1を削除。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
django-version: ['4.2']
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MEMO: タイトルの通りPythonとDjangoの対象バージョンを増やしたので更新

@@ -1,28 +1,30 @@
[build-system]
requires = ["setuptools>=61.0.0", "wheel"]
requires = ["setuptools>=77.0.3", "wheel"]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


[tool.setuptools.packages.find]
where = ["."]
include = ["beproud.django.notify*"]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MEMO: このPRではこの行でincludeの追加と、 __init__.py を削除したのがキモ
ref: https://packaging.python.org/ja/latest/guides/packaging-namespace-packages/#native-namespace-packages

pytest
pytest-django
pytest-pythonpath
setuptools
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MEMO: ソースコード上利用している箇所もなく、toxも通っているので削除しました。

Comment on lines +29 to +33
- uses: actions/checkout@v6

# ジョブのPython環境を設定
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
uses: actions/setup-python@v6
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MEMO: actionsが古くなっていたので更新

@kashewnuts kashewnuts requested a review from ae35bp February 9, 2026 09:02
@kashewnuts kashewnuts marked this pull request as ready for review February 9, 2026 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant