diff --git a/setup.cfg b/setup.cfg index f2d94b17..61ea4b8d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = s1reader -version = 0.1.0 +version = attr: s1reader.__version__ description = A Sentinel1 metadata reader long_description = file: README.md long_description_content_type = text/markdown diff --git a/src/s1reader/__init__.py b/src/s1reader/__init__.py index 9ba592ee..895081fa 100644 --- a/src/s1reader/__init__.py +++ b/src/s1reader/__init__.py @@ -1,3 +1,6 @@ +# version info +from .version import release_version as __version__ + # top-level functions to be easily used from .s1_burst_slc import Sentinel1BurstSlc from .s1_reader import load_bursts diff --git a/src/s1reader/version.py b/src/s1reader/version.py new file mode 100644 index 00000000..9d1755fe --- /dev/null +++ b/src/s1reader/version.py @@ -0,0 +1,17 @@ +# release history + +import collections + + +# release history +Tag = collections.namedtuple('Tag', 'version date') +release_history = ( + Tag('0.1.0', '2022-06-07'), +) + +# latest release version number and date +release_version = release_history[0].version +release_date = release_history[0].date + +# variable +__version__ = release_version