◄ ► | Edit | Home | Admin | en de fr et | Sign in

#3270 (Move from unipath to pathlib)

by Luc Saffre · in Developers · assigned to Luc Saffre

Summary

[url github.com/mikeorr/Unipath Unipath] went into maintenance mode when Python 3.4 introduced pathlib (another object-oriented path library), So we replace all unipath.Path objects by pathlib.Path objects.

Children

Comments

  • 5 years, 6 months ago by Luc Saffre about #3270 (Move from unipath to pathlib) : I am afraid that changing it in Lino might be cause issues that are not covered by any test case.
  • 5 years, 6 months ago by Luc Saffre about #3270 (Move from unipath to pathlib) : This is not finished, but ATM there is nothing urgent. The next step will be migrate everything else at once.
  • 5 years, 6 months ago by Sharif Mehedi about #3270 (Move from unipath to pathlib) (1 reply) : It seems there are still some issues with migrating unipath to pathlib (that's what I think it is).
    Traceback (most recent call last): File "/builds/lino-framework/book/tests/test_misc.py", line 32, in test_dump2py tmp = p.child('tmp').absolute() AttributeError: 'PosixPath' object has no attribute...
  • 5 years, 7 months ago by Luc Saffre about #3270 (Move from unipath to pathlib) : I released  rstgen 21.3.0 to PyPI (it caused getlino to fail on travis because it relied on unipath being installed by atelier). Now it also uses pathlib.
  • 5 years, 7 months ago by Luc Saffre about #3270 (Move from unipath to pathlib) : The surprise was because I was still using invoke-1.3.0 on my machine. After "pip install -U invoke" it worked for me as well.
  • 5 years, 7 months ago by Luc Saffre about #3270 (Move from unipath to pathlib) : I got your email with the test report and the patch. Both are valuable. Seems that we must indeed run "ls" in the sheller with some option to sort the files. The atelier test suite has quite low coverage, so as expected there are still surprises. The first surprise (only on my computer is that "go a...
  • 5 years, 7 months ago by Luc Saffre about #3270 (Move from unipath to pathlib) : Mehedi, here might be an exercise for you: Learn the standard [url docs.python.org/3/library/pathlib.html Python pathlib package]. Get the latest snapshot of [url github.com/lino-framework/atelier atelier]. In your copy of the atelier repo, change all "from unipath import Path" to "from pathlib impo...