Skip to content
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

Refresh CI etc #230

Merged
merged 5 commits into from
May 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 18 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@ orbs:
jobs:
test-linux:
parameters:
dimod-version:
type: string
networkx-version:
dependency-versions:
type: string
python-version:
type: string

docker:
- image: circleci/python:<< parameters.python-version >>
- image: cimg/python:<< parameters.python-version >>

steps:
- checkout
Expand All @@ -35,8 +33,7 @@ jobs:
name: Install dependencies
command: |
. env/bin/activate
pip install --upgrade 'dimod<< parameters.dimod-version >>'
pip install --upgrade 'networkx<< parameters.networkx-version >>'
pip install --upgrade << parameters.dependency-versions >>

- save_cache: &save-cache-env
key: pip-{{ checksum "requirements.txt" }}-{{ checksum "tests/requirements.txt" }}-{{ .Environment.CIRCLE_JOB }}
Expand All @@ -61,7 +58,7 @@ jobs:
type: string

macos:
xcode: "13.2.0"
xcode: "14.3.0"

environment:
HOMEBREW_NO_AUTO_UPDATE: 1
Expand Down Expand Up @@ -141,7 +138,7 @@ jobs:

test-doctest:
docker:
- image: circleci/python:3.7-stretch # as of march 2019 RTD uses 3.7
- image: cimg/python:3.9

steps:
- checkout
Expand Down Expand Up @@ -181,7 +178,7 @@ jobs:

deploy:
docker:
- image: circleci/python:3.7
- image: cimg/python:3.9

steps:
- checkout
Expand Down Expand Up @@ -213,9 +210,18 @@ workflows:
- test-linux:
matrix:
parameters:
python-version: &python-versions [3.7.9, 3.8.9, 3.9.4, 3.10.0]
dimod-version: [==0.10.8, ==0.11.0rc0]
networkx-version: [==2.4, <3.0]
python-version: &python-versions [3.7.9, 3.8.9, 3.9.4, 3.10.0, 3.11.0]
dependency-versions: ["dimod==0.10.8 networkx==2.4 oldest-supported-numpy", # oldest supported
"dimod networkx numpy", # latest
]
exclude:
# dimod 0.10.8 doesn't support Python 3.11
- python-version: 3.11.0
dependency-versions: "dimod==0.10.8 networkx==2.4 oldest-supported-numpy"

# dimod does not support the oldest-supported-numpy on Python 3.7
- python-version: 3.7.9
dependency-versions: "dimod==0.10.8 networkx==2.4 oldest-supported-numpy"
- test-osx:
matrix:
parameters:
Expand Down
3 changes: 0 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
.. image:: https://img.shields.io/pypi/v/dwave-networkx.svg
:target: https://pypi.org/project/dwave-networkx

.. image:: https://readthedocs.com/projects/d-wave-systems-dwave-networkx/badge/?version=latest
:target: https://docs.ocean.dwavesys.com/projects/dwave-networkx/en/latest/?badge=latest

.. image:: https://codecov.io/gh/dwavesystems/dwave-networkx/branch/main/graph/badge.svg
:target: https://codecov.io/gh/dwavesystems/dwave-networkx

Expand Down
5 changes: 4 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
networkx==2.4
dimod==0.10.8
dimod==0.12.0

numpy==1.21.6; python_version < '3.8'
oldest-supported-numpy; python_version >= '3.8'
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@
'dwave_networkx.generators',
]

install_requires = ['networkx>=2.4,<3.0',
'dimod>=0.10.8,<0.13.0',
install_requires = ['networkx>=2.4',
'dimod>=0.10.8',
'numpy>=1.17.3',
]

python_requires = ">=3.7"
Expand All @@ -43,6 +44,7 @@
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
]

setup(
Expand Down