Use VERSION.py instead of plain text VERSION

This commit is contained in:
Jan Petykiewicz 2020-11-03 01:20:53 -08:00
commit e5e30a9414
4 changed files with 9 additions and 12 deletions

View file

@ -5,12 +5,7 @@ Module for rasterizing polygons, with float-precision anti-aliasing on
See the documentation for float_raster.raster(...) for details.
"""
import pathlib
from .VERSION import __version__
from .float_raster import *
__author__ = 'Jan Petykiewicz'
with open(pathlib.Path(__file__).parent / 'VERSION', 'r') as f:
__version__ = f.read().strip()