Skip to content

Commit

Permalink
add __main__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Its-Just-Nans committed Jul 27, 2024
1 parent 215d8d3 commit d3f9be5
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Santosh kumar <[email protected]>
- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Co-authored-by: kessler-frost <[email protected]>
- Co-authored-by: n4n5 <[email protected]>


### 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

Expand Down
23 changes: 23 additions & 0 deletions covalent/__main__.py
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit d3f9be5

Please sign in to comment.