Skip to content
This repository was archived by the owner on Aug 14, 2024. It is now read-only.

Reorganize Red Queen into a python package#21

Merged
mtreinish merged 1 commit into
Qiskit:mainfrom
mtreinish:reorganize_as_pacakge
Jul 26, 2022
Merged

Reorganize Red Queen into a python package#21
mtreinish merged 1 commit into
Qiskit:mainfrom
mtreinish:reorganize_as_pacakge

Conversation

@mtreinish
Copy link
Copy Markdown
Member

This commit reorganize the red queen project into a python project.
Previously red queen wasn't organized as a single package which caused
potential issues when trying to run or interact between the packages.
This commit changes the repository structure to move all the code into
the red_queen package so it is all self contained. This also enables us
to create a python package with setuptools which increases future
flexibility by enabling us to publish console scripts which will be
include when the package is built and installed.

This commit reorganize the red queen project into a python project.
Previously red queen wasn't organized as a single package which caused
potential issues when trying to run or interact between the packages.
This commit changes the repository structure to move all the code into
the red_queen package so it is all self contained. This also enables us
to create a python package with setuptools which increases future
flexibility by enabling us to publish console scripts which will be
include when the package is built and installed.
Copy link
Copy Markdown
Contributor

@Lementknight Lementknight left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any problems with the new structure, and I believe that your commits are ready to be pushed.

@Yelissal
Copy link
Copy Markdown
Contributor

Very well explained! The comments were very helpful. I also believe the commits are ready to be pushed.

Yelissal
Yelissal approved these changes Jul 22, 2022
Copy link
Copy Markdown
Collaborator

@danielleodigie danielleodigie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense, it's low-key cool to see how making a python package works, makes it less scary :0, but overall LGTM!

@keilydluna
Copy link
Copy Markdown
Contributor

I agree with Danielle. This is efficient and understandable. LGTM!

Copy link
Copy Markdown
Collaborator

@raynelfss raynelfss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new changes work as intended and the new structure makes it easier to install all dependencies by pip-installing the repository as a python module. Looks good to me!

@mtreinish mtreinish merged commit c3e3e71 into Qiskit:main Jul 26, 2022
@mtreinish mtreinish deleted the reorganize_as_pacakge branch July 26, 2022 17:21
@mtreinish
Copy link
Copy Markdown
Member Author

Thanks for the review everyone!

@mtreinish mtreinish mentioned this pull request Aug 10, 2022
mtreinish pushed a commit that referenced this pull request Aug 12, 2022
…#37)

* Fixed oversight in changed-benchmark action

Forgot to add "/*.py" suffix to only accept python files.

* Fixed bash syntax in action.yml file for changed-benchmark (#21)

There was an error in the `action.yml` file that caused the files-changed condition to ignore any new python files. 
This was due to an error in string parsing that was returning an empty string in every case instead of returning the string without the `__init__.py`
The error was fixed by making the `steps.changed-benchmarks.outputs.all_changed_and_modified_files` a string stored in a variable.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants