Use VERSION.py instead of plain text VERSION
This commit is contained in:
parent
522b610209
commit
e5e30a9414
4 changed files with 9 additions and 12 deletions
|
|
@ -1 +0,0 @@
|
|||
0.5
|
||||
4
float_raster/VERSION.py
Normal file
4
float_raster/VERSION.py
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
""" VERSION defintion. THIS FILE IS MANUALLY PARSED BY setup.py and REQUIRES A SPECIFIC FORMAT """
|
||||
__version__ = '''
|
||||
0.5
|
||||
'''
|
||||
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue