diff --git a/ext/opentelemetry-ext-azure-monitor/tests/test_package.py b/ext/opentelemetry-ext-azure-monitor/tests/test_package.py new file mode 100644 index 00000000000..d8d40a2de0e --- /dev/null +++ b/ext/opentelemetry-ext-azure-monitor/tests/test_package.py @@ -0,0 +1,28 @@ +# Copyright 2019, OpenTelemetry Authors +# +# 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 unittest + +import pkg_resources + +from opentelemetry.ext.azure_monitor import version + + +class TestVersion(unittest.TestCase): + def test_version(self): + """Check that the version number is normalized.""" + self.assertEqual( + version.__version__, + str(pkg_resources.parse_version(version.__version__)), + ) diff --git a/ext/opentelemetry-ext-http-requests/tests/test_package.py b/ext/opentelemetry-ext-http-requests/tests/test_package.py new file mode 100644 index 00000000000..aaad9e16141 --- /dev/null +++ b/ext/opentelemetry-ext-http-requests/tests/test_package.py @@ -0,0 +1,28 @@ +# Copyright 2019, OpenTelemetry Authors +# +# 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 unittest + +import pkg_resources + +from opentelemetry.ext.http_requests import version + + +class TestVersion(unittest.TestCase): + def test_version(self): + """Check that the version number is normalized.""" + self.assertEqual( + version.__version__, + str(pkg_resources.parse_version(version.__version__)), + ) diff --git a/ext/opentelemetry-ext-jaeger/tests/test_package.py b/ext/opentelemetry-ext-jaeger/tests/test_package.py new file mode 100644 index 00000000000..f38a681c0b6 --- /dev/null +++ b/ext/opentelemetry-ext-jaeger/tests/test_package.py @@ -0,0 +1,28 @@ +# Copyright 2019, OpenTelemetry Authors +# +# 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 unittest + +import pkg_resources + +from opentelemetry.ext.jaeger import version + + +class TestVersion(unittest.TestCase): + def test_version(self): + """Check that the version number is normalized.""" + self.assertEqual( + version.__version__, + str(pkg_resources.parse_version(version.__version__)), + ) diff --git a/ext/opentelemetry-ext-opentracing-shim/tests/test_package.py b/ext/opentelemetry-ext-opentracing-shim/tests/test_package.py new file mode 100644 index 00000000000..0bd9639344e --- /dev/null +++ b/ext/opentelemetry-ext-opentracing-shim/tests/test_package.py @@ -0,0 +1,28 @@ +# Copyright 2019, OpenTelemetry Authors +# +# 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 unittest + +import pkg_resources + +from opentelemetry.ext.opentracing_shim import version + + +class TestVersion(unittest.TestCase): + def test_version(self): + """Check that the version number is normalized.""" + self.assertEqual( + version.__version__, + str(pkg_resources.parse_version(version.__version__)), + ) diff --git a/ext/opentelemetry-ext-wsgi/test_package.py b/ext/opentelemetry-ext-wsgi/test_package.py new file mode 100644 index 00000000000..bd8755580a0 --- /dev/null +++ b/ext/opentelemetry-ext-wsgi/test_package.py @@ -0,0 +1,28 @@ +# Copyright 2019, OpenTelemetry Authors +# +# 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 unittest + +import pkg_resources + +from opentelemetry.ext.wsgi import version + + +class TestVersion(unittest.TestCase): + def test_version(self): + """Check that the version number is normalized.""" + self.assertEqual( + version.__version__, + str(pkg_resources.parse_version(version.__version__)), + ) diff --git a/opentelemetry-api/tests/test_package.py b/opentelemetry-api/tests/test_package.py new file mode 100644 index 00000000000..9515e120397 --- /dev/null +++ b/opentelemetry-api/tests/test_package.py @@ -0,0 +1,28 @@ +# Copyright 2019, OpenTelemetry Authors +# +# 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 unittest + +import pkg_resources + +from opentelemetry.util import version + + +class TestVersion(unittest.TestCase): + def test_version(self): + """Check that the version number is normalized.""" + self.assertEqual( + version.__version__, + str(pkg_resources.parse_version(version.__version__)), + ) diff --git a/opentelemetry-sdk/tests/test_package.py b/opentelemetry-sdk/tests/test_package.py new file mode 100644 index 00000000000..b1d7bc430a6 --- /dev/null +++ b/opentelemetry-sdk/tests/test_package.py @@ -0,0 +1,28 @@ +# Copyright 2019, OpenTelemetry Authors +# +# 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 unittest + +import pkg_resources + +from opentelemetry.sdk import version + + +class TestVersion(unittest.TestCase): + def test_version(self): + """Check that the version number is normalized.""" + self.assertEqual( + version.__version__, + str(pkg_resources.parse_version(version.__version__)), + )