Skip to content

Commit

Permalink
added python 3.12 (#488)
Browse files Browse the repository at this point in the history
* added python 3.12

* remove slice tests
  • Loading branch information
nwlandry authored Oct 28, 2023
1 parent 2eea477 commit de7b347
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.11'
python-version: '3.12'
- name: Install packages
run: |
python -m pip install --upgrade pip wheel setuptools
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v2

Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:
strategy:
matrix:
os: [ubuntu, macos, windows]
python-version: ['3.8', '3.9', '3.10', '3.11']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v2

Expand Down
2 changes: 1 addition & 1 deletion docs/source/about.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ If that command does not work, you may try the following instead
pip install -e .\[all\]
XGI was developed and tested for Python 3.8-3.11 on Mac OS, Windows, and Ubuntu.
XGI was developed and tested for Python 3.8-3.12 on Mac OS, Windows, and Ubuntu.


Academic References
Expand Down
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ If that command does not work, you may try the following instead
pip install -e .\[all\]
XGI was developed and tested for Python 3.8-3.11 on Mac OS, Windows, and Ubuntu.
XGI was developed and tested for Python 3.8-3.12 on Mac OS, Windows, and Ubuntu.


Corresponding Data
Expand Down
4 changes: 0 additions & 4 deletions tests/core/test_dihypergraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,6 @@ def test_memberships(diedgelist1):
assert H.nodes([1, 2, 6]).memberships() == {1: {0}, 2: {0}, 6: {1}}
with pytest.raises(IDNotFound):
H.nodes.memberships(0)
with pytest.raises(TypeError):
H.nodes.memberships(slice(1, 4))


def test_dimemberships(diedgelist1):
Expand All @@ -114,8 +112,6 @@ def test_dimemberships(diedgelist1):
}
with pytest.raises(IDNotFound):
H.nodes.memberships(0)
with pytest.raises(TypeError):
H.nodes.memberships(slice(1, 4))


def test_add_edge_accepts_different_types():
Expand Down
12 changes: 0 additions & 12 deletions tests/core/test_diviews.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,6 @@ def test_edge_members(diedgelist2):
with pytest.raises(XGIError):
H.edges.members(dtype=np.array)

with pytest.raises(TypeError):
H.edges.members(slice(1, 4, 1))

with pytest.raises(TypeError):
H.edges.members([1, 2])

Expand All @@ -130,9 +127,6 @@ def test_edge_dimembers(diedgelist2):
with pytest.raises(XGIError):
H.edges.dimembers(dtype=np.array)

with pytest.raises(TypeError):
H.edges.dimembers(slice(1, 4, 1))

with pytest.raises(TypeError):
H.edges.dimembers([1, 2])

Expand All @@ -150,9 +144,6 @@ def test_edge_tail(diedgelist2):
with pytest.raises(XGIError):
H.edges.tail(dtype=np.array)

with pytest.raises(TypeError):
H.edges.tail(slice(1, 4, 1))

with pytest.raises(TypeError):
H.edges.tail([1, 2])

Expand All @@ -169,9 +160,6 @@ def test_edge_head(diedgelist2):
with pytest.raises(XGIError):
H.edges.head(dtype=np.array)

with pytest.raises(TypeError):
H.edges.head(slice(1, 4, 1))

with pytest.raises(TypeError):
H.edges.head([1, 2])

Expand Down
2 changes: 0 additions & 2 deletions tests/core/test_hypergraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,6 @@ def test_memberships(edgelist1):
assert H.nodes([1, 2, 6]).memberships() == {1: {0}, 2: {0}, 6: {2, 3}}
with pytest.raises(IDNotFound):
H.nodes.memberships(0)
with pytest.raises(TypeError):
H.nodes.memberships(slice(1, 4))


def test_add_edge():
Expand Down
3 changes: 0 additions & 3 deletions tests/core/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,6 @@ def test_edge_members(edgelist3):
with pytest.raises(XGIError):
H.edges.members(dtype=np.array)

with pytest.raises(TypeError):
H.edges.members(slice(1, 4, 1))

with pytest.raises(TypeError):
H.edges.members([1, 2])

Expand Down

0 comments on commit de7b347

Please sign in to comment.