Skip to content

(Closes #307) drop Python 2#322

Merged
rupertford merged 10 commits intomasterfrom
307_byebye_py2
May 9, 2022
Merged

(Closes #307) drop Python 2#322
rupertford merged 10 commits intomasterfrom
307_byebye_py2

Conversation

@arporter
Copy link
Member

No description provided.

@codecov
Copy link

codecov bot commented Mar 23, 2022

Codecov Report

Merging #322 (f3031fb) into master (848c47d) will decrease coverage by 0.05%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #322      +/-   ##
==========================================
- Coverage   91.33%   91.28%   -0.06%     
==========================================
  Files          36       36              
  Lines       13163    13046     -117     
==========================================
- Hits        12023    11909     -114     
+ Misses       1140     1137       -3     
Impacted Files Coverage Δ
src/fparser/common/utils.py 76.07% <ø> (-2.56%) ⬇️
src/fparser/__init__.py 100.00% <100.00%> (ø)
src/fparser/common/readfortran.py 94.74% <100.00%> (+0.03%) ⬆️
src/fparser/common/sourceinfo.py 100.00% <100.00%> (ø)
src/fparser/common/tests/test_readfortran.py 99.11% <100.00%> (-0.01%) ⬇️
src/fparser/common/tests/test_sourceinfo.py 96.77% <100.00%> (-0.08%) ⬇️
src/fparser/common/tests/test_utils.py 100.00% <100.00%> (ø)
src/fparser/two/Fortran2003.py 93.50% <100.00%> (-0.02%) ⬇️
src/fparser/two/utils.py 95.46% <100.00%> (+0.08%) ⬆️
src/fparser/common/base_classes.py 69.18% <0.00%> (+0.04%) ⬆️
... and 4 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 848c47d...f3031fb. Read the comment docs.

@arporter
Copy link
Member Author

I have some coverage issues but precisely what with is hard to say as CodeCov is currently refusing to show me the annotated source files.

@arporter
Copy link
Member Author

Finally dealt with the newly-uncovered lines. Also took the opportunity to fix (some of) the low-hanging pylint complaints.
Read for a first look now from @sergisiso or @rupertford.

Copy link
Collaborator

@rupertford rupertford left a comment

Choose a reason for hiding this comment

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

Looks good. Comments are inline. Could you also grep for import six and remove where appropriate as there seem to be quite a few of these left in the code.

@rupertford rupertford added reviewed with actions PR has been reviewed and is back with developer and removed under review labels May 3, 2022
@arporter arporter added in progress and removed reviewed with actions PR has been reviewed and is back with developer labels May 9, 2022
@arporter
Copy link
Member Author

arporter commented May 9, 2022

Ready for next review from @rupertford. Discovered that we're supposed to specify Python versions in quotes in the GHA yml file (actions/setup-python#160).

Copy link
Collaborator

@rupertford rupertford left a comment

Choose a reason for hiding this comment

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

All issues have been addressed. Approving.

@rupertford rupertford added ready for merge PR is waiting on final CI checks before being merged. and removed under review labels May 9, 2022
@rupertford rupertford merged commit 27628aa into master May 9, 2022
@rupertford rupertford deleted the 307_byebye_py2 branch May 9, 2022 16:58
ZedThree added a commit that referenced this pull request May 10, 2022
* master:
  pr #322. Updated changelog ready for merge to master.
  #322 try quoting python versions in GHA yml
  #322 updates for review
  #323 update changelog
  Use Sphinx roles to some docstrings
  Add some test docstrings
  Move entity decl test under f2003 directory
  Auto-use parser creation fixtures
  Add more tests for `get_name` methods
  Add `.get_name()` to `Function_Stmt` and `Entity_Decl`
ZedThree added a commit that referenced this pull request May 10, 2022
* master:
  pr #322. Updated changelog ready for merge to master.
  #322 try quoting python versions in GHA yml
  #322 updates for review
  #323 update changelog
  Use Sphinx roles to some docstrings
  Add some test docstrings
  Move entity decl test under f2003 directory
  Auto-use parser creation fixtures
  Add more tests for `get_name` methods
  Add `.get_name()` to `Function_Stmt` and `Entity_Decl`
ZedThree added a commit that referenced this pull request May 11, 2022
* master:
  pr #322. Updated changelog ready for merge to master.
  #322 try quoting python versions in GHA yml
  #322 updates for review
  #323 update changelog
  Use Sphinx roles to some docstrings
  Add some test docstrings
  Move entity decl test under f2003 directory
  Auto-use parser creation fixtures
  Add more tests for `get_name` methods
  Add `.get_name()` to `Function_Stmt` and `Entity_Decl`
  #322 rm py2-specific code from Fortran2003.py
  #322 fix-up coverage and tidy some pylint issues
  #322 fix links and formatting in dev guide
  #322 update dev guide
  #322 remove the make_clean_tmpfile utility and associated tests
  #307 change GHA to run with python 3.6, 3.8 and 3.10
ZedThree added a commit to PlasmaFAIR/fparser that referenced this pull request Jun 9, 2022
* master: (44 commits)
  stfc#336 update changelog
  stfc#343 update version to 0.0.15
  Update changelog
  stfc#328 update changelog
  Rename `BeginStatement.handle_unknown_item`
  Return `None` from unimplemented function
  Use `f` prefix on all lines of multiline f-string
  Return `None` explicitly from some functions
  Remove redundant `return` statements from the end of functions
  Convert some `str.format()` calls to f-strings
  Remove py2 `unicode` string literal
  Remove py2 `unicode` special handling
  Change type in docstring to py3 style hint
  Remove reference to py2 from comments/docstring
  Revert accidental removal of test case
  Fix wrong variable in error message
  Remove duplicated `str` in `isinstance` argument
  pr stfc#322. Updated changelog ready for merge to master.
  stfc#322 try quoting python versions in GHA yml
  stfc#322 updates for review
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready for merge PR is waiting on final CI checks before being merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants