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

@ -1 +0,0 @@
0.5

4
float_raster/VERSION.py Normal file
View file

@ -0,0 +1,4 @@
""" VERSION defintion. THIS FILE IS MANUALLY PARSED BY setup.py and REQUIRES A SPECIFIC FORMAT """
__version__ = '''
0.5
'''

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()