diff --git a/.gitignore b/.gitignore index 522a2f3ea..5d3dc7823 100644 --- a/.gitignore +++ b/.gitignore @@ -24,6 +24,7 @@ wheels/ .installed.cfg *.egg MANIFEST +_version.py # PyInstaller # Usually these files are written by a python script from a template diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 000000000..096dd5031 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,2 @@ +include LICENSE +include requirements.txt diff --git a/icepyx/__init__.py b/icepyx/__init__.py index c6a0b6d0d..e70e9b1dc 100644 --- a/icepyx/__init__.py +++ b/icepyx/__init__.py @@ -1 +1,3 @@ from icepyx.core.query import Query + +from _version import version as __version__ diff --git a/requirements.txt b/requirements.txt index 3fd176fc7..1e34d2b92 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,9 +1,7 @@ -datetime fiona geopandas h5py matplotlib numpy -pre-commit requests shapely diff --git a/setup.py b/setup.py index 3f7353dad..2b73b205e 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,6 @@ setuptools.setup( name="icepyx", - version="0.3.2", author="The icepyx Developers", author_email="jbscheick@gmail.com", maintainer="Jessica Scheick", @@ -27,4 +26,9 @@ "Operating System :: OS Independent", "Development Status :: 1 - Planning", ], + use_scm_version={ + "write_to": "_version.py", + "write_to_template": 'version = "{version}"\n', + }, + setup_requires=["setuptools>=30.3.0", "wheel", "setuptools_scm"] )