-
Notifications
You must be signed in to change notification settings - Fork 0
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 3.9 support and add DOLFINx v0.8 support #22
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #22 +/- ##
=======================================
+ Coverage 96.3% 96.9% +0.7%
=======================================
Files 1 1
Lines 186 191 +5
Branches 37 38 +1
=======================================
+ Hits 179 185 +6
+ Misses 5 4 -1
Partials 2 2 ☔ View full report in Codecov by Sentry. |
@samcunliffe not sure if you have bandwidth to review this at the moment - no problem if you want to leave it till you're on project in August! From meeting last week it seems that The codecov/patch fail I think is just because codecov doesn't seem to hit bits of code in |
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.
Nice!
Yeah, the type-hints become much nicer. And ...
think is just because codecov doesn't seem to hit bits of code in if TYPECHECKING blocks.
Yeah, we don't coverage-check that so it's unavoidable.
@@ -23,7 +23,7 @@ jobs: | |||
- name: Set up Python | |||
uses: actions/setup-python@v4 | |||
with: | |||
python-version: 3.9 | |||
python-version: 3.x |
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.
TIL you can do this!
except ImportError: | ||
# Compatibility w [email protected]: if the new functionspace function is not in DOLFINx | ||
# then use the class constructor directly. | ||
from dolfinx.fem import FunctionSpace as functionspace # noqa: N813 |
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.
👍
Adds DOLFINx v0.8 to test matrix and updates usages of DOLFINx API to ensure compatibility across versions v0.6 through v0.8.
Also drops Python 3.9 support on the basis this is now > 3 years old and out of both NEP29 and SPEC0 recommended support windows, and our test matrix is getting a bit unwieldy.
Also updates our type hints to use
|
in place of explicitUnion
orOptional
where appropriate, and addsstrict=True
argument to a call tozip
.