Skip to content

Commit

Permalink
Merge pull request #543 from marrink-lab/nx-3
Browse files Browse the repository at this point in the history
Networkx 3
  • Loading branch information
pckroon authored Sep 19, 2023
2 parents 154829d + 0d338d7 commit c14cf44
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 19 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@ jobs:

strategy:
matrix:
py_version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
py_version: ["3.8", "3.9", "3.10", "3.11"]
include:
- py_version: "3.7"
WITH_CODECOV: true
- py_version: "3.8"
WITH_CODECOV: true
- py_version: "3.9"
Expand Down Expand Up @@ -67,10 +65,10 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: '3.11'
cache: pip
cache-dependency-path: |
**/setup.cfg
Expand All @@ -92,10 +90,10 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: '3.11'
cache: pip
cache-dependency-path: |
**/setup.cfg
Expand All @@ -110,7 +108,7 @@ jobs:
- name: Run docs
run: |
mkdir -p doc/source/_static
sphinx-build -EnW -b html doc/source/ doc/build/html
sphinx-build -EW -b html doc/source/ doc/build/html

deploy:
Expand All @@ -119,10 +117,10 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: '3.11'
cache: pip
cache-dependency-path: |
**/setup.cfg
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@ jobs:

strategy:
matrix:
py_version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
py_version: ["3.8", "3.9", "3.10", "3.11"]
include:
- py_version: "3.7"
WITH_CODECOV: true
- py_version: "3.8"
WITH_CODECOV: true
- py_version: "3.9"
Expand Down Expand Up @@ -70,10 +68,10 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: '3.11'
cache: pip
cache-dependency-path: |
**/setup.cfg
Expand All @@ -95,10 +93,10 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: '3.11'
cache: pip
cache-dependency-path: |
**/setup.cfg
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ setup-requires =
install-requires = # ?? requires-dist?
pbr
numpy
networkx ~= 2.0
networkx >= 2.0
scipy
zip-safe = False

Expand Down
2 changes: 1 addition & 1 deletion vermouth/tests/test_average_beads.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def mol_with_subgraph():
"""
Create a molecule with a subgraph under the "graph" attribute of each node.
"""
mol = nx.OrderedGraph()
mol = nx.Graph()

subgraph = nx.Graph()
subgraph.add_nodes_from((
Expand Down

0 comments on commit c14cf44

Please sign in to comment.