Skip to content

Commit

Permalink
fix(setup,linting): fix issues related to changes in setup and pylint (
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhughes-usgs authored Apr 20, 2022
1 parent 244c159 commit a46a7db
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion pymake/utils/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ def _request_get(url, verify=True, timeout=1, max_requests=10, verbose=False):
if verbose:
msg = f"open request attempt {idx + 1} of {max_requests}"
print(msg)
req = None
try:
req = requests.get(
url, stream=True, verify=verify, timeout=timeout
Expand All @@ -216,7 +217,8 @@ def _request_get(url, verify=True, timeout=1, max_requests=10, verbose=False):
else:
msg = "Cannot open request from:\n" + f" {url}\n\n"
print(msg)
req.raise_for_status()
if req is not None:
req.raise_for_status()

# successful request
break
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
requires = [
"setuptools>=45",
"wheel",
"setuptools_scm>=6.2",
]
build-backend = "setuptools.build_meta"

Expand Down
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
name = mfpymake
version = attr: pymake.config.__version__
description = pymake is a Python package to compile MODFLOW-based models.
long_description = file: README.md
long_description = file: README.md, LICENSE.md
long_description_content_type = text/markdown
author = Joseph D. Hughes
author_email = [email protected]
maintainer = Joseph D. Hughes
maintainer_email = [email protected]
license = CC0
license_files = LICENSE.md
platform = Windows, Mac OS-X, Linux
keywords = MODFLOW, groundwater, hydrogeology
classifiers =
Expand Down

0 comments on commit a46a7db

Please sign in to comment.