-
Notifications
You must be signed in to change notification settings - Fork 304
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(setup.py): read package name, version, etc. from version.py (#893)
Import of `__version__`, `__name__`, and `__author__` from `flopy` caused failure of `setup.py` because of dependency of `flopy` on `numpy` with python installations that did not already have `numpy` installed. Moved all information needed by `setup.py` to `version.py` and update `make-release.py` to retain `__name__`, `__author__`, and `__author_email__` information in file after updating version numbers. Removed unintended unmanaged dependency on `matplotlib` in `gridintersect.py` by wrapping import in a try and except. In the case that `matplotlib` is not installed and methods that depend on `matplotlib` are called then a `ModuleNotFoundError` exception is issued. Closes #892 * fix(setup.py): read package name, version, etc. from version.py Import of __version__, __name__, and __author__ from flopy caused failure of setup.py because of dependency of flopy on numpy with python installations that did not already have numpy installed. Moved all information needed by setup.py to version.py and update make-release.py to retain __name__, __author__, and __author_email__ information in file after updating version numbers. Removed unintended unmanaged dependency on matplotlib in gridintersect.py by wrapping import in a try and except. In the case that matplotlib is not installed and methods that depend on matplotlib are called then a ModuleNotFoundError exception is issued. Closes #892
- Loading branch information
1 parent
3cec792
commit b80a89c
Showing
5 changed files
with
71 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,28 @@ | ||
# flopy version file automatically created using...make-release.py | ||
# created on...December 15, 2019 09:55:43 | ||
# created on...May 26, 2020 17:16:58 | ||
|
||
major = 3 | ||
minor = 3 | ||
micro = 1 | ||
__version__ = '{:d}.{:d}.{:d}'.format(major, minor, micro) | ||
|
||
__pakname__ = 'flopy' | ||
|
||
# edit author dictionary as necessary | ||
author_dict = { | ||
'Mark Bakker': 'mark.bakker@tudelft.nl', | ||
'Vincent Post': 'Vincent.Post@bgr.de', | ||
'Christian D. Langevin': 'langevin@usgs.gov', | ||
'Joseph D. Hughes': 'jdhughes@usgs.gov', | ||
'Jeremy T. White': 'jwhite@usgs.gov', | ||
'Andrew T. Leaf': 'aleaf@usgs.gov', | ||
'Scott R. Paulinski': 'spaulinski@usgs.gov', | ||
'Joshua D. Larsen': 'jlarsen@usgs.gov', | ||
'Michael W. Toews': 'M.Toews@gns.cri.nz', | ||
'Eric D. Morway': 'emorway@usgs.gov', | ||
'Jason C. Bellino': 'jbellino@usgs.gov', | ||
'Jeffrey Starn': 'jjstarn@usgs.gov', | ||
'Michael N. Fienen': 'mnfienen@usgs.gov', | ||
} | ||
__author__ = ', '.join(author_dict.keys()) | ||
__author_email__ = ', '.join(s for _, s in author_dict.items()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters