dss-extensions / DSS-Python

Native, "direct" Python bindings (interface) and misc tools for a custom implementation of OpenDSS (EPRI Distribution System Simulator). Based on CFFI, DSS C-API, aiming for full COM API-level compatibility on Windows, Linux and MacOS, while providing various extensions.
https://dss-extensions.org/DSS-Python/
BSD 3-Clause "New" or "Revised" License
58 stars 4 forks source link

Drop Python 2.7 #19

Closed PMeira closed 3 years ago

PMeira commented 5 years ago

Since most scientific Python modules will drop Python 2.7 in jan/2019, general Python 2.7 usage should start dropping. This is reminder to watch the number of downloads in the following months to decide when to drop Python 2.7 in DSS Python.

Tentative date: may/2019.

PMeira commented 4 years ago

The number of downloads for Python 2.7 is getting low. In 2019, most downloads were from 3.6 and 3.7, while 2.7 had a lower number than 3.5. Soon, it should be dropped, at least for the master branch.

PMeira commented 4 years ago

@kdheepak Any insight on this, especially about ODD.py?

Right now, from pypistats, it seems most users are using Python 3.6 and 3.7, while 2.7, 3.5 and 3.8 have about the small same share of users. Of course Python 3.8 should grow as time goes.

kdheepak commented 4 years ago

I think with the rewrite we can and should drop support for Py27. It'll allow us to use some nicer Python features and make it easier to maintain as well. I know there some users out there that are using Python 2.7 interfaces in some proprietary commercial software and interfacing with OpenDSS in the same process, but they will have to make do with the older versions of these packages.

PMeira commented 3 years ago

Done in my local repo. I'll merge as soon as I finish some other changes for 0.11.x.