Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Drop Python 2 support#1158

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
lostmsu merged 8 commits intopythonnet:masterfromfilmor:drop-python2
Jun 20, 2020
Merged

Drop Python 2 support#1158

lostmsu merged 8 commits intopythonnet:masterfromfilmor:drop-python2
Jun 20, 2020

Conversation

filmor
Copy link
Member

What does this implement/fix? Explain your changes.

Drops support for and all references to Python 2.

Does this close any currently open issues?

Can't find it right now, but I think we had an issue discussing this.

Any other comments?

-/-

Checklist

Check all those that are applicable and complete.

  • Make sure to include one or more tests for your change
  • If an enhancement PR, please create docs and at best an example
  • Add yourself toAUTHORS
  • Updated theCHANGELOG

// We needs to replace all public constants to static readonly fields to allow
// binary substitution of different Python.Runtime.dll builds in a target application.

public static string pyversion => _pyversion;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

@filmor I think a unit test depends on these public properties

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Which one? I was used in a few places, but only to check for Python 2 vs 3.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

@filmor you already removed them actually from TestPythonEngineProperties.cs
Seems like this might require an entry in the changelog since its a breaking change technically

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Yeah, I could do that, butpyversion etc. where never really consumables in the first place. I'd like to move the wholeRuntime tointernal as a single Changelog entry, no need to do this for every single component.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

@filmor movingRuntime tointernal deserves its own tracking issue.

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Agreed:#1167

@koubaa
Copy link
Contributor

@filmor have you tried just changing the runtime and leaving the tests as-is for a first pass? I looked through the runtime and didn't see a mistake so I think I would start by ruling out problems with the test updating (which can easily be done in a followon branch)

@filmor
Copy link
MemberAuthor

Not needed. The failures before were due to one place where I forgot to replacetext_type bystr and instead removed it entirely, so insteadrepr was called which was buggy at the time. I fixed that (and a few other missing replacements oflong and a missing import ofoperator) and now tests are passing. I'm not a big fan of doing multiple PRs for the same "change".

koubaa reacted with thumbs up emoji

@codecov-commenter
Copy link

codecov-commenter commentedJun 19, 2020
edited
Loading

Codecov Report

Merging#1158 intomaster willdecrease coverage by0.27%.
The diff coverage is100.00%.

Impacted file tree graph

@@            Coverage Diff             @@##           master    #1158      +/-   ##==========================================- Coverage   86.53%   86.25%   -0.28%==========================================  Files           1        1                Lines         297      291       -6     ==========================================- Hits          257      251       -6  Misses         40       40
FlagCoverage Δ
#setup_linux64.94% <60.00%> (-0.04%)⬇️
#setup_windows72.50% <100.00%> (+0.45%)⬆️
Impacted FilesCoverage Δ
setup.py86.25% <100.00%> (-0.28%)⬇️

Continue to review full report at Codecov.

Legend -Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered byCodecov. Last update140a9b8...cc4211c. Read thecomment docs.

Copy link
Member

@lostmsulostmsu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

OK by me after a couple minor fixes

// We needs to replace all public constants to static readonly fields to allow
// binary substitution of different Python.Runtime.dll builds in a target application.

public static string pyversion => _pyversion;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

@filmor movingRuntime tointernal deserves its own tracking issue.

@lostmsu
Copy link
Member

Also, if you don't increase the coverage back to the target, or lower the target a bit, it is going to complain on every subsequent PR.

@filmor
Copy link
MemberAuthor

The coverage is always against master, it will not repeatedly complain.

@lostmsulostmsu self-requested a reviewJune 20, 2020 00:42
@lostmsulostmsu merged commitec424bb intopythonnet:masterJun 20, 2020
AlexCatarino pushed a commit to QuantConnect/pythonnet that referenced this pull requestJun 29, 2020
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@koubaakoubaakoubaa left review comments

@lostmsulostmsulostmsu approved these changes

Assignees

@filmorfilmor

@lostmsulostmsu

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@filmor@koubaa@codecov-commenter@lostmsu

[8]ページ先頭

©2009-2025 Movatter.jp