diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f670f14b..0e7ec6f1e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,11 +14,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Santosh kumar <29346072+santoshkumarradha@users.noreply.github.com> - Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> - Co-authored-by: kessler-frost +- Co-authored-by: n4n5 ### Fixed - Ignoring all errors when importing qelectrons instead of only `ImportError` +- Add a `__main__.py` file to use covalent as python package ## [0.235.0-rc.0] - 2024-05-29 diff --git a/covalent/__main__.py b/covalent/__main__.py new file mode 100644 index 000000000..b4251b752 --- /dev/null +++ b/covalent/__main__.py @@ -0,0 +1,23 @@ +#!/usr/bin/env python + +# Copyright 2021 Agnostiq Inc. +# +# This file is part of Covalent. +# +# Licensed under the Apache License 2.0 (the "License"). A copy of the +# License may be obtained with this software package or at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Use of this file is prohibited except in compliance with the License. +# 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. +""" main.py file used for python -m covalent """ + +from covalent_dispatcher._cli import cli + +if __name__ == "__main__": + cli()