-
Notifications
You must be signed in to change notification settings - Fork 94
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
Support Pint 0.24.4 / openff-units 0.3.0
#1990
Merged
Merged
Changes from 23 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
705853c
Use Pint 0.24.4
mattwthompson 8886200
Shim
mattwthompson cd1a7c4
Small reorg
mattwthompson 6170e8c
Merge remote-tracking branch 'upstream/main' into pint-0.24.4
mattwthompson 6a51948
Use possible 0.3.0
mattwthompson 5cf8928
Try using Pint 0.24
mattwthompson 6c60204
Debug
mattwthompson b8375fe
Debug
mattwthompson 911593d
Be sad about typing regressions
mattwthompson d2ab0cf
Debug
mattwthompson 880b653
Don't run examples
mattwthompson 2a6350f
Debug
mattwthompson aa9c49e
Debug
mattwthompson f4eaef6
Debug
mattwthompson 2504d7d
Do not trust `Unit.compatible_units`
mattwthompson 082c7b6
Do not trust `compatible_units` in topology processing
mattwthompson 563ae16
Fix
mattwthompson 0bb8921
No NAGL
mattwthompson 81bbed4
Remove shim
mattwthompson a1b6390
Revert "No NAGL"
mattwthompson 8d72cc8
Revert "Don't run examples"
mattwthompson 62b62ce
Test both "new" and "old" upstreams
mattwthompson 3b4eb30
Merge branch 'main' into pint-0.24.4
j-wags 6faac9f
Merge remote-tracking branch 'upstream/main' into pint-0.24.4
mattwthompson 1efa553
Update release history
mattwthompson cd29a2d
Merge remote-tracking branch 'upstream/pint-0.24.4' into pint-0.24.4
mattwthompson a488524
Minor typo
mattwthompson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ defaults: | |
jobs: | ||
test: | ||
if: (github.event_name == 'schedule' && github.repository == 'openforcefield/openff-toolkit') || (github.event_name != 'schedule') | ||
name: Test on ${{ matrix.os }}, Python ${{ matrix.python-version }}, RDKit=${{ matrix.rdkit }}, OpenEye=${{ matrix.openeye }} | ||
name: Test on ${{ matrix.os }}, Python ${{ matrix.python-version }}, RDKit=${{ matrix.rdkit }}, OpenEye=${{ matrix.openeye }} "new Pint" {{ matrix.new-pint }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: true # TODO: flip to false before merge | ||
|
@@ -26,6 +26,7 @@ jobs: | |
python-version: ["3.10", "3.11", "3.12"] | ||
rdkit: [true, false] | ||
openeye: [true, false] | ||
new-pint: [false, true] | ||
exclude: | ||
- rdkit: false | ||
openeye: false | ||
|
@@ -79,6 +80,13 @@ jobs: | |
OE_LICENSE_TEXT: ${{ secrets.OE_LICENSE }} | ||
run: echo "${OE_LICENSE_TEXT}" > ${OE_LICENSE} | ||
|
||
- name: Install Pint 0.24.4 and `openff-units` branch | ||
if: matrix.new-pint | ||
run: | | ||
python -m pip install \ | ||
"pint==0.24.4" \ | ||
git+https://github.com/openforcefield/[email protected] | ||
|
||
- name: Install package | ||
run: | | ||
# While Interchange is being installed with pip, there is no need to | ||
|
@@ -142,10 +150,10 @@ jobs: | |
run: | | ||
PYTEST_ARGS+=" --ignore=openff/toolkit/_tests/test_examples.py" | ||
PYTEST_ARGS+=" --ignore=openff/toolkit/_tests/test_links.py" | ||
|
||
# TODO: Flip back to schedule condition before merge | ||
PYTEST_ARGS+=" --runslow" | ||
|
||
if [[ "$GITHUB_EVENT_NAME" == "schedule" ]]; then | ||
PYTEST_ARGS+=" --runslow" | ||
fi | ||
python -c "from pint import __version__; print(__version__)" | ||
python -m pytest --durations=20 $PYTEST_ARGS $COV openff/toolkit/_tests | ||
|
||
- name: Run code snippets in docs | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,6 +63,10 @@ jobs: | |
OE_LICENSE_TEXT: ${{ secrets.OE_LICENSE }} | ||
run: echo "${OE_LICENSE_TEXT}" > ${OE_LICENSE} | ||
|
||
- name: Install Pint 0.24.4 and `openff-units` branch | ||
run: | | ||
pip install "pint==0.24.4" git+https://github.com/openforcefield/[email protected] | ||
|
||
- name: Install package | ||
run: python -m pip install . | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Everything touching this variable could be dropped before merge, but I think it's important to show changes with "new" and existing versions of the upsreams