Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support Python3.10 over & Django4.2 #15

Merged
merged 5 commits into from
Feb 7, 2024
Merged

support Python3.10 over & Django4.2 #15

merged 5 commits into from
Feb 7, 2024

Conversation

kashewnuts
Copy link
Contributor

@kashewnuts kashewnuts commented Feb 1, 2024

具体的な変更内容

  • Support Django4.2 & Python3.10〜3.12
  • Drop Django2.2
  • python setup.py test以外をpyproject.tomlに移行
  • Git管理されているので、.hgignoreは削除
  • mockを標準ライブラリに移行

python -m build && twine check時のログ

python -m build .
* Creating virtualenv isolated environment...
* Installing packages in isolated environment... (setuptools>=61.0.0, wheel)
* Getting build dependencies for sdist...
running egg_info
writing bpnotify.egg-info/PKG-INFO
writing dependency_links to bpnotify.egg-info/dependency_links.txt
writing requirements to bpnotify.egg-info/requires.txt
writing top-level names to bpnotify.egg-info/top_level.txt
reading manifest file 'bpnotify.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*' under directory 'beproud/django/notify/templates'
writing manifest file 'bpnotify.egg-info/SOURCES.txt'
* Building sdist...
running sdist
running egg_info
writing bpnotify.egg-info/PKG-INFO
writing dependency_links to bpnotify.egg-info/dependency_links.txt
writing requirements to bpnotify.egg-info/requires.txt
writing top-level names to bpnotify.egg-info/top_level.txt
reading manifest file 'bpnotify.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*' under directory 'beproud/django/notify/templates'
writing manifest file 'bpnotify.egg-info/SOURCES.txt'
running check
creating bpnotify-0.49
creating bpnotify-0.49/beproud
creating bpnotify-0.49/beproud/django
creating bpnotify-0.49/beproud/django/notify
creating bpnotify-0.49/beproud/django/notify/backends
creating bpnotify-0.49/beproud/django/notify/fixtures
creating bpnotify-0.49/beproud/django/notify/storage
creating bpnotify-0.49/beproud/django/notify/tests
creating bpnotify-0.49/beproud/django/notify/tests/templates
creating bpnotify-0.49/beproud/django/notify/tests/templates/notify
creating bpnotify-0.49/beproud/django/notify/tests/templates/notify/private_msg
creating bpnotify-0.49/beproud/django/notify/tests/templates/notify/private_msg/private_messages
creating bpnotify-0.49/bpnotify.egg-info
creating bpnotify-0.49/docs
creating bpnotify-0.49/docs/en
creating bpnotify-0.49/docs/en/source
copying files to bpnotify-0.49...
copying CHANGES.rst -> bpnotify-0.49
copying MANIFEST.in -> bpnotify-0.49
copying README.rst -> bpnotify-0.49
copying pyproject.toml -> bpnotify-0.49
copying setup.py -> bpnotify-0.49
copying beproud/__init__.py -> bpnotify-0.49/beproud
copying beproud/django/__init__.py -> bpnotify-0.49/beproud/django
copying beproud/django/notify/__init__.py -> bpnotify-0.49/beproud/django/notify
copying beproud/django/notify/admin.py -> bpnotify-0.49/beproud/django/notify
copying beproud/django/notify/api.py -> bpnotify-0.49/beproud/django/notify
copying beproud/django/notify/constants.py -> bpnotify-0.49/beproud/django/notify
copying beproud/django/notify/models.py -> bpnotify-0.49/beproud/django/notify
copying beproud/django/notify/tasks.py -> bpnotify-0.49/beproud/django/notify
copying beproud/django/notify/utils.py -> bpnotify-0.49/beproud/django/notify
copying beproud/django/notify/backends/__init__.py -> bpnotify-0.49/beproud/django/notify/backends
copying beproud/django/notify/backends/base.py -> bpnotify-0.49/beproud/django/notify/backends
copying beproud/django/notify/backends/mail.py -> bpnotify-0.49/beproud/django/notify/backends
copying beproud/django/notify/backends/model.py -> bpnotify-0.49/beproud/django/notify/backends
copying beproud/django/notify/backends/redisdb.py -> bpnotify-0.49/beproud/django/notify/backends
copying beproud/django/notify/fixtures/test_users.json -> bpnotify-0.49/beproud/django/notify/fixtures
copying beproud/django/notify/storage/__init__.py -> bpnotify-0.49/beproud/django/notify/storage
copying beproud/django/notify/storage/base.py -> bpnotify-0.49/beproud/django/notify/storage
copying beproud/django/notify/storage/cached_db.py -> bpnotify-0.49/beproud/django/notify/storage
copying beproud/django/notify/storage/db.py -> bpnotify-0.49/beproud/django/notify/storage
copying beproud/django/notify/storage/locmem.py -> bpnotify-0.49/beproud/django/notify/storage
copying beproud/django/notify/tests/__init__.py -> bpnotify-0.49/beproud/django/notify/tests
copying beproud/django/notify/tests/base.py -> bpnotify-0.49/beproud/django/notify/tests
copying beproud/django/notify/tests/test_basic.py -> bpnotify-0.49/beproud/django/notify/tests
copying beproud/django/notify/tests/test_mail.py -> bpnotify-0.49/beproud/django/notify/tests
copying beproud/django/notify/tests/test_storage.py -> bpnotify-0.49/beproud/django/notify/tests
copying beproud/django/notify/tests/test_tasks.py -> bpnotify-0.49/beproud/django/notify/tests
copying beproud/django/notify/tests/utils.py -> bpnotify-0.49/beproud/django/notify/tests
copying beproud/django/notify/tests/templates/notify/private_msg/private_messages/mail_body.html -> bpnotify-0.49/beproud/django/notify/tests/templates/notify/private_msg/private_messages
copying beproud/django/notify/tests/templates/notify/private_msg/private_messages/mail_body.txt -> bpnotify-0.49/beproud/django/notify/tests/templates/notify/private_msg/private_messages
copying beproud/django/notify/tests/templates/notify/private_msg/private_messages/mail_subject.txt -> bpnotify-0.49/beproud/django/notify/tests/templates/notify/private_msg/private_messages
copying bpnotify.egg-info/PKG-INFO -> bpnotify-0.49/bpnotify.egg-info
copying bpnotify.egg-info/SOURCES.txt -> bpnotify-0.49/bpnotify.egg-info
copying bpnotify.egg-info/dependency_links.txt -> bpnotify-0.49/bpnotify.egg-info
copying bpnotify.egg-info/requires.txt -> bpnotify-0.49/bpnotify.egg-info
copying bpnotify.egg-info/top_level.txt -> bpnotify-0.49/bpnotify.egg-info
copying docs/en/source/conf.py -> bpnotify-0.49/docs/en/source
copying bpnotify.egg-info/SOURCES.txt -> bpnotify-0.49/bpnotify.egg-info
Writing bpnotify-0.49/setup.cfg
Creating tar archive
removing 'bpnotify-0.49' (and everything under it)
* Building wheel from sdist
* Creating virtualenv isolated environment...
* Installing packages in isolated environment... (setuptools>=61.0.0, wheel)
* Getting build dependencies for wheel...
running egg_info
writing bpnotify.egg-info/PKG-INFO
writing dependency_links to bpnotify.egg-info/dependency_links.txt
writing requirements to bpnotify.egg-info/requires.txt
writing top-level names to bpnotify.egg-info/top_level.txt
reading manifest file 'bpnotify.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*' under directory 'beproud/django/notify/templates'
writing manifest file 'bpnotify.egg-info/SOURCES.txt'
* Installing packages in isolated environment... (wheel)
* Building wheel...
running bdist_wheel
running build
running build_py
creating build
creating build/lib
creating build/lib/beproud
copying beproud/__init__.py -> build/lib/beproud
creating build/lib/docs
creating build/lib/docs/en
creating build/lib/docs/en/source
copying docs/en/source/conf.py -> build/lib/docs/en/source
creating build/lib/beproud/django
copying beproud/django/__init__.py -> build/lib/beproud/django
creating build/lib/beproud/django/notify
copying beproud/django/notify/tasks.py -> build/lib/beproud/django/notify
copying beproud/django/notify/models.py -> build/lib/beproud/django/notify
copying beproud/django/notify/constants.py -> build/lib/beproud/django/notify
copying beproud/django/notify/__init__.py -> build/lib/beproud/django/notify
copying beproud/django/notify/api.py -> build/lib/beproud/django/notify
copying beproud/django/notify/admin.py -> build/lib/beproud/django/notify
copying beproud/django/notify/utils.py -> build/lib/beproud/django/notify
creating build/lib/beproud/django/notify/backends
copying beproud/django/notify/backends/mail.py -> build/lib/beproud/django/notify/backends
copying beproud/django/notify/backends/redisdb.py -> build/lib/beproud/django/notify/backends
copying beproud/django/notify/backends/__init__.py -> build/lib/beproud/django/notify/backends
copying beproud/django/notify/backends/model.py -> build/lib/beproud/django/notify/backends
copying beproud/django/notify/backends/base.py -> build/lib/beproud/django/notify/backends
creating build/lib/beproud/django/notify/tests
copying beproud/django/notify/tests/test_basic.py -> build/lib/beproud/django/notify/tests
copying beproud/django/notify/tests/test_mail.py -> build/lib/beproud/django/notify/tests
copying beproud/django/notify/tests/__init__.py -> build/lib/beproud/django/notify/tests
copying beproud/django/notify/tests/test_storage.py -> build/lib/beproud/django/notify/tests
copying beproud/django/notify/tests/utils.py -> build/lib/beproud/django/notify/tests
copying beproud/django/notify/tests/test_tasks.py -> build/lib/beproud/django/notify/tests
copying beproud/django/notify/tests/base.py -> build/lib/beproud/django/notify/tests
creating build/lib/beproud/django/notify/storage
copying beproud/django/notify/storage/db.py -> build/lib/beproud/django/notify/storage
copying beproud/django/notify/storage/cached_db.py -> build/lib/beproud/django/notify/storage
copying beproud/django/notify/storage/__init__.py -> build/lib/beproud/django/notify/storage
copying beproud/django/notify/storage/base.py -> build/lib/beproud/django/notify/storage
copying beproud/django/notify/storage/locmem.py -> build/lib/beproud/django/notify/storage
running egg_info
writing bpnotify.egg-info/PKG-INFO
writing dependency_links to bpnotify.egg-info/dependency_links.txt
writing requirements to bpnotify.egg-info/requires.txt
writing top-level names to bpnotify.egg-info/top_level.txt
reading manifest file 'bpnotify.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*' under directory 'beproud/django/notify/templates'
writing manifest file 'bpnotify.egg-info/SOURCES.txt'
creating build/lib/beproud/django/notify/fixtures
copying beproud/django/notify/fixtures/test_users.json -> build/lib/beproud/django/notify/fixtures
creating build/lib/beproud/django/notify/tests/templates
creating build/lib/beproud/django/notify/tests/templates/notify
creating build/lib/beproud/django/notify/tests/templates/notify/private_msg
creating build/lib/beproud/django/notify/tests/templates/notify/private_msg/private_messages
copying beproud/django/notify/tests/templates/notify/private_msg/private_messages/mail_body.html -> build/lib/beproud/django/notify/tests/templates/notify/private_msg/private_messages
copying beproud/django/notify/tests/templates/notify/private_msg/private_messages/mail_body.txt -> build/lib/beproud/django/notify/tests/templates/notify/private_msg/private_messages
copying beproud/django/notify/tests/templates/notify/private_msg/private_messages/mail_subject.txt -> build/lib/beproud/django/notify/tests/templates/notify/private_msg/private_messages
warning: build_py: byte-compiling is disabled, skipping.

installing to build/bdist.macosx-14-arm64/wheel
running install
running install_lib
creating build/bdist.macosx-14-arm64
creating build/bdist.macosx-14-arm64/wheel
creating build/bdist.macosx-14-arm64/wheel/docs
creating build/bdist.macosx-14-arm64/wheel/docs/en
creating build/bdist.macosx-14-arm64/wheel/docs/en/source
copying build/lib/docs/en/source/conf.py -> build/bdist.macosx-14-arm64/wheel/docs/en/source
creating build/bdist.macosx-14-arm64/wheel/beproud
copying build/lib/beproud/__init__.py -> build/bdist.macosx-14-arm64/wheel/beproud
creating build/bdist.macosx-14-arm64/wheel/beproud/django
creating build/bdist.macosx-14-arm64/wheel/beproud/django/notify
copying build/lib/beproud/django/notify/tasks.py -> build/bdist.macosx-14-arm64/wheel/beproud/django/notify
copying build/lib/beproud/django/notify/models.py -> build/bdist.macosx-14-arm64/wheel/beproud/django/notify
creating build/bdist.macosx-14-arm64/wheel/beproud/django/notify/backends
copying build/lib/beproud/django/notify/backends/mail.py -> build/bdist.macosx-14-arm64/wheel/beproud/django/notify/backends
copying build/lib/beproud/django/notify/backends/redisdb.py -> build/bdist.macosx-14-arm64/wheel/beproud/django/notify/backends
copying build/lib/beproud/django/notify/backends/__init__.py -> build/bdist.macosx-14-arm64/wheel/beproud/django/notify/backends
copying build/lib/beproud/django/notify/backends/model.py -> build/bdist.macosx-14-arm64/wheel/beproud/django/notify/backends
copying build/lib/beproud/django/notify/backends/base.py -> build/bdist.macosx-14-arm64/wheel/beproud/django/notify/backends
copying build/lib/beproud/django/notify/constants.py -> build/bdist.macosx-14-arm64/wheel/beproud/django/notify
creating build/bdist.macosx-14-arm64/wheel/beproud/django/notify/tests
copying build/lib/beproud/django/notify/tests/test_basic.py -> build/bdist.macosx-14-arm64/wheel/beproud/django/notify/tests
copying build/lib/beproud/django/notify/tests/test_mail.py -> build/bdist.macosx-14-arm64/wheel/beproud/django/notify/tests
copying build/lib/beproud/django/notify/tests/__init__.py -> build/bdist.macosx-14-arm64/wheel/beproud/django/notify/tests
copying build/lib/beproud/django/notify/tests/test_storage.py -> build/bdist.macosx-14-arm64/wheel/beproud/django/notify/tests
copying build/lib/beproud/django/notify/tests/utils.py -> build/bdist.macosx-14-arm64/wheel/beproud/django/notify/tests
copying build/lib/beproud/django/notify/tests/test_tasks.py -> build/bdist.macosx-14-arm64/wheel/beproud/django/notify/tests
creating build/bdist.macosx-14-arm64/wheel/beproud/django/notify/tests/templates
creating build/bdist.macosx-14-arm64/wheel/beproud/django/notify/tests/templates/notify
creating build/bdist.macosx-14-arm64/wheel/beproud/django/notify/tests/templates/notify/private_msg
creating build/bdist.macosx-14-arm64/wheel/beproud/django/notify/tests/templates/notify/private_msg/private_messages
copying build/lib/beproud/django/notify/tests/templates/notify/private_msg/private_messages/mail_subject.txt -> build/bdist.macosx-14-arm64/wheel/beproud/django/notify/tests/templates/notify/private_msg/private_messages
copying build/lib/beproud/django/notify/tests/templates/notify/private_msg/private_messages/mail_body.txt -> build/bdist.macosx-14-arm64/wheel/beproud/django/notify/tests/templates/notify/private_msg/private_messages
copying build/lib/beproud/django/notify/tests/templates/notify/private_msg/private_messages/mail_body.html -> build/bdist.macosx-14-arm64/wheel/beproud/django/notify/tests/templates/notify/private_msg/private_messages
copying build/lib/beproud/django/notify/tests/base.py -> build/bdist.macosx-14-arm64/wheel/beproud/django/notify/tests
copying build/lib/beproud/django/notify/__init__.py -> build/bdist.macosx-14-arm64/wheel/beproud/django/notify
creating build/bdist.macosx-14-arm64/wheel/beproud/django/notify/storage
copying build/lib/beproud/django/notify/storage/db.py -> build/bdist.macosx-14-arm64/wheel/beproud/django/notify/storage
copying build/lib/beproud/django/notify/storage/cached_db.py -> build/bdist.macosx-14-arm64/wheel/beproud/django/notify/storage
copying build/lib/beproud/django/notify/storage/__init__.py -> build/bdist.macosx-14-arm64/wheel/beproud/django/notify/storage
copying build/lib/beproud/django/notify/storage/base.py -> build/bdist.macosx-14-arm64/wheel/beproud/django/notify/storage
copying build/lib/beproud/django/notify/storage/locmem.py -> build/bdist.macosx-14-arm64/wheel/beproud/django/notify/storage
copying build/lib/beproud/django/notify/api.py -> build/bdist.macosx-14-arm64/wheel/beproud/django/notify
copying build/lib/beproud/django/notify/admin.py -> build/bdist.macosx-14-arm64/wheel/beproud/django/notify
copying build/lib/beproud/django/notify/utils.py -> build/bdist.macosx-14-arm64/wheel/beproud/django/notify
creating build/bdist.macosx-14-arm64/wheel/beproud/django/notify/fixtures
copying build/lib/beproud/django/notify/fixtures/test_users.json -> build/bdist.macosx-14-arm64/wheel/beproud/django/notify/fixtures
copying build/lib/beproud/django/__init__.py -> build/bdist.macosx-14-arm64/wheel/beproud/django
warning: install_lib: byte-compiling is disabled, skipping.

running install_egg_info
Copying bpnotify.egg-info to build/bdist.macosx-14-arm64/wheel/bpnotify-0.49-py3.9.egg-info
running install_scripts
creating build/bdist.macosx-14-arm64/wheel/bpnotify-0.49.dist-info/WHEEL
creating '/Users/kashew/projects/github.com/beproud/bpnotify/dist/.tmp-lwsb5p0r/bpnotify-0.49-py3-none-any.whl' and adding 'build/bdist.macosx-14-arm64/wheel' to it
adding 'beproud/__init__.py'
adding 'beproud/django/__init__.py'
adding 'beproud/django/notify/__init__.py'
adding 'beproud/django/notify/admin.py'
adding 'beproud/django/notify/api.py'
adding 'beproud/django/notify/constants.py'
adding 'beproud/django/notify/models.py'
adding 'beproud/django/notify/tasks.py'
adding 'beproud/django/notify/utils.py'
adding 'beproud/django/notify/backends/__init__.py'
adding 'beproud/django/notify/backends/base.py'
adding 'beproud/django/notify/backends/mail.py'
adding 'beproud/django/notify/backends/model.py'
adding 'beproud/django/notify/backends/redisdb.py'
adding 'beproud/django/notify/fixtures/test_users.json'
adding 'beproud/django/notify/storage/__init__.py'
adding 'beproud/django/notify/storage/base.py'
adding 'beproud/django/notify/storage/cached_db.py'
adding 'beproud/django/notify/storage/db.py'
adding 'beproud/django/notify/storage/locmem.py'
adding 'beproud/django/notify/tests/__init__.py'
adding 'beproud/django/notify/tests/base.py'
adding 'beproud/django/notify/tests/test_basic.py'
adding 'beproud/django/notify/tests/test_mail.py'
adding 'beproud/django/notify/tests/test_storage.py'
adding 'beproud/django/notify/tests/test_tasks.py'
adding 'beproud/django/notify/tests/utils.py'
adding 'beproud/django/notify/tests/templates/notify/private_msg/private_messages/mail_body.html'
adding 'beproud/django/notify/tests/templates/notify/private_msg/private_messages/mail_body.txt'
adding 'beproud/django/notify/tests/templates/notify/private_msg/private_messages/mail_subject.txt'
adding 'docs/en/source/conf.py'
adding 'bpnotify-0.49.dist-info/METADATA'
adding 'bpnotify-0.49.dist-info/WHEEL'
adding 'bpnotify-0.49.dist-info/top_level.txt'
adding 'bpnotify-0.49.dist-info/RECORD'
removing build/bdist.macosx-14-arm64/wheel
Successfully built bpnotify-0.49.tar.gz and bpnotify-0.49-py3-none-any.whl
(.venv) kashew@mbp14:bpnotify (feature/dj42)$
twine check --strict dist/bpnotify-0.49-py3-none-any.whl dist/bpnotify-0.49.tar.gz
Checking dist/bpnotify-0.49-py3-none-any.whl: PASSED
Checking dist/bpnotify-0.49.tar.gz: PASSED

@kashewnuts kashewnuts force-pushed the feature/dj42 branch 2 times, most recently from d9f3c04 to 42bfb0f Compare February 2, 2024 05:30
@kashewnuts kashewnuts force-pushed the feature/dj42 branch 3 times, most recently from d2087e9 to 01ab87e Compare February 5, 2024 05:47
@@ -3,11 +3,9 @@

from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes.fields import GenericForeignKey
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _
Copy link
Contributor Author

Choose a reason for hiding this comment

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

django.utils.translation.ugettext() はDjango4.0で削除 https://docs.djangoproject.com/en/5.0/releases/4.0/#features-removed-in-4-0

@@ -42,7 +40,7 @@ class Notification(models.Model):
notify_type = models.CharField(_('notify type'), max_length=100, db_index=True)
media = models.CharField(_('media'), max_length=100, choices=MediaChoices(), db_index=True)

extra_data = jsonfield.JSONField(_('extra data'), null=True, blank=True)
extra_data = models.JSONField(_('extra data'), null=True, blank=True)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Django標準のものを使うようにするので置き換え https://docs.djangoproject.com/en/5.0/ref/models/fields/#django.db.models.JSONField

Copy link
Contributor

Choose a reason for hiding this comment

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

MEMO: 旧バージョンのbpnotify使ってたプロジェクトの場合は、自プロジェクトでマイグレーションが必要

@@ -20,20 +20,20 @@ def test_sending_mail(self):
# 1 private_messages model
# 1 news model
# 1 private_messages mail
self.assertEquals(items_sent, 3)
self.assertEqual(items_sent, 3)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

DeprecationWarning: Please use assertEqual instead. が出ていたのでごそっと置き換え

@@ -4,7 +4,7 @@
from django.core import mail
from django.test import TestCase

from beproud.django.notify.tests.base import TestBase
from tests.base import TestBase
Copy link
Contributor Author

Choose a reason for hiding this comment

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

プロジェクトルートにtestsディレクトリを置く形式にしたのでPATHを変更。以降も同様の変更あり。

@@ -29,75 +29,75 @@ def test_sending_model(self):
user = User.objects.get(pk=2)
items_sent = notify_now(user, 'follow', extra_data={"followed": "eggs"})
# 1 news model
self.assertEquals(items_sent, 1)
self.assertEqual(items_sent, 1)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

DeprecationWarning: Please use assertEqual instead. が出ていたのでごそっと置き換え

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.

setuptoolsベースのプロジェクトを実行するためにsetup.pyを準備しているが、Python3.12から依存から外れるので明記

'Topic :: Software Development :: Libraries :: Python Modules',
],
include_package_data=True,
packages=find_packages(),
namespace_packages=['beproud', 'beproud.django'],
test_suite='tests.main',
install_requires=[
'Django>=2.2',
'django-jsonfield>=1.0.1',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

django-jsonfieldはアーカイブ済み&notifyではDjango標準のものを使うようにしたので削除

],
zip_safe=False,
)
setup(test_suite="tests.main")
Copy link
Contributor Author

@kashewnuts kashewnuts Feb 5, 2024

Choose a reason for hiding this comment

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

setup.pyで実行されるコマンドは非推奨になっていっているが、pytest移行が難しそうなのでそこだけ残した (対応Issueは起票済み #16)

@@ -0,0 +1,37 @@
[build-system]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

pytest化されたとき、setup.pyファイルは削除だけすればよいようにsetup.pyで実行していた内容をpyproject.tomlに移植。

Copy link
Member

@shimizukawa shimizukawa left a comment

Choose a reason for hiding this comment

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

LGTM!!

これはAI猫ちゃんです
lgtm-laptop-and-large-cat

Copy link
Contributor

@ae35bp ae35bp left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@@ -42,7 +40,7 @@ class Notification(models.Model):
notify_type = models.CharField(_('notify type'), max_length=100, db_index=True)
media = models.CharField(_('media'), max_length=100, choices=MediaChoices(), db_index=True)

extra_data = jsonfield.JSONField(_('extra data'), null=True, blank=True)
extra_data = models.JSONField(_('extra data'), null=True, blank=True)
Copy link
Contributor

Choose a reason for hiding this comment

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

MEMO: 旧バージョンのbpnotify使ってたプロジェクトの場合は、自プロジェクトでマイグレーションが必要

@kashewnuts kashewnuts merged commit 7a455df into master Feb 7, 2024
18 checks passed
@kashewnuts kashewnuts deleted the feature/dj42 branch February 7, 2024 01:05
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.

3 participants