Closed zerothi closed 3 years ago
The point about scripts and entry_points
remains open.
I have added a commit that re-enables the travis tests for Py3, so now py2 and py3 are both tested.
At the current time, perhaps it would be more wise to simply 'move' to Python 3 entirely (and setuptools rather than distutils, which I believe is necessary for entry_points). Python 2.7 is completely end-of-(extended-)life in a year anyway.
Personally, I'd love to be able to use f-strings (introduced in Python 3.6), so that is one possible minimum version to set. It is also the version that the latest Ubuntu LTS (18.04) shipped with. The one before that (16.04) has py3.4, so that is another possible minimum version to set.
Thanks for your inputs, @jonaslb. Indeed f-strings look nice. Eventually I guess we should move to Py3, but I am a little lazy in that respect and hesitant to exclude Py2 before it is strictly necessary.
I agree that we should eventually move to Py3. However, Inelastica has been a Py2-only for quite some time. And only recently began the Py3 transition. So I think it would be wise to keep it Py2 compliant for some time still.
I think that Inelastica could start fully migrating once all major tools have moved to Py3, see https://python3statement.org/
For sisl
I will only support 3.6 from mid 2019, see zerothi/sisl#101.
I have just corrected my point on entry_points
. Sadly, they don't allow the same PYTHONPATH installation directory for both py2 and py3.
They do however solve the problem of fixing the she-bang line to the python executable used for installing the package. So anyways it would be highly recommendable.
These things should be added
from __future__ import print_function, division
print ...
calls toprint(...)
object
(the default behaviour in Py3)entry_points
.