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 1515# ================================================================================================
1616from __future__ import absolute_import
1717
18+ import os
1819import sys
20+
1921from setuptools import setup
2022
2123_PY2 = sys .version_info .major == 2
2729else :
2830 exec (open ("./dwaveoceansdk/package_info.py" ).read ())
2931
32+ os .chdir (os .path .dirname (os .path .abspath (__file__ )))
33+
3034install_requires = [
3135 'dwave-networkx>=0.6.1,<0.7.0' ,
3236 'dwave-system>=0.5.0,<0.6.0' ,
4347 ]
4448}
4549
46- packages = ['dwaveoceansdk' ]
50+ packages = ['dwaveoceansdk' ,
51+ 'dwave' ,
52+ 'dwave.samplers' ,
53+ 'dwave.composites' ,
54+ ]
4755
4856classifiers = [
4957 '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