This repository was archived by the owner on Nov 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
add Python3.9 and Django 2.2 support, drop Python2.7 and Django 1.11support #13
Merged
Merged
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
1c7ce2f
Python3.9対応の記述を追加
imaxyz d1fd47f
READMEにPython3.9を追加
imaxyz 62b696c
Travis CIの設定を削除。Github Actionsの設定を追加。
imaxyz 804876d
toxを使わない場合の動作確認
imaxyz fb40940
toxを使わない場合のgithub actions動作確認
imaxyz 3838514
wip: github actions動作確認
imaxyz 9897f35
wip: github actions動作確認
imaxyz 6ce6c6b
wip: github actions動作確認
imaxyz f66940e
wip: toxで実行するように戻す
imaxyz 8fcfc5f
bpmailerのユニットテストのpathの記述を修正。コメントを追加。
imaxyz 1b33848
Readmeに記載されているパッケージをrequirements.txtに記述。各種設定ファイルにコメントを追記。
imaxyz ebc3d14
コメント文を日本語に変更
imaxyz 3ea2674
コメントを修正
imaxyz 96079fb
Github Actionsの python-version にREADMEで対応の表記がある、2.7を追加
imaxyz e699981
tox-gh-actionsのtox.ini設定に2.7を追加
imaxyz f537538
2.7でエラーになったのでコメントを一旦英語に変更
imaxyz 7888314
python 2.7サポートを外しました
imaxyz a1ce88e
python 2.7サポートを外しました
imaxyz aa6ebde
Travis CIのビルド結果アイコンを、Github Actionsのワークフロー結果のアイコンに変更
imaxyz 733479d
github actionsのワークフローに、これから実行するtoxの動きを確認するコマンドを追加
imaxyz e40af11
何のためにあるrequirements.txtファイルなのかを説明するコメントを記述しました。
imaxyz 6979781
Githu Actionsのジョブを並列実行するように修正
imaxyz ed5c025
READMEにおけるgithub actionsのリンクを修正
imaxyz 76d2427
READMEにおけるgithub actionsのリンクを修正
imaxyz fecf1ae
READMEにおけるgithub actionsのリンクを修正
imaxyz 76b6b17
リンク表現の向上のためREADMEの書式をmarkdownからreStructuredTextに変更
imaxyz fbe6534
Django 1.11を非対応にする
imaxyz 46d2807
Django 1.11のサポートをドロップする旨を反映
imaxyz 848e7f6
不要と思われるジョブの制御を削除
imaxyz 22a2dd6
ファイル名に意図を込めました
imaxyz 411ef07
classifiersの記述を最新の内容に変更
imaxyz a1a425a
パッケージを使用する際に要求するPythonバージョンを指定
imaxyz 6b9b31c
`tox -l` はmasterにマージするワークフローには入れないようにする
imaxyz ba0fbfe
tox.iniの書き方を推敲
imaxyz 2063bf7
依存パッケージの記述を追記。
imaxyz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
bpmailerのユニットテストのpathの記述を修正。コメントを追加。
- Loading branch information
commit 8fcfc5f4b95efce6bf1699803c66a893a46ea376
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Djangoのバージョンが変わったためか?) toxが通らなくなっていたので、Djangoのrun_tests()メソッドのドキュメントを参考に、テストモジュールへのPathを修正しました。
https://github.com/django/django/blob/e541f2d05b88e58c18b82b622aacc38d670eb5f6/django/test/runner.py#L618
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
原因はsetuptoolsの更新のためのようです。 変更自体はまずはこれでよさそう。
このPRで対応するかは任せますが、
python setup.py test
コマンド自体が非推奨になっているのでpytestに置き換えた方がよさそうです。 https://setuptools.pypa.io/en/latest/userguide/commands.html?highlight=test_suite#test-build-package-and-run-a-unittest-suiteThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MUST: レビューのために、この修正の妥当性の説明が欲しいです。
確信はないけどこうしたら動いた、ということでしょうか。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
現在 bpmailerのtoxがfailする原因について
@kashewnuts
testenv - deps
の項目に、次の行を追加することでtoxから実行する単体テストがpassすることを確認しました。※ この改修がsetuptoolsの51.1.2の次のバージョンである51.2.0でマージされたことも確認しました
このことから、今回の作業でbpmailerのtoxがfailしている原因は、setuptoolsが、bpmailerをpy36対応した時の作業の時と比べてバージョンアップしていて、動作が変わっていたことが原因と思いました。
python setup.py test
コマンドが非推奨の件@kashewnuts
#14 でissueにしました。別PRで対応できればと思います。
今回の改修方法の妥当性について
@shimizukawa
最初上記のようにコメントしたのですが、上述のsetuptoolsの調査結果から、Djnagoのバージョンは関係なさそうです。
setuptoolsの改修で使われているメソッドの差分について調べられたらベストなのですが、まだ調べられていません。
改修方法の妥当性について、確信は無いのですが、bpmailerが使用するバージョンのDjnagoのrun_tests()のコメントに
と書かれているのに対して、テストモジュールの上位のパッケージ名(mailer)を指定していることから、Djangoが想定するパラメータ仕様に近づける意味で、適切ではと考えました。
あと、tox.iniのdeps項目に、setuptoolsのバージョンを指定すべきか?を考えました。
現在の改修方法だと、setuptoolsのバージョンが51.2.0未満でも51.2.0以上でもtoxがpassしました。
なので、tox.iniにsetuptoolsのバージョン指定を記述する必要ないと考えました。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OKです。別PRでtest.pyを削除するのであれば、問題ないです。