-
Notifications
You must be signed in to change notification settings - Fork 468
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
make use of most common content locales #805
Conversation
Hmm… I don’t see how these changes could cause those CI issues 😕 |
Hi @mirceachira, @Gallaecio When running Those errors in the pipelines are happening because CLDR included new languages, and when we try to import the languages from the list of languages ( I think the new locales are: ccp, ceb, ff-Latn, ia, jv, ku, mi, sd, tg, tt, wo, xh, yue-Hans and yue-Hant. To create the files for the new languages we should run:
However, we should also:
@mirceachira would you like to work on this? I think you could create a separate PR just running the three scripts (and updating the docs and the Of course, if you don't want/ you can't I can do it. :) |
Hey @noviluni for sure I would like to pick that up! Thanks for the detailed tips on it! |
9a3cd23
to
07f8cb1
Compare
Hi @mirceachira, you will be able run However, I checked what you did and I think this is wrong: https://github.com/scrapinghub/dateparser/pull/805/files#diff-1c848ec911779bd8e06fea6e61745c57c43a463bab86d8ef955f2e29ec8484d0R60 because is generating multiple times the same language in the On the other hand, I would really appreciate it if you add the date when that list was created in this comment: https://github.com/scrapinghub/dateparser/pull/805/files#diff-1c848ec911779bd8e06fea6e61745c57c43a463bab86d8ef955f2e29ec8484d0R15 to allow us to update in in the future. |
Hi @mirceachira, we merged the other PR (#825), could you rebase this PR against master? 🙂 |
07f8cb1
to
fc772d1
Compare
Codecov Report
@@ Coverage Diff @@
## master #805 +/- ##
==========================================
- Coverage 98.37% 98.15% -0.22%
==========================================
Files 231 229 -2
Lines 2518 2495 -23
==========================================
- Hits 2477 2449 -28
- Misses 41 46 +5
Continue to review full report at Codecov.
|
@noviluni simply running the script generates the same problem you mentioned here #805 (comment) Though there are much fewer tests that required fixing now after #825 . I added the languages accordingly to 'avoid_languages' and fixed the remaining issues. Please note that I removed this test: 11ba3fb |
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.
Hi @mirceachira!
I think we are almost ready to merge this! I'm ok with the changes in the tests, but I would need you to revert the avoid_languages
set as suggested and run this: python dateparser_scripts/order_languages.py
again.
After that I think we will be able to merge it! 🚀
Co-authored-by: Marc Hernández <noviluni@gmail.com>
Co-authored-by: Marc Hernández <noviluni@gmail.com>
I've been opening and closing this PR because we just switched from travis-ci.org to travis-ci.com but the checks show the old travis-ci.org... Anyway, it seems that all tests passed in travis-ci.com: https://travis-ci.com/github/scrapinghub/dateparser/builds/204189662 |
Ok, this is a hard PR to review 😅 You should change the "in" code by "id" in the |
Hi @mirceachira, thanks for fixing this. As travis-ci stopped working we can't run the tests, so I can't merge this. I started migrating to |
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.
LGTM!
closes #714