File tree Expand file tree Collapse file tree 5 files changed +75
-1
lines changed Expand file tree Collapse file tree 5 files changed +75
-1
lines changed Original file line number Diff line number Diff line change 1+ # Copyright 2018 D-Wave Systems Inc.
2+ #
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # http://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License.
14+ #
15+ # ================================================================================================
16+ import pkgutil
17+ __path__ = pkgutil .extend_path (__path__ , __name__ )
Original file line number Diff line number Diff line change 1+ # Copyright 2018 D-Wave Systems Inc.
2+ #
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # http://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License.
14+ #
15+ # ================================================================================================
16+ from pkg_resources import iter_entry_points
17+
18+ # add the composites to the module from entrypoints, name conflicts override
19+ globals ().update ((ep .name , ep .load ()) for ep in iter_entry_points ('dwave.composites' ))
20+ del iter_entry_points # remove from namespace
Original file line number Diff line number Diff line change 1+ # Copyright 2018 D-Wave Systems Inc.
2+ #
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # http://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License.
14+ #
15+ # ================================================================================================
16+ from pkg_resources import iter_entry_points
17+
18+ # add the samplers to the module from entrypoints, name conflicts override
19+ globals ().update ((ep .name , ep .load ()) for ep in iter_entry_points ('dwave.samplers' ))
20+ del iter_entry_points # remove from namespace
Original file line number Diff line number Diff line change 11from __future__ import absolute_import
22
3+ import os
34import sys
5+
46from setuptools import setup
57
68_PY2 = sys .version_info .major == 2
1214else :
1315 exec (open ("./dwaveoceansdk/package_info.py" ).read ())
1416
17+ os .chdir (os .path .dirname (os .path .abspath (__file__ )))
18+
1519install_requires = [
1620 'dwave-networkx>=0.6.1,<0.7.0' ,
1721 'dwave-system>=0.5.0,<0.6.0' ,
2832 ]
2933}
3034
31- packages = ['dwaveoceansdk' ]
35+ packages = ['dwaveoceansdk' ,
36+ 'dwave' ,
37+ 'dwave.samplers' ,
38+ 'dwave.composites' ,
39+ ]
3240
3341classifiers = [
3442 'License :: OSI Approved :: Apache Software License' ,
Original file line number Diff line number Diff line change 1+ import unittest
2+
3+
4+ class Test_dwave_samplers (unittest .TestCase ):
5+ pass
6+
7+
8+ class Test_dwave_composites (unittest .TestCase ):
9+ pass
You can’t perform that action at this time.
0 commit comments