Skip to content

Commit

Permalink
Add __version__ attribute to subpackages (#4595)
Browse files Browse the repository at this point in the history
  • Loading branch information
anonymousr007 authored Oct 24, 2021
1 parent 31daa94 commit ce3f14d
Show file tree
Hide file tree
Showing 13 changed files with 62 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cirq-aqt/cirq_aqt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.

"""Types and methods related to the AQT ion trap device"""

from cirq_aqt._version import (
__version__,
)

from cirq_aqt.aqt_sampler import AQTSampler, AQTSamplerLocalSimulator
from cirq_aqt.aqt_device import AQTSimulator

"""Types and methods related to the AQT ion trap device"""
5 changes: 5 additions & 0 deletions cirq-aqt/cirq_aqt/_version_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import cirq_aqt


def test_version():
assert cirq_aqt.__version__ == "0.13.0.dev"
5 changes: 5 additions & 0 deletions cirq-core/cirq/_version_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import cirq


def test_version():
assert cirq.__version__ == "0.13.0.dev"
4 changes: 4 additions & 0 deletions cirq-google/cirq_google/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@

from cirq_google import api

from cirq_google._version import (
__version__,
)

from cirq_google.calibration import (
ALL_ANGLES_FLOQUET_PHASED_FSIM_CHARACTERIZATION,
CircuitWithCalibration,
Expand Down
5 changes: 5 additions & 0 deletions cirq-google/cirq_google/_version_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import cirq_google


def test_version():
assert cirq_google.__version__ == "0.13.0.dev"
4 changes: 4 additions & 0 deletions cirq-ionq/cirq_ionq/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from cirq_ionq._version import (
__version__,
)

from cirq_ionq.calibration import (
Calibration,
)
Expand Down
5 changes: 5 additions & 0 deletions cirq-ionq/cirq_ionq/_version_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import cirq_ionq


def test_version():
assert cirq_ionq.__version__ == "0.13.0.dev"
4 changes: 4 additions & 0 deletions cirq-pasqal/cirq_pasqal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@

"""Devices, qubits, and sampler for Pasqal's neutral atom device."""

from cirq_pasqal._version import (
__version__,
)

from cirq_pasqal.pasqal_qubits import (
ThreeDQubit,
TwoDQubit,
Expand Down
5 changes: 5 additions & 0 deletions cirq-pasqal/cirq_pasqal/_version_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import cirq_pasqal


def test_version():
assert cirq_pasqal.__version__ == "0.13.0.dev"
5 changes: 5 additions & 0 deletions cirq-rigetti/cirq_rigetti/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.
##############################################################################

from cirq_rigetti._version import (
__version__,
)

from cirq_rigetti.sampler import (
RigettiQCSSampler,
get_rigetti_qcs_sampler,
Expand Down
5 changes: 5 additions & 0 deletions cirq-rigetti/cirq_rigetti/_version_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import cirq_rigetti


def test_version():
assert cirq_rigetti.__version__ == "0.13.0.dev"
4 changes: 4 additions & 0 deletions cirq-web/cirq_web/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from cirq_web._version import (
__version__,
)

from cirq_web.widget import Widget

from cirq_web.bloch_sphere import (
Expand Down
5 changes: 5 additions & 0 deletions cirq-web/cirq_web/_version_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import cirq_web


def test_version():
assert cirq_web.__version__ == "0.13.0.dev"

0 comments on commit ce3f14d

Please sign in to comment.