coecms / ARCCSSive

ARCCSS Data Access Tools
Apache License 2.0
3 stars 1 forks source link

Make `compare_ESGF` and `search_replica` proper CLI commands #25

Closed ScottWales closed 7 years ago

ScottWales commented 7 years ago

The compare_ESGF.py and search_replica.py scripts have been moved to ARCCSSive.cli, with a main() function added for each. These files have been added to the conda config file's entry_points, so they can be run like compare_ESGF and search_replica. Note that compare_ESGF is only available for Python 2 currently.

The testing infrastructure in circleci/config.yaml has also been updated to use a custom Docker image, which simplifies the configuration. I've also added a workflow to properly upload the library to anaconda.org/coecms when a new release is made.

codecov[bot] commented 7 years ago

Codecov Report

Merging #25 into master will decrease coverage by 7.69%. The diff coverage is 8.58%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master      #25     +/-   ##
=========================================
- Coverage   46.68%   38.99%   -7.7%     
=========================================
  Files          11       13      +2     
  Lines         649      836    +187     
=========================================
+ Hits          303      326     +23     
- Misses        346      510    +164
Impacted Files Coverage Δ
ARCCSSive/cli/search_replica.py 18.64% <5.71%> (ø)
ARCCSSive/cli/compare_ESGF.py 9.37% <9.37%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 25d93d3...a589d43. Read the comment docs.

ScottWales commented 7 years ago

@paolap if you're happy with this I'll make a new release so that the command line tools are available to users.