Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

FIX: fake out setuptools scm in tox on ci#29014

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
timhoffm merged 1 commit intomatplotlib:mainfromtacaswell:fix/tox_ci
Oct 24, 2024

Conversation

tacaswell
Copy link
Member

The repository in GHA is a shallow checkout (so to tags) so we are going to get the version wrong no matter what. However, a recent change to our build dependencies (we think meson-python at 0.17) causes setumtools scm to fail to extract any version when installing from a generated sdist.

By setting a pretend version setuptools_scm will never try to look at git. It is not yet clear if this fixes the sdist itself or just continues to use the pretend version when installing.

Debugged this on a call with@QuLogic and@ksunden

To generate a checkout in a state that will fail use (in a container):

/usr/bin/git init /home/runner/work/matplotlib/matplotlibcd /home/runner/work/matplotlib/matplotlib//usr/bin/git remote add origin https://github.com/matplotlib/matplotlib/usr/bin/git config --local gc.auto 0/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +0a6dec17eec446fd28a51bae476a12fd09e73492:refs/remotes/pull/28658/merge/usr/bin/git checkout --progress --force refs/remotes/pull/28658/merge

The repository in GHA is a shallow checkout (so to tags) so we are going to getthe version wrong no matter what.  However, a recent change to our builddependencies (we think meson-python at 0.17) causes setumtools scm to fail toextract any version when installing from a generated sdist.By setting a pretend version setuptools_scm will never try to look at git.  Itis not yet clear if this fixes the sdist itself or just continues to use thepretend version when installing.
@tacaswelltacaswell added this to thev3.9.3 milestoneOct 23, 2024
@tacaswelltacaswell mentioned this pull requestOct 23, 2024
1 task
@timhoffmtimhoffm merged commited8131b intomatplotlib:mainOct 24, 2024
42 checks passed
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull requestOct 24, 2024
timhoffm added a commit that referenced this pull requestOct 24, 2024
…014-on-v3.9.xBackport PR#29014 on branch v3.9.x (FIX: fake out setuptools scm in tox on ci)
@tacaswelltacaswell deleted the fix/tox_ci branchOctober 24, 2024 18:09
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ksundenksundenksunden approved these changes

@timhoffmtimhoffmtimhoffm approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
v3.9.3
Development

Successfully merging this pull request may close these issues.

3 participants
@tacaswell@ksunden@timhoffm

[8]ページ先頭

©2009-2025 Movatter.jp