dateparser icon indicating copy to clipboard operation
dateparser copied to clipboard

fix: change tzlocal version

Open pasenidis opened this issue 2 years ago • 7 comments

tzlocal version 4.0 just dropped and it doesn't work on many devices. wouldn't it be nice to set the dependency to a specific version that works everywhere before the maintainers of tzlocal will figure it out?

pasenidis avatar Oct 23 '21 19:10 pasenidis

If version 4 does not work with dateparser, then we can add <4 to the version requirement until we find time to add support for 4+. But we should not freeze a dependency version in a library, we should give a range of supported versions instead.

Gallaecio avatar Oct 23 '21 19:10 Gallaecio

Codecov Report

Merging #1006 (b87e6d4) into master (8af4f29) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1006   +/-   ##
=======================================
  Coverage   98.29%   98.29%           
=======================================
  Files         234      234           
  Lines        2694     2694           
=======================================
  Hits         2648     2648           
  Misses         46       46           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 8af4f29...b87e6d4. Read the comment docs.

codecov[bot] avatar Oct 23 '21 19:10 codecov[bot]

Also, changes in tox.ini won’t matter much, you need to change setup.py.

Gallaecio avatar Oct 23 '21 19:10 Gallaecio

should I create another PR?

pasenidis avatar Oct 23 '21 19:10 pasenidis

No need. Add <4 to the tzlocal restriction of setup.py, with a comment to indicate the reason why version 4 does not work.

How complex are the changes to tzlocal? Maybe it would be easier to change dateparser to support the new version as well.

Gallaecio avatar Oct 23 '21 19:10 Gallaecio

I haven't looked into it

pasenidis avatar Oct 23 '21 20:10 pasenidis

For the proper fix there is https://github.com/scrapinghub/dateparser/issues/1001 reported.

Gallaecio avatar Oct 23 '21 20:10 Gallaecio

Hi @pasenidis @Gallaecio, Is this problem still relevant, or can we close this issue?

serhii73 avatar Nov 10 '22 19:11 serhii73

Closing as per https://github.com/scrapinghub/dateparser/issues/1001#issuecomment-1311890482

Gallaecio avatar Nov 14 '22 08:11 Gallaecio