-
-
Notifications
You must be signed in to change notification settings - Fork 593
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
Drop python 2 support #394
Conversation
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.
Thanks. This was a preliminary review, I could make a final one when we are ready to remove Python 2 support.
Thanks for your review. |
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.
We can also use pyupgrade to automatically upgrade syntax for Python 3. For example:
pip install -U pyupgrade
pyupgrade `find . -name "*.py" -type f` --py3-plus
Codecov Report
@@ Coverage Diff @@
## master #394 +/- ##
==========================================
+ Coverage 78.93% 80.39% +1.46%
==========================================
Files 30 23 -7
Lines 2250 1658 -592
==========================================
- Hits 1776 1333 -443
+ Misses 474 325 -149
Continue to review full report at Codecov.
|
@peymanslh I'm sorry that recent commits broke your PR. Are you available to rebase it? Otherwise I can do it too. |
The big changes (from #398) are to move |
Remove support python 2 from doc, requirements.txt and config Replace unicode with str Remove dbfpy folder and rename dbfpy3 to dbfpy Remove compat file and remove python2 packages from dependency
Many thanks for your work, I just pushed the main part in master in b3c7145 (outside of this PR) and will finish by cherry-picking the linting fixes in a separate commit. |
Done in bdc8425. Great work! |
Issue: #390
requirements.txt
,travis-ci
,setup.py
,tox.ini
unicode
withstr
dbfpy
folder and renamedbfpy3
todbfpy
compat
file and remove python2 packages from dependency