Create folder-based module and use VERSION file

use VERSION to avoid importing the module before it's installed
This commit is contained in:
Jan Petykiewicz 2019-09-30 23:14:13 -07:00
commit 50e3822eac
5 changed files with 27 additions and 15 deletions

16
float_raster/__init__.py Normal file
View file

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