Skip to content

Commit

Permalink
Merge branch 'qiskit-community:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
mickahell authored Aug 31, 2023
2 parents 4f840a0 + f7182f9 commit 485fac8
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 18 deletions.
6 changes: 0 additions & 6 deletions ecosystem/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,6 @@ def _run_python_tests(
repo_url: str,
tier: str,
python_version: str,
package_to_check: str,
test_type: str,
ecosystem_deps: Optional[List[str]] = None,
ecosystem_additional_commands: Optional[List[str]] = None,
Expand All @@ -331,7 +330,6 @@ def _run_python_tests(
repo_url: repository url
tier: tier of project
python_version: ex: py36, py37 etc
package_to_check: qiskit or qiskit-terra
test_type: [dev, stable]
ecosystem_deps: extra dependencies to install for tests
ecosystem_additional_commands: extra commands to run before tests
Expand All @@ -356,7 +354,6 @@ def _run_python_tests(
ecosystem_deps=ecosystem_deps,
ecosystem_additional_commands=ecosystem_additional_commands,
python_version=python_version,
package_to_check=package_to_check,
repo_config=repo_configuration,
)
qiskit_version, results = runner.run()
Expand Down Expand Up @@ -539,7 +536,6 @@ def python_dev_tests(
repo_url=repo_url,
tier=tier,
python_version=python_version,
package_to_check=package,
test_type=TestType.DEV_COMPATIBLE,
ecosystem_deps=[],
ecosystem_additional_commands=additional_commands,
Expand Down Expand Up @@ -575,7 +571,6 @@ def python_stable_tests(
repo_url=repo_url,
tier=tier,
python_version=python_version,
package_to_check="qiskit",
test_type=TestType.STABLE_COMPATIBLE,
ecosystem_deps=qiskit_latest_deps,
ecosystem_additional_commands=additional_commands,
Expand Down Expand Up @@ -606,7 +601,6 @@ def python_standard_tests(
repo_url=repo_url,
tier=tier,
python_version=python_version,
package_to_check="qiskit",
test_type=TestType.STANDARD,
logs_link=logs_link,
)
Expand Down
2 changes: 0 additions & 2 deletions ecosystem/models/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ def default(cls) -> "PythonRepositoryConfiguration":
def render_tox_file(
self,
ecosystem_deps: list[str] = None,
package_to_check: str = "qiskit",
ecosystem_additional_commands: list[str] = None,
):
"""Renders tox template from configuration."""
Expand All @@ -190,7 +189,6 @@ def render_tox_file(
**self.to_dict(),
**{
"ecosystem_deps": ecosystem_deps,
"package_to_check": package_to_check,
"ecosystem_additional_commands": ecosystem_additional_commands,
},
}
Expand Down
3 changes: 2 additions & 1 deletion ecosystem/resources/members.json
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,8 @@
"contact_info": "[email protected]",
"alternatives": "_No response_",
"labels": [
"Algorithms"
"Algorithms",
"Circuit"
],
"created_at": 1670427445.884067,
"updated_at": 1670427445.884068,
Expand Down
2 changes: 1 addition & 1 deletion ecosystem/resources/members/circuit-knitting-toolbox.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "Circuit Knitting is the process of decomposing a quantum circuit
licence = "Apache License 2.0"
contact_info = "[email protected]"
alternatives = "_No response_"
labels = [ "Algorithms",]
labels = [ "Algorithms", "Circuit" ]
created_at = 1670427445.884067
updated_at = 1670427445.884068
tier = "Extensions"
Expand Down
3 changes: 0 additions & 3 deletions ecosystem/runners/python_tests_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,12 @@ def __init__(
ecosystem_deps: Optional[List[str]] = None,
ecosystem_additional_commands: Optional[List[str]] = None,
python_version: str = "py39",
package_to_check: str = "qiskit",
repo_config: Optional[RepositoryConfiguration] = None,
):
super().__init__(
repo=repo, working_directory=working_directory, repo_config=repo_config
)
self.python_version = python_version
self.package_to_check = package_to_check
self.ecosystem_deps = (
ecosystem_deps if ecosystem_deps is not None else ["qiskit"]
)
Expand All @@ -53,7 +51,6 @@ def workload(self) -> Tuple[str, List[CommandExecutionSummary]]:
["tox_default.ini"],
ecosystem_deps=self.ecosystem_deps,
ecosystem_additional_commands=self.ecosystem_additional_commands,
package_to_check=self.package_to_check,
)

qiskit_version = UnknownPackageVersion
Expand Down
4 changes: 0 additions & 4 deletions ecosystem/runners/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ def configure_repo(
files_fault: List[str],
ecosystem_deps: Optional[List[str]] = None,
ecosystem_additional_commands: Optional[List[str]] = None,
package_to_check: str = "qiskit",
):
"""Configuring the different templates:
- tox.ini
Expand All @@ -68,8 +67,6 @@ def configure_repo(
files_fault: list of default name replacement
ecosystem_deps: list of dependencies
ecosystem_additional_commands: additional commands to run before tests
package_to_check: package to check the version of qiskit
No return
"""
if len(files) != len(files_fault):
Expand Down Expand Up @@ -127,7 +124,6 @@ def configure_repo(
repo_config.render_tox_file(
ecosystem_deps=ecosystem_deps,
ecosystem_additional_commands=ecosystem_additional_commands,
package_to_check=package_to_check,
)
)
elif destination_file_name == FilesTemplates.LINT_FILE_NAME:
Expand Down
2 changes: 1 addition & 1 deletion ecosystem/templates/configured_tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ commands =
{% for additional_command in ecosystem_additional_commands -%}
{{ additional_command|indent(2, True) }}
{% endfor %}
python -c 'import qiskit; f = open("./qiskit_version.txt", "w"); f.write(qiskit.__qiskit_version__["{{package_to_check}}"]); f.close();'
python -c 'import qiskit; f = open("./qiskit_version.txt", "w"); f.write(qiskit.__qiskit_version__["qiskit"]); f.close();'
{% for command in tests_command -%}
{{ command|indent(2, True) }}
{% endfor -%}
Expand Down

0 comments on commit 485fac8

Please sign in to comment.