-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dwave.samplers and dwave.composite namespace
- Loading branch information
1 parent
2eb6dc8
commit 72b4a55
Showing
7 changed files
with
78 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Copyright 2018 D-Wave Systems Inc. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# ================================================================================================ | ||
import pkgutil | ||
__path__ = pkgutil.extend_path(__path__, __name__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Copyright 2018 D-Wave Systems Inc. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# ================================================================================================ | ||
from pkg_resources import iter_entry_points | ||
|
||
# add the composites to the module from entrypoints, name conflicts override | ||
globals().update((ep.name, ep.load()) for ep in iter_entry_points('dwave.composites')) | ||
del iter_entry_points # remove from namespace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Copyright 2018 D-Wave Systems Inc. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# ================================================================================================ | ||
from pkg_resources import iter_entry_points | ||
|
||
# add the samplers to the module from entrypoints, name conflicts override | ||
globals().update((ep.name, ep.load()) for ep in iter_entry_points('dwave.samplers')) | ||
del iter_entry_points # remove from namespace |
Empty file.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,9 @@ | ||
from __future__ import absolute_import | ||
|
||
import sys | ||
import os | ||
from setuptools import setup | ||
|
||
_PY2 = sys.version_info.major == 2 | ||
|
||
# add __version__, __author__, __authoremail__, __description__ to this namespace | ||
# equivalent to: | ||
if _PY2: | ||
execfile("./dwaveoceansdk/package_info.py") | ||
else: | ||
exec(open("./dwaveoceansdk/package_info.py").read()) | ||
os.chdir(os.path.dirname(os.path.abspath(__file__))) | ||
|
||
install_requires = [ | ||
'dwave-networkx>=0.6.1,<0.7.0', | ||
|
@@ -28,7 +21,10 @@ | |
] | ||
} | ||
|
||
packages = ['dwaveoceansdk'] | ||
packages = ['dwave', | ||
'dwave.samplers', | ||
'dwave.composites', | ||
] | ||
|
||
classifiers = [ | ||
'License :: OSI Approved :: Apache Software License', | ||
|
@@ -44,6 +40,12 @@ | |
|
||
python_requires = '>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*' | ||
|
||
__version__ = '1.0.3' | ||
__author__ = 'D-Wave Systems Inc.' | ||
__authoremail__ = '[email protected]' | ||
__description__ = 'Software development kit for open source D-Wave tools' | ||
|
||
|
||
setup( | ||
name='dwave-ocean-sdk', | ||
version=__version__, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import unittest | ||
|
||
|
||
class Test_dwave_samplers(unittest.TestCase): | ||
pass | ||
|
||
|
||
class Test_dwave_composites(unittest.TestCase): | ||
pass |