Skip to content

Commit d3f9be5

Browse files
committed
add __main__.py
1 parent 215d8d3 commit d3f9be5

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1414
- Santosh kumar <[email protected]>
1515
- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1616
- Co-authored-by: kessler-frost <[email protected]>
17+
- Co-authored-by: n4n5 <[email protected]>
1718

1819

1920
### Fixed
2021

2122
- Ignoring all errors when importing qelectrons instead of only `ImportError`
23+
- Add a `__main__.py` file to use covalent as python package
2224

2325
## [0.235.0-rc.0] - 2024-05-29
2426

covalent/__main__.py

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/env python
2+
3+
# Copyright 2021 Agnostiq Inc.
4+
#
5+
# This file is part of Covalent.
6+
#
7+
# Licensed under the Apache License 2.0 (the "License"). A copy of the
8+
# License may be obtained with this software package or at
9+
#
10+
# https://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Use of this file is prohibited except in compliance with the License.
13+
# Unless required by applicable law or agreed to in writing, software
14+
# distributed under the License is distributed on an "AS IS" BASIS,
15+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
# See the License for the specific language governing permissions and
17+
# limitations under the License.
18+
""" main.py file used for python -m covalent """
19+
20+
from covalent_dispatcher._cli import cli
21+
22+
if __name__ == "__main__":
23+
cli()

0 commit comments

Comments
 (0)