Skip to content

Commit

Permalink
Merge pull request #896 from arcondello/feature/extra-install
Browse files Browse the repository at this point in the history
Add preprocessing to extras_require
  • Loading branch information
arcondello authored Jul 10, 2021
2 parents fb32669 + b657c82 commit 19249e7
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,14 @@ jobs:
pip install -r requirements.txt
pip install -r tests/requirements.txt
# do this as an extra step since we want --no-deps and since it will
# be removed relatively soon
- run:
name: install dwave-preprocessing
command: |
. env/bin/activate
pip install 'dwave-preprocessing<0.4' --no-deps
- run: &unix-build-ext-template
name: build
command: |
Expand Down Expand Up @@ -299,6 +307,14 @@ jobs:
pip install -r requirements.txt
pip install -r tests\requirements.txt
# do this as an extra step since we want --no-deps and since it will
# be removed relatively soon
- run:
name: install dwave-preprocessing
command: |
env\Scripts\activate.ps1
pip install 'dwave-preprocessing<0.4' --no-deps
- run:
name: build extension
command: |
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
features:
- |
You can now install preprocessing as part of the dimod install with
``pip install dimod[preprocessing]``
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ def build_extensions(self):
install_requires=[
'numpy>=1.17.3,<2.0.0', # keep synced with circle-ci, pyproject.toml
],
extras_require=dict(preprocessing='dwave-preprocessing>=0.3,<0.4'),
)

0 comments on commit 19249e7

Please sign in to comment.