-
Notifications
You must be signed in to change notification settings - Fork 804
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 support for python2 #411
Conversation
Codecov Report
@@ Coverage Diff @@
## master #411 +/- ##
==========================================
- Coverage 88.11% 87.88% -0.24%
==========================================
Files 83 62 -21
Lines 3593 3285 -308
==========================================
- Hits 3166 2887 -279
+ Misses 427 398 -29
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #411 +/- ##
==========================================
- Coverage 88.06% 87.85% -0.21%
==========================================
Files 83 62 -21
Lines 3593 3285 -308
==========================================
- Hits 3164 2886 -278
+ Misses 429 399 -30
Continue to review full report at Codecov.
|
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.
Thank you!
Looks good, left some minor comments. As you've said this is blocked on v0.6/#404
@@ -39,9 +39,6 @@ version_check = "0.1.5" | |||
[features] | |||
default = [] | |||
|
|||
# Use this feature when building python2 binding. | |||
python2 = [] | |||
|
|||
# Use this feature when building python3 binding. | |||
python3 = [] |
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 don't need a python3 without the python2 feature
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.
setuptools-rust apparently assumes it. I've left it in for now with a note.
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.
Oh right. I've created PyO3/setuptools-rust#53 for fixing that long term, but for now a comment is good
guide/src/class.md
Outdated
|
||
* `fn __unicode__(&self) -> PyResult<PyUnicode>` | ||
|
||
On Python 2.7, provides the conversion to `unicode`. | ||
On Python 3.x, `__unicode__` is allowed but has no effect. | ||
`__unicode__` is allowed but has no effect. |
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.
Please add a note that this exists (only?) for historical reasons
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.
I've just removed __unicode__
.
@konstin please take a look. |
Please run |
@konstin ok, the build's green. |
Thank you! |
This closes #138. It depends on #404.