forked from Qiskit/ecosystem
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmanager.py
More file actions
48 lines (38 loc) · 1.18 KB
/
manager.py
File metadata and controls
48 lines (38 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
"""Entrypoint for CLI
Available commands:
1. Run tests within repository.
```shell
python manager.py tests python_standard_tests https://github.com/<ACCOUNT>/<REPOSITORY_NAME> --tox_python=<py36,py37,py38,py39>
```
2. Run tests against stable version of Qiskit.
```shell
python manager.py tests python_stable_tests https://github.com/<ACCOUNT>/<REPOSITORY_NAME> --tox_python=<py36,py37,py38,py39>
```
3. Run tests against dev version of Qiskit.
```shell
python manager.py tests python_dev_tests https://github.com/<ACCOUNT>/<REPOSITORY_NAME> --tox_python=<py36,py37,py38,py39>
```
4. Get parse issue.
```shell
python manager.py ci parser_issue --body="${{ github.event.issue.body }}"
```
5. Add repo to jsondb.
```shell
python manager.py members add_repo_2db --repo_link="https://github.com/<ACCOUNT>/<REPOSITORY_NAME>" --repo_author="<ACCOUNT>" ...
```
6. Build website.
```shell
python manager.py website build_website"
```
"""
import fire
from ecosystem.cli import CliMembers, CliWebsite, CliCI, CliTests
if __name__ == "__main__":
fire.Fire(
{
"members": CliMembers,
"tests": CliTests,
"website": CliWebsite,
"ci": CliCI,
}
)