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

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

Merged
merged 2 commits into from
Aug 22, 2024

Conversation

seisman
Copy link
Member

@seisman seisman commented Aug 22, 2024

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
Copy link
Member Author

seisman commented Aug 22, 2024

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

environment.yml Outdated
- dvc
- jupyter
- make
- pip
- python-build # Package name is "build" on PyPI and "python-build" on conda-forge.
Copy link
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
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
17 of 18 checks passed
@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