GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Move gmt from requirements.txt to CI scripts instead by weiji14 · Pull Request #343 · GenericMappingTools/pygmt

Conversation

@weiji14

@weiji14 weiji14 commented Oct 11, 2019 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Description of proposed changes

Edit: Simply placing gmt in our Continuous Integration (CI) scripts' CONDA_INSTALL_EXTRA environment variable so that the requirements.txt file remains valid for pip.

Renaming instances of requirements.txt -> conda-requirements.txt, and requirements-dev.txt -> conda-requirements-dev.txt.

The requirements.txt file is a standard file used by pip to install Python packages, but we use it here for installing conda packages?! There are actually some automated bots/services that gets confused by this requirements.txt file, thinking it should use if to install PyPI packages but fails because it's not meant for that.

May want to raise this upstream too at https://github.com/fatiando/continuous-integration.

Needed for Zeit Now continuous documentation PR at #344, may help resolve weiji14/deepbedmap#153

Reminders

  • Run make format and make check to make sure the code follows the style guide.
  • Add tests for new features or tests that would have caught the bug that you're fixing.
  • Add new public functions/methods/classes to doc/api/index.rst.
  • Write detailed docstrings for all functions/methods.
  • If adding new functionality, add an example to docstrings or tutorials.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@weiji14
Rename requirements.txt to conda-requirements.txt
1a25234
The requirements.txt file is a standard file used by pip to install Python packages, and it is confusing to use it for installing conda packages.
@weiji14 weiji14 mentioned this pull request Oct 11, 2019
Continuous Documentation #344
Merged
5 tasks
@weiji14
weiji14 requested a review from a team October 11, 2019 21:36
@weiji14 weiji14 mentioned this pull request Oct 11, 2019
Automated documentation previews in pull requests #342
Closed
@seisman

seisman commented Oct 12, 2019

Copy link
Copy Markdown
Member

As far as I can see, all the packages in the requirements.txt and requirements-dev.txt can be installed via pip, except gmt=6.0.0rc4, right? As I said in #257, pygmt doesn't really dependent on the gmt package provided by conda-forge. I removed gmt from the requirements.txt files in #257, but it was added back in #311.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@weiji14

weiji14 commented Oct 12, 2019

Copy link
Copy Markdown
Member Author

Yes, the first problem is that the gmt=6.0.0rc4 line in requirements.txt doesn't work in the pip install case.

Second problem is that our CI build actually uses the requirements.txt file to install conda packages. Ideally we should be using an environment.yml (or similar) file to do that...

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

weiji14
weiji14 commented Oct 12, 2019
View reviewed changes
Comment thread .travis.yml Resolved

Uh oh!

There was an error while loading. Please reload this page.

@weiji14
Place gmt as extra requirement in continuous integration scripts
acfecfd
Move the conda gmt=6.0.0rc4 requirement from requirement.txt to the CONDA_INSTALL_EXTRA environment variable in our Travis and Azure build scripts.
@vercel
vercel Bot temporarily deployed to staging October 12, 2019 00:46 Inactive
@vercel

vercel Bot commented Oct 12, 2019 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

This pull request is being automatically deployed with ZEIT Now (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://zeit.co/gmt/pygmt/3qtvtcmrl
🌍 Preview: https://pygmt-git-fork-weiji14-rename-conda-requirements.gmt.now.sh

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@weiji14
Rename conda-requirements.txt back to requirements.txt
b526368
@vercel
vercel Bot temporarily deployed to staging October 12, 2019 00:52 Inactive
@weiji14 weiji14 changed the title Rename requirements.txt to conda-requirements.txt Move gmt from requirements.txt to CI scripts instead Oct 12, 2019
seisman
seisman approved these changes Oct 12, 2019
View reviewed changes
@weiji14
weiji14 merged commit 91ff1c3 into GenericMappingTools:master Oct 12, 2019
@weiji14
weiji14 deleted the rename/conda-requirements branch October 12, 2019 01:35
@leouieda

leouieda commented Oct 14, 2019

Copy link
Copy Markdown
Member

This raises an interesting issue that we'll have to think about. If we publish to PyPI, even though the install would work, the user will get an error on import because GMT hasn't been installed as well. Which means that our PyPI packages are almost useless unless we bundle GMT and other binaries into a wheel (which I'm not looking forward to doing). It would be very frustrating for non-GMT users to pip install pygmt and not get something useful.

I don't have a solution for this. If anyone has some thoughts, that would be great!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

weiji14 added a commit to weiji14/deepbedmap that referenced this pull request Oct 29, 2019
@weiji14
⬆️ Bump GMT to 6.0.0rc5, pygmt to 0.0.1a0-57-g7590d4a 📌 dask 0.12.3
4353c9e
Includes GenericMappingTools/pygmt#343 that will hopefully address https://github.com/dependabot/feedback/issues/482. There's also the new `makecpt` wrapper added in GenericMappingTools/pygmt#329. Need to temporarily pin dask at 0.12.3 because of some multiprocessing error.

- [GMT](https://github.com/GenericMappingTools/gmt) from 6.0.0rc3 to 6.0.0rc5
  - [Release notes](https://github.com/GenericMappingTools/gmt/releases/tag/6.0.0rc5)
  - [Commits](GenericMappingTools/gmt@6.0.0rc3...6.0.0rc5)
- [PyGMT](https://github.com/GenericMappingTools/pygmt) from 0.0.1a0-43-g421e10d to 0.0.1a0-57-g7590d4a.
  - [Commits](weiji14/pygmt@0.0.1a0-43-g421e10d...0.0.1a0-57-g7590d4a)

This branch was previously deployed

1 inactive deployment
staging — b526368c Deployed Oct 12, 2019 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@seisman seisman seisman approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Dependabot needs permission to see pygmt

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@weiji14 @seisman @leouieda
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.