Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
<img src="https://raw.githubusercontent.com/modflowpy/flopy/master/examples/images/flopy3.png" alt="flopy3" style="width:50;height:20">

### Version 3.3.5 &mdash; release candidate
[![Build Status](https://travis-ci.org/modflowpy/flopy.svg?branch=develop)](https://travis-ci.org/modflowpy/flopy)
[![flopy continuous integration](https://github.com/modflowpy/flopy/actions/workflows/ci.yml/badge.svg?branch=develop)](https://github.com/modflowpy/flopy/actions/workflows/ci.yml)
[![Read the Docs](https://github.com/modflowpy/flopy/actions/workflows/rtd.yml/badge.svg?branch=develop)](https://github.com/modflowpy/flopy/actions/workflows/rtd.yml)

[![codecov](https://codecov.io/gh/modflowpy/flopy/branch/develop/graph/badge.svg)](https://codecov.io/gh/modflowpy/flopy)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/b23a5edd021b4aa19e947545ab49e577)](https://www.codacy.com/manual/jdhughes-usgs/flopy?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=modflowpy/flopy&amp;utm_campaign=Badge_Grade)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/3f44f457aa474a8f83ad60c1842f7be2)](https://www.codacy.com/gh/modflowpy/flopy/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=modflowpy/flopy&amp;utm_campaign=Badge_Grade)
[![Documentation Status](https://readthedocs.org/projects/flopy/badge/?version=latest)](https://flopy.readthedocs.io/en/latest/?badge=latest)

[![Anaconda-Server Badge](https://anaconda.org/conda-forge/flopy/badges/installer/conda.svg)](https://conda.anaconda.org/conda-forge)
Expand Down Expand Up @@ -145,7 +147,7 @@ How to Cite

##### ***Software/Code citation for FloPy:***

[Bakker, Mark, Post, Vincent, Hughes, J. D., Langevin, C. D., White, J. T., Leaf, A. T., Paulinski, S. R., Bellino, J. C., Morway, E. D., Toews, M. W., Larsen, J. D., Fienen, M. N., Starn, J. J., and Brakenhoff, Davíd, 2021, FloPy v3.3.5 &mdash; release candidate: U.S. Geological Survey Software Release, 07 August 2021, http://dx.doi.org/10.5066/F7BK19FH](http://dx.doi.org/10.5066/F7BK19FH)
[Bakker, Mark, Post, Vincent, Hughes, J. D., Langevin, C. D., White, J. T., Leaf, A. T., Paulinski, S. R., Bellino, J. C., Morway, E. D., Toews, M. W., Larsen, J. D., Fienen, M. N., Starn, J. J., and Brakenhoff, Davíd, 2021, FloPy v3.3.5 &mdash; release candidate: U.S. Geological Survey Software Release, 20 August 2021, http://dx.doi.org/10.5066/F7BK19FH](http://dx.doi.org/10.5066/F7BK19FH)


MODFLOW Resources
Expand Down
39 changes: 24 additions & 15 deletions release/make-release.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,10 @@ def update_version():
# write new version file
f = open(fpth, "w")
f.write(
"# {} version file automatically ".format(pak)
+ "created using...{0}\n".format(os.path.basename(__file__))
(
"# {} version file automatically created "
"using...{}\n".format(pak, os.path.basename(__file__))
)
)
f.write(
"# created on..."
Expand Down Expand Up @@ -284,26 +286,33 @@ def update_readme_markdown(vmajor, vminor, vmicro):
line = "### Version {}".format(version)
if not is_approved:
line += " &mdash; release candidate"
elif "[Build Status]" in line:
elif "[flopy continuous integration]" in line:
line = (
"[![flopy continuous integration](https://github.com/"
"modflowpy/flopy/actions/workflows/ci.yml/badge.svg?"
"branch={})](https://github.com/modflowpy/flopy/actions/"
"workflows/ci.yml)".format(branch)
)
elif "[Read the Docs]" in line:
line = (
"[![Build Status](https://travis-ci.org/modflowpy/"
+ "flopy.svg?branch={})]".format(branch)
+ "(https://travis-ci.org/modflowpy/flopy)"
"[![Read the Docs](https://github.com/modflowpy/flopy/"
"actions/workflows/rtd.yml/badge.svg?branch={})]"
"(https://github.com/modflowpy/flopy/actions/"
"workflows/rtd.yml)".format(branch)
)
elif "[Coverage Status]" in line:
line = (
"[![Coverage Status](https://coveralls.io/repos/github/"
+ "modflowpy/flopy/badge.svg?branch={})]".format(branch)
+ "(https://coveralls.io/github/modflowpy/"
+ "flopy?branch={})".format(branch)
"modflowpy/flopy/badge.svg?branch={0})]"
"(https://coveralls.io/github/modflowpy/"
"flopy?branch={0})".format(branch)
)
elif "[Binder]" in line:
# [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/modflowpy/flopy.git/develop)
line = (
"[![Binder](https://mybinder.org/badge_logo.svg)]"
+ "(https://mybinder.org/v2/gh/modflowpy/flopy.git/"
+ "{}".format(branch)
+ ")"
"(https://mybinder.org/v2/gh/modflowpy/flopy.git/"
"{})".format(branch)
)
elif "http://dx.doi.org/10.5066/F7BK19FH" in line:
line = get_software_citation(version, is_approved)
Expand Down Expand Up @@ -350,13 +359,13 @@ def update_notebook_examples_markdown():
# [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/modflowpy/flopy.git/develop)
line = (
"[![Binder](https://mybinder.org/badge_logo.svg)]"
+ "(https://mybinder.org/v2/gh/modflowpy/flopy.git/"
+ "{}".format(branch)
+ ")"
"(https://mybinder.org/v2/gh/modflowpy/flopy.git/"
"{})".format(branch)
)
f.write("{}\n".format(line))
f.close()


def update_PyPi_release(vmajor, vminor, vmicro):
# create disclaimer text
is_approved, disclaimer = get_disclaimer()
Expand Down