Skip to content

CI: Fix the name of the 'build' package to 'python-build' on conda-forge - #3408

Merged
seisman merged 2 commits into
mainfrom
rename-build
Aug 22, 2024
Merged

seisman merged 2 commits into
mainfrom
rename-build

Conversation

@seisman

@seisman seisman commented Aug 22, 2024 •

Copy link
Copy Markdown
Member

Description of proposed changes

Our Docs workflow suddenly failed (https://github.com/GenericMappingTools/pygmt/actions/runs/10502290769/job/29093673041) with following errors:

  error    libmamba Could not solve for environment specs
      The following package could not be installed
      └─ build does not exist (perhaps a typo or a missing channel).
  critical libmamba Could not solve for environment specs

It turns out the build package has the name build on PyPI (https://pypi.org/project/build/), but has the name python-build on conda-forge (https://anaconda.org/conda-forge/python-build).

The build package also exists on conda-forge (https://anaconda.org/conda-forge/build) but it's no longer maintained and has a very old version (v0.7.0). Xref: conda-forge/build-feedstock#2

Aslo xref: https://conda-forge.org/news/2024/08/21/remove-build/

@seisman seisman added maintenance Boring but important stuff for the core devs final review call This PR requires final review and approval from a second reviewer labels Aug 22, 2024
@seisman seisman added this to the 0.13.0 milestone Aug 22, 2024
@seisman
seisman requested a review from weiji14 August 22, 2024 06:03
@seisman

seisman commented Aug 22, 2024

Copy link
Copy Markdown
Member Author

As maintainers, you'd better to run the following commands to refresh your local pygmt dev environment:

mamba uninstall build    # Uninstall build v0.7.0
mamba install python-build  # Install the latest version

Comment thread environment.yml Outdated
- jupyter
- make
- pip
- python-build # Package name is "build" on PyPI and "python-build" on conda-forge.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe ok to remove the comment here?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Removed.

@seisman
seisman enabled auto-merge (squash) August 22, 2024 15:08
@seisman seisman removed the final review call This PR requires final review and approval from a second reviewer label Aug 22, 2024
@seisman
seisman disabled auto-merge August 22, 2024 15:20
@seisman
seisman merged commit 991cafb into main Aug 22, 2024
@seisman
seisman deleted the rename-build branch August 22, 2024 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Boring but important stuff for the core devs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants