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

#362: use "entry_points" instead of "scripts" in setup.cfg #438

Merged
merged 4 commits into from
Jun 11, 2019
Merged

Conversation

kmyk
Copy link
Member

@kmyk kmyk commented Jun 10, 2019

#362 を思い出したのでやります。

@kotamanegi たぶん動くのだけど WIndows 環境下でのテストがしんどいのでよかったら手伝ってほしい

@kotamanegi
Copy link

こちらの環境だとtest機能が全く動きません。その他 python3 setup.py test が大量のエラーを吐いて終了します。WSL環境では正常に動作しました。
[ERROR] unrecognizable file found: test\sample-1.in
もしかすると僕の環境のせいかも知れないので他の人にも協力を頼んだ方がよいかもです。

@kmyk
Copy link
Member Author

kmyk commented Jun 10, 2019

確認ありがとうございます。
単に CI まわりが面倒で放置されたのだと思っていましたが、そもそもまったく動かない状況だったんですね。

その出力の感じだと Windows と Unix 系の path の区切り文字列が異なることが問題のように見えます。
たとえば以下などで '/' と書いているのを os.path.sep で置き換えれば解決しそうなので、こちらですこし頑張ってみます。

https://github.com/kmyk/online-judge-tools/blob/639ceb830f5a62a6c825f71dbcf2f7637e84994d/onlinejudge/_implementation/format_utils.py#L55

@kmyk kmyk self-assigned this Jun 10, 2019
@kmyk
Copy link
Member Author

kmyk commented Jun 10, 2019

@kotamanegi oj test が動くようになったと思います。もう一度検証をお願いしたいです。よさそうならマージします。

  • oj test が動かなかった原因はやはりファイルの区切りを / で決め打ちしていたことでした。
  • AWS から Windows Server インスタンスを借りて動作検証をしました。entry_points を使うと oj.exe が生成されることも確認しました。
  • python3 setup.py test は依然として動きませんが、これについては面倒なため諦めています。

@kotamanegi
Copy link

こちらでも動作確認しました。
バグもなさそうなのでマージしても大丈夫だと思います。
Windowsへ移植された事で競プロ生活がはかどりそうです。ありがとうございました。

@kmyk kmyk merged commit 49b2af1 into master Jun 11, 2019
@kmyk kmyk deleted the pull/362 branch June 11, 2019 16:33
@kmyk
Copy link
Member Author

kmyk commented Jun 11, 2019

@kotamanegi マージしました。

現状は CI を回せてないのでそのうちどこかが壊れたりすると思います。なにか気づいたらバグ報告をくれると助かります。よろしくお願いします。

fukatani added a commit to fukatani/online-judge-tools that referenced this pull request Oct 1, 2019
fukatani added a commit to fukatani/online-judge-tools that referenced this pull request Oct 1, 2019
fukatani added a commit to fukatani/online-judge-tools that referenced this pull request Oct 1, 2019
fukatani added a commit to fukatani/online-judge-tools that referenced this pull request Oct 2, 2019
fukatani added a commit to fukatani/online-judge-tools that referenced this pull request Oct 2, 2019
fukatani added a commit to fukatani/online-judge-tools that referenced this pull request Oct 3, 2019
kmyk added a commit that referenced this pull request Oct 14, 2019
fukatani added a commit to fukatani/online-judge-tools that referenced this pull request Oct 14, 2019
fukatani added a commit to fukatani/online-judge-tools that referenced this pull request Oct 14, 2019
fukatani added a commit to fukatani/online-judge-tools that referenced this pull request Oct 14, 2019
fukatani added a commit to fukatani/online-judge-tools that referenced this pull request Oct 14, 2019
fukatani added a commit to fukatani/online-judge-tools that referenced this pull request Oct 14, 2019
fukatani added a commit to fukatani/online-judge-tools that referenced this pull request Oct 14, 2019
fukatani added a commit to fukatani/online-judge-tools that referenced this pull request Oct 14, 2019
fukatani added a commit to fukatani/online-judge-tools that referenced this pull request Oct 14, 2019
fukatani added a commit to fukatani/online-judge-tools that referenced this pull request Oct 15, 2019
fukatani added a commit to fukatani/online-judge-tools that referenced this pull request Oct 15, 2019
fukatani added a commit to fukatani/online-judge-tools that referenced this pull request Oct 15, 2019
fukatani added a commit to fukatani/online-judge-tools that referenced this pull request Oct 15, 2019
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.

2 participants