-
- Notifications
You must be signed in to change notification settings - Fork 2.9k
fixes #8133: migrate to setuptools_scm 6.x #8134
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
fixes #8133: migrate to setuptools_scm 6.x #8134
Conversation
28afba6
to a3ca851
Compare @bluetech i believe the missing install in the deploy command created the problem |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @RonnyPfannschmidt. I didn't test SETUPTOOLS_SCM_PRETEND_VERSION_FOR_PYTEST on CI, only locally. I'll test this when I get a chance.
tox.ini Outdated
# TODO: When setuptools-scm 5.0.0 is released, use SETUPTOOLS_SCM_PRETEND_VERSION_FOR_PYTEST | ||
# and remove the next line. | ||
passenv = SETUPTOOLS_SCM_PRETEND_VERSION_FOR_PYTEST | ||
install_command=python -m pip --use-deprecated=legacy-resolver install {opts} {packages} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fix should enable the removal of the --use-deprecated=legacy-resolver
here
Basically the test is
|
@bluetech thanks, i figured the issue - basically tox makes a sdist where the version pretending is not passed, which in turn confuses the rest im now setting out to configure it correctly |
@bluetech i found a bug in the setuptools_scm pyproject integration, bugfix upcoming |
@gaborbernat is there potentially anything missing for tox to conisder it - even wit the bugfix i see the _FOR_PYTEST version being ignored while the normal one works |
@gaborbernat - nm, after updating a externalsetuptools_scm twice it actually worked, im not sure how that came to be but i suspect i poisoned my user-site, sorry for the noise |
6c9a995
to 2753279
Compare There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we backport this to 6.2.x
?
@bluetech please crosscheck if it works for you as well (to avoid a works on my box) |
@nicoddemus good idea |
@RonnyPfannschmidt I checked out this branch and tried the following:
tox does say:
but...
that is, the specified version doesn't take. Strangely, even though I tried to completely rm my |
Also update SETUPTOOLS_SCM in the surrounding env |
What do you mean by surrounding env? |
7a90e6e
to 2753279
Compare @bluetech i appologize - the issue is observable for mae again as well @gaborbernat - is there a easy way to debug what tox is doing here? for some reason SETUPTOOLS_SCM_PRETEND_VERSION wont make it to the creation of the dist and i have no idea what exactly is wrong |
Did you passed in at passenv, and just call it with -vvv to see the stdout of the build. |
2753279
to 888ffba
Compare this issues is less likely to hit due to the recent regendoc release which includes a wheel * migrate to setuptools_scm 6.3.2 * use SETUPTOOLS_SCM_PRETEND_VERSION_FOR_PYTEST
888ffba
to 0892c77
Compare i upgraded this to the most recent setuptools_scm which includes a bugfix |
won't need a backport anymore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't remember all of the details, but the changes LGTM.
@bluetech there was a combination issue between regendoc and pytest setuptools_scm pretend_version a pretend version at install time for regendoc would set it up wrong, |
and use SETUPTOOLS_SCM_PRETEND_VERSION_FOR_PYTEST
fixes #8133