Skip to content

Commit

Permalink
Add entrypoints for the composites and samplers
Browse files Browse the repository at this point in the history
  • Loading branch information
arcondello committed Dec 27, 2018
1 parent b0469a2 commit b2e2c59
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,16 @@
'Programming Language :: Python :: 3.7',
]

# For the Ocean's SDK, each of these composites/samplers are added to the dwave.composites and
# dwave.samplers namespace respectively.
entry_points = {'dwave.samplers': ['ExactSolver = dimod:ExactSolver',
'RandomSampler = dimod:RandomSampler',
],
'dwave.composites': ['StructureComposite = dimod:StructureComposite',
'SpinReversalTransformComposite = dimod:SpinReversalTransformComposite',
'FixedVariableComposite = dimod:FixedVariableComposite',
]}

python_requires = '>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*'

try:
Expand Down Expand Up @@ -158,6 +168,7 @@ def run_setup(cpp):
classifiers=classifiers,
zip_safe=False,
python_requires=python_requires,
entry_points=entry_points,
**kw
)

Expand Down

0 comments on commit b2e2c59

Please sign in to comment.