diff --git a/conda_recipe/meta.yaml b/conda_recipe/meta.yaml index ff84497..f373955 100644 --- a/conda_recipe/meta.yaml +++ b/conda_recipe/meta.yaml @@ -1,4 +1,4 @@ -{% set version = "1.3.4" %} +{% set version = "1.3.4.1" %} package: name: wrf-python diff --git a/setup.py b/setup.py index 49a3c84..3dbeaf3 100755 --- a/setup.py +++ b/setup.py @@ -6,8 +6,10 @@ # Bootstrap a numpy installation before trying to import it. import importlib try: - importlib.util.find_spec('numpy') -except ImportError: + numpy_module = importlib.util.find_spec('numpy') + if numpy_module is None: + raise ModuleNotFoundError +except (ImportError, ModuleNotFoundError): import subprocess subprocess.call([sys.executable, '-m', 'pip', 'install', 'numpy']) @@ -51,6 +53,8 @@ "fortran/omp.f90"] ) +#Note: __version__ will be set in the version.py script loaded below +__version__ = None with open("src/wrf/version.py") as f: exec(f.read()) @@ -83,7 +87,7 @@ "GitHub Repository:\n\n" "https://github.com/NCAR/wrf-python\n\n" "Documentation:\n\n" - "http://wrf-python.rtfd.org\n"), + "https://wrf-python.rtfd.org\n"), url="https://github.com/NCAR/wrf-python", version=__version__, package_dir={"": "src"}, @@ -112,7 +116,7 @@ license="Apache License 2.0", packages=setuptools.find_packages("src"), ext_modules=ext_modules, - download_url="http://python.org/pypi/wrf-python", + download_url="https://python.org/pypi/wrf-python", package_data={"wrf": ["data/psadilookup.dat"]}, scripts=[] ) diff --git a/src/wrf/version.py b/src/wrf/version.py index f9e47b6..b7b278a 100644 --- a/src/wrf/version.py +++ b/src/wrf/version.py @@ -1 +1 @@ -__version__ = "1.3.4" +__version__ = "1.3.4.1"