Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only publish wheel for retworkx compat package #749

Merged
merged 2 commits into from
Dec 1, 2022

Conversation

mtreinish
Copy link
Member

This commit fixes the retworkx compat package publish job. The first issue is that the sdist for the retworkx package is not valid, we trigger the creation of the compat package by an env variable when calling setup.py/setuptools/builder/etc which triggers change the package name and other attributes. However if we create an sdist while setting the env variable this just bundles the setup.py and other source files in a tarball and when the sdist is installed rustworkx would be installed. So for the compat package we should only publish a pure python wheel that will have the actual compat shim. The other small change is switch the package to use python 3.10 instead of 3.7, which goes EoL in the near future.

This commit fixes the retworkx compat package publish job. The first
issue is that the sdist for the retworkx package is not valid, we
trigger the creation of the compat package by an env variable when
calling setup.py/setuptools/builder/etc which triggers change the
package name and other attributes. However if we create an sdist while
setting the env variable this just bundles the setup.py and other source
files in a tarball and when the sdist is installed rustworkx would be
installed. So for the compat package we should only publish a pure
python wheel that will have the actual compat shim. The other small
change is switch the package to use python 3.10 instead of 3.7, which
goes EoL in the near future.
@coveralls
Copy link

coveralls commented Nov 23, 2022

Pull Request Test Coverage Report for Build 3588101381

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.02%) to 96.924%

Totals Coverage Status
Change from base Build 3566252863: -0.02%
Covered Lines: 13329
Relevant Lines: 13752

💛 - Coveralls

@mtreinish mtreinish added the stable-backport-potential This PR or issue is potentially worth backporting for inclusion in a stable branch label Nov 23, 2022
Copy link
Collaborator

@IvanIsCoding IvanIsCoding left a comment

Choose a reason for hiding this comment

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

LGTM

@IvanIsCoding IvanIsCoding added the automerge Queue a approved PR for merging label Nov 30, 2022
@mergify mergify bot merged commit 100d0dc into Qiskit:main Dec 1, 2022
mergify bot pushed a commit that referenced this pull request Dec 1, 2022
This commit fixes the retworkx compat package publish job. The first
issue is that the sdist for the retworkx package is not valid, we
trigger the creation of the compat package by an env variable when
calling setup.py/setuptools/builder/etc which triggers change the
package name and other attributes. However if we create an sdist while
setting the env variable this just bundles the setup.py and other source
files in a tarball and when the sdist is installed rustworkx would be
installed. So for the compat package we should only publish a pure
python wheel that will have the actual compat shim. The other small
change is switch the package to use python 3.10 instead of 3.7, which
goes EoL in the near future.

Co-authored-by: Ivan Carvalho <8753214+IvanIsCoding@users.noreply.github.com>
(cherry picked from commit 100d0dc)
mergify bot added a commit that referenced this pull request Dec 1, 2022
This commit fixes the retworkx compat package publish job. The first
issue is that the sdist for the retworkx package is not valid, we
trigger the creation of the compat package by an env variable when
calling setup.py/setuptools/builder/etc which triggers change the
package name and other attributes. However if we create an sdist while
setting the env variable this just bundles the setup.py and other source
files in a tarball and when the sdist is installed rustworkx would be
installed. So for the compat package we should only publish a pure
python wheel that will have the actual compat shim. The other small
change is switch the package to use python 3.10 instead of 3.7, which
goes EoL in the near future.

Co-authored-by: Ivan Carvalho <8753214+IvanIsCoding@users.noreply.github.com>
(cherry picked from commit 100d0dc)

Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Queue a approved PR for merging stable-backport-potential This PR or issue is potentially worth backporting for inclusion in a stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants