idaholab / raven

RAVEN is a flexible and multi-purpose probabilistic risk analysis, validation and uncertainty quantification, parameter optimization, model reduction and data knowledge-discovering framework.
https://raven.inl.gov/
Apache License 2.0
216 stars 132 forks source link

Support of pip installation of repo via pip. Closes #2276 #2277

Closed alfoa closed 4 months ago

alfoa commented 5 months ago

Pull Request Description

What issue does this change request address? (Use "#" before the issue to link it, i.e., #42.)

Closes #2276

What are the significant changes in functionality due to this change request?

Addition of the possibility in the library_hadler to accept a keyword "repo" to indicate that a dependency should be installed from a GitHub repository directly (using pip install git+https)


For Change Control Board: Change Request Review

The following review must be completed by an authorized member of the Change Control Board.

moosebuild commented 5 months ago

Job Test CentOS 8 on e9e6f83 : invalidated by @wangcj05

envs issue

joshua-cogliati-inl commented 5 months ago

Hm, can you give an example of how this would be used (sample dependencies.xml?) Thanks.

moosebuild commented 5 months ago

Job Test qsubs sawtooth on e9e6f83 : invalidated by @alfoa

moosebuild commented 5 months ago

Job Test CentOS 8 on e9e6f83 : invalidated by @alfoa

alfoa commented 5 months ago

Hm, can you give an example of how this would be used (sample dependencies.xml?) Thanks.

Absolutely. Here it as an example:

<dependencies>
  <main>
    <networkx/>
    <pytest/>
    <pyomo source='forge'/>
    <glpk source='forge' skip_check='True'/>
    <shapely source="pip"/>
    <armi source="pip"  repo="https://github.com/terrapower/armi.git"/>
  </main>

</dependencies>
alfoa commented 5 months ago

@alfoa This PR looks good to me. One suggestion is to put an example in our dependency file (using commented lines), since we do not have documentation for library handling.

@joshua-cogliati-inl Do you have any comments on this PR?

Perfect. Added

wangcj05 commented 4 months ago

PR checklist is good. PR can be merged.