Skip to content

Commit

Permalink
Merge pull request #1443 from bgyori/python312
Browse files Browse the repository at this point in the history
Extend to Python 3.12 compatibility
  • Loading branch information
bgyori authored May 15, 2024
2 parents 4e3be44 + 8919f13 commit afa7d81
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.10"]
python-version: ["3.8", "3.12"]
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
Expand Down Expand Up @@ -91,7 +91,7 @@ jobs:
#export NOSE_IGNORE_FILES="find_full_text_sentence.py";
#- cd $TRAVIS_BUILD_DIR
# Now run all INDRA tests
pytest -v -m "$PYTESTMARKS" --ignore-glob='*tees*' --ignore-glob='*isi*' --ignore-glob='*test_reach*' --cov=indra --cov-report=term-missing --doctest-modules --durations=10 indra/tests
pytest -v -m "$PYTESTMARKS" --ignore-glob='*tees*' --ignore-glob='*isi*' --ignore-glob='*test_reach*' --cov=indra --cov-report=term-missing --doctest-modules --durations=10 --continue-on-collection-errors indra/tests
pytest -v -m "$PYTESTMARKS" indra/tests/test_reach.py
# TEES tests
#- python -m nose_notify indra/tests/test_tees.py --slack_hook $SLACK_NOTIFY_HOOK
Expand Down
9 changes: 8 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@ def main():
'markupsafe<2.1.0'],
'sklearn_belief': ['scikit-learn'],
'owl': ['pronto'],
'tests': ['pytest', 'pytest-cov'],
'tests':
['pytest',
'pytest-cov',
'pynose' # This is needed for PySB with_model in
# some tests
],
}
extras_require['all'] = list({dep for deps in extras_require.values()
for dep in deps})
Expand Down Expand Up @@ -117,6 +122,8 @@ def main():
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Topic :: Scientific/Engineering :: Bio-Informatics',
'Topic :: Scientific/Engineering :: Chemistry',
'Topic :: Scientific/Engineering :: Mathematics',
Expand Down

0 comments on commit afa7d81

Please sign in to comment.