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

Extended the installation description #3958

Merged
merged 7 commits into from
Jan 27, 2021
Merged

Extended the installation description #3958

merged 7 commits into from
Jan 27, 2021

Conversation

MHBalsmeier
Copy link
Contributor

🚀 Pull Request

Description

As mentioned in Issue 3949, installation of Iris on Ubuntu was very difficult. I described an easy way to install Iris on Ubuntu without conda in the installation file in the documentation.

As mentioned in Issue 3949, installation of Iris on Ubuntu was very difficult. I described an easy way to install Iris on Ubuntu without conda here.
@SciTools-assistant SciTools-assistant added the Blocked: CLA needed See https://scitools.org.uk. Submit the form at: https://scitools.org.uk/cla/v4/form label Jan 26, 2021
@MHBalsmeier
Copy link
Contributor Author

Just signed this CLA.

@MHBalsmeier
Copy link
Contributor Author

Maybe someone can help me with why these tests fail?

@tkknight
Copy link
Contributor

The two doc tasks have failed as there are some warnings in the build. The build flag to promote warnings to errors is enabled, this ensures the documentation does not degrade over time.

I think the warnings seem to be:

/tmp/cirrus-ci-build/docs/iris/src/developers_guide/contributing_code_formatting.rst:25: WARNING: undefined label: installing_from_source
/tmp/cirrus-ci-build/docs/iris/src/developers_guide/contributing_running_tests.rst:8: WARNING: undefined label: installing_from_source
/tmp/cirrus-ci-build/docs/iris/src/whatsnew/3.0.rst:262: WARNING: undefined label: installing_from_source

(see this on cirrus: https://cirrus-ci.com/task/6044147754729472?command=tests#L593)

I think you may have renamed the existing label _installing_from_source to be _installing_from_source_with_conda, meaning the existing references to the old label are now flagging an error.

I suggest you rename the label back, or correct the references in the above three files.

HTH.

 _installing_from_source_with_conda -> _installing_from_source because tests failed
@SciTools-assistant SciTools-assistant removed the Blocked: CLA needed See https://scitools.org.uk. Submit the form at: https://scitools.org.uk/cla/v4/form label Jan 26, 2021
@MHBalsmeier
Copy link
Contributor Author

Don't know what went wrong now. Is it because of this:

(line 245) broken https://www.unidata.ucar.edu/software/udunits/udunits-current/doc/udunits/udunits2.html - 404 Client Error: Not Found for url: https://www.unidata.ucar.edu/software/udunits/udunits-current/doc/udunits/udunits2.html

maybe?

@trexfeathers
Copy link
Contributor

The change in #3942 is due to be merged back into master branch in the next couple of days, which will fix the link check failure. I suggest waiting for this mergeback and then rebasing your branch onto master once that happens.

@trexfeathers
Copy link
Contributor

... alternatively you could just cherry pick the relevant commit (83d1b72) onto your branch as soon as you like:

git cherry-pick 83d1b72

* update links

* added s to http
@tkknight
Copy link
Contributor

The changes render html ok. I would suggest that the new lines added are limited to 80 chars in length as it makes reading the source .rst files much easier. The only exceptions are when you embed commands, so the sudo and pip3 commands are ok on a single line.

I hope that makes sense. We should be get to get this approved and then merged.

@MHBalsmeier
Copy link
Contributor Author

MHBalsmeier commented Jan 26, 2021

The commit I did from the command line (c557a20) screwed it up I think. CLA-checker refuses to accept it now.
I had the wrong email address in git config. I am not sure if I can fix this now.

@trexfeathers
Copy link
Contributor

I am not sure if I can fix this now.

Re-do those commits using a rebase or reset, then push -f to apply those changes to this PR?

@MHBalsmeier
Copy link
Contributor Author

Should be okay now.

@bjlittle
Copy link
Member

@MHBalsmeier Awesome! Thanks for taking the time to contribute this PR - it's really appreciated 😀

As an aside, I'm soon to push the iris 3.0.0 release to PyPI. It would be great if you could test a pip install given your installation on ubuntu.

Fancy confirming whether the install of 3.0.0 works from PyPI?

@bjlittle
Copy link
Member

@MHBalsmeier Also, could you make an entry for your PR in the docs/iris/src/whatsnew/latest.rst?

We're keen to recognise your valued contribution 👍

Finally, Iris and its Python dependencies can be installed with the following
command::

pip3 install astropy tqdm oktopus bs4 setuptools nc_time_axis cython cfunits cf-units cf-python pandas stratify pyugrid scitools-pyke black imagehash nose asv scitools-iris
Copy link
Member

Choose a reason for hiding this comment

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

@MHBalsmeier You seem to have quite a few extra dependencies and optional dependencies mixed in here... would it be possible to strip this example back to it's essential bare minimum?

I'm guessing that this is the package dependency requirements for your specific area of research/work.

The following appear to extra dependencies for your particular needs:

  • astropy
  • tqdm
  • oktopus
  • bs4
  • cython
  • cf-python
  • asv

The following appear to be optional dependencies of iris, but not strictly necessary:

  • nc_time_axis
  • pandas
  • stratify
  • pyugrid
  • black
  • imagehash
  • nose

I'm also assuming that cfunits isn't a necessary dependency for cf-units? (cfunits is a similar package as our SciTools cf-units, which is maintained by David Hassell from Reading University)

So, I guess my question is, could this actually boil down to simply:

> pip3 install setuptools cf-units scitools-pyke scitools-iris

Although, I'm guessing (off the top of my head) that cython is necessary for cf-units? If that's the case then we have:

> pip3 install setuptools cython cf-units scitools-pyke scitools-iris

Is it possible for you to confirm this?

@bjlittle
Copy link
Member

@MHBalsmeier BTW I've just uploaded scitools-iris 3.0.0 to PyPI... fancy giving it a try? 😄

@MHBalsmeier
Copy link
Contributor Author

The way I have it now works with v3.0.0. cftime would throw an error if not included explicitly with a version number due to a dependency conflict.

Copy link
Member

@bjlittle bjlittle left a comment

Choose a reason for hiding this comment

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

@MHBalsmeier Awesome work! Thank you! 💯 🎉 🍻

LGTM... @trexfeathers I'll leave you review and merge when your happy 👍

trexfeathers added a commit to trexfeathers/iris that referenced this pull request Jan 27, 2021
tkknight added a commit to tkknight/iris that referenced this pull request Feb 1, 2021
* master:
  remove explicit URLs for core dev names from latest.rst (SciTools#3973)
  document that iris.coords.Coord is an ABC (SciTools#3971)
  reorganise docs common links + add core devs (SciTools#3972)
  Docs whatsnew add dropdowns to the template (SciTools#3969)
  Docs whatsnew enumerated lists (SciTools#3970)
  Merge back v3p0p1 (SciTools#3966)
  Captilise installation heading - align SciTools#3958 content with SciTools#3940. (SciTools#3963)
  Merge back v3p0p0 (SciTools#3960)
  Extended the installation description (SciTools#3958)
tkknight added a commit to tkknight/iris that referenced this pull request Feb 9, 2021
* master: (23 commits)
  Added text to state the Python version used to build the docs. (SciTools#3989)
  add nox session conda list (SciTools#3990)
  Add abstract cube summary (SciTools#3987)
  automate docs discovery of iris and python versions (SciTools#3981)
  corrected syntax (SciTools#3980)
  core dev whatsnew entry (SciTools#3978)
  moved docs dir and updated references to it (SciTools#3975)
  Fix test_incompatible_dimensions test (SciTools#3977)
  remove explicit URLs for core dev names from latest.rst (SciTools#3973)
  document that iris.coords.Coord is an ABC (SciTools#3971)
  reorganise docs common links + add core devs (SciTools#3972)
  Docs whatsnew add dropdowns to the template (SciTools#3969)
  Docs whatsnew enumerated lists (SciTools#3970)
  Merge back v3p0p1 (SciTools#3966)
  Captilise installation heading - align SciTools#3958 content with SciTools#3940. (SciTools#3963)
  Merge back v3p0p0 (SciTools#3960)
  Extended the installation description (SciTools#3958)
  Put cube data on the x axis if plotting just a cube against a vertical or y coordinate (SciTools#3906)
  remove stock_mdi_arrays.npz (SciTools#3913)
  Gallery: update seasonal ensemble example (SciTools#3933)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants