Skip to content

Commit

Permalink
Bump ton of dependencies (#92)
Browse files Browse the repository at this point in the history
* Bump everything

* Fix labeled free scale graph generation

In newer versions create_using argument is missing

* Fix number of edges for fast binomial graph

networkx/networkx@dc3c486 changed
algorithm in NetworkX 2.7

* Change sphinx theme activation

html_theme_path no longer needed as of their tutorial
  • Loading branch information
WoWaster authored Feb 24, 2024
1 parent 2f5668b commit cccddb9
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/coverage.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 ]
python-version: [ 3.9 ]
steps:
- uses: actions/checkout@v3

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ 3.8 ]
python-version: [ 3.9 ]
steps:
- uses: actions/checkout@v3

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.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 ]
python-version: [ 3.9 ]
steps:
- uses: actions/checkout@v3

Expand All @@ -18,7 +18,7 @@ jobs:

- name: Install pre-commit
run: |
python -m pip install pre-commit==2.20.0
python -m pip install pre-commit==3.6.2
pre-commit install
- name: Run pre-commit
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
macos-latest,
windows-latest,
]
python-version: [ 3.8, 3.9 ]
python-version: [ 3.9 ]
steps:
- uses: actions/checkout@v3

Expand Down
2 changes: 1 addition & 1 deletion cfpq_data/graphs/generators/fast_labeled_binomial_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def fast_labeled_binomial_graph(
>>> g.number_of_nodes()
42
>>> g.number_of_edges()
722
711
Returns
-------
Expand Down
1 change: 0 additions & 1 deletion cfpq_data/graphs/generators/labeled_scale_free_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ def labeled_scale_free_graph(
delta_in=delta_in,
delta_out=delta_out,
seed=seed,
create_using=nx.MultiDiGraph,
)

random.seed(seed)
Expand Down
3 changes: 0 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
import sys
from datetime import date

from pydata_sphinx_theme import get_html_theme_path

sys.path.insert(0, os.path.abspath(".."))

# -- Project information -----------------------------------------------------
Expand Down Expand Up @@ -123,7 +121,6 @@
# a list of builtin themes.
#
html_theme = "pydata_sphinx_theme"
html_theme_path = get_html_theme_path()

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
Expand Down
10 changes: 5 additions & 5 deletions requirements/default.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
networkx==2.6.2
pandas==1.3.4
pyformlang==1.0.1
rdflib==6.0.0
requests==2.26.0
networkx==3.2.1
pandas==2.2.1
pyformlang==1.0.7
rdflib==7.0.0
requests==2.31.0
6 changes: 3 additions & 3 deletions requirements/developer.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
black==22.10
pre-commit==2.20
pytest==6.2.4
black==24.2.0
pre-commit==3.6.2
pytest==8.0.1
10 changes: 5 additions & 5 deletions requirements/docs.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
nb2plots==0.6
numpydoc==1.1.0
pydata_sphinx_theme==0.6.3
sphinx==4.1.2
sphinx-copybutton==0.4.0
nb2plots==0.7.2
numpydoc==1.6.0
pydata_sphinx_theme==0.15.2
sphinx==7.2.6
sphinx-copybutton==0.5.2
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
"Operating System :: Unix",
"Operating System :: Microsoft :: Windows",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development :: Libraries :: Python Modules",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


@pytest.mark.parametrize(
"graph,expected_nodes,expected_edges", [(g1, 29, 91), (g2, 42, 182)]
"graph,expected_nodes,expected_edges", [(g1, 29, 85), (g2, 42, 177)]
)
def test_fast_labeled_binomial_graph(graph, expected_nodes, expected_edges):
assert graph.number_of_nodes() == expected_nodes
Expand Down

0 comments on commit cccddb9

Please sign in to comment.