Skip to content

Commit

Permalink
Update URLs and IBM maintenance status (#762)
Browse files Browse the repository at this point in the history
### Summary

Updates all projects URLs (if their repo has moved) and sets their "IBM
maintained" status using the new criteria (that a project is in Qiskit
or Qiskit-Extensions orgs).

I used the following script to automate this. This worked for all
projects except qiskit-superstaq, which is the only project in a
subdirectory. I reset that one manually.

```python
import json
import subprocess
from ecosystem.daos import DAO

dao = DAO("ecosystem/resources/")

for project in dao.get_all():
    # Update URLs in case they've changed
    reponame = "/".join(project.url.split("/")[3:5])
    new_url = json.loads(
        subprocess.check_output(
            ["gh", "repo", "view", reponame, "--json", "url"]
        ).decode("utf8")
    )["url"]
    project.url = new_url

    # Update "IBM maintained" status
    if project.url.split("/")[3].lower() in ["qiskit-extensions", "qiskit"]:
        project.ibm_maintained = True
    else:
        project.ibm_maintained = False
    dao.write(project)
```
  • Loading branch information
frankharkins authored Aug 5, 2024
1 parent 4093883 commit 38fa941
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ecosystem/resources/members/QPong.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name = "QPong"
url = "https://github.com/HuangJunye/QPong"
url = "https://github.com/QPong/QPong"
description = "A quantum version of the classic game Pong built with Qiskit and PyGame."
licence = "Apache 2.0"
contact_info = "[email protected]"
Expand Down
2 changes: 1 addition & 1 deletion ecosystem/resources/members/ffsim.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "ffsim is a software library for simulating fermionic quantum circ
licence = "Apache License 2.0"
affiliations = "IBM"
labels = [ "Chemistry", "Circuit simulator", "Application package",]
ibm_maintained = true
ibm_maintained = false
website = "https://qiskit-community.github.io/ffsim/"
stars = 19
group = "applications"
Expand Down
2 changes: 1 addition & 1 deletion ecosystem/resources/members/mthree.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name = "mthree"
url = "https://github.com/Qiskit-Partners/mthree"
url = "https://github.com/Qiskit-Extensions/mthree"
description = "Matrix-free Measurement Mitigation (M3). Reduce the effects of readout errors from noisy quantum hardware."
licence = "Apache 2.0"
contact_info = ""
Expand Down
2 changes: 1 addition & 1 deletion ecosystem/resources/members/qiskit-ionq.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name = "Qiskit IonQ Provider"
url = "https://github.com/Qiskit-Partners/qiskit-ionq"
url = "https://github.com/qiskit-community/qiskit-ionq"
description = "This project contains a provider that allows access to IonQ ion trap quantum systems."
licence = "Apache 2.0"
contact_info = ""
Expand Down

0 comments on commit 38fa941

Please sign in to comment.