From 756c015b874e60d23485dfc1a9369e5d1d0a7d12 Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Sun, 16 Sep 2018 20:05:13 -0700 Subject: [PATCH] Move version info inside module --- float_raster.py | 2 ++ setup.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/float_raster.py b/float_raster.py index 11cc11c..fed9bc1 100644 --- a/float_raster.py +++ b/float_raster.py @@ -12,6 +12,8 @@ from scipy import sparse __author__ = 'Jan Petykiewicz' +version = '0.4' + def raster(vertices: numpy.ndarray, grid_x: numpy.ndarray, diff --git a/setup.py b/setup.py index c726c99..fb5c7cc 100644 --- a/setup.py +++ b/setup.py @@ -1,9 +1,10 @@ #!/usr/bin/env python3 from setuptools import setup +import float_raster setup(name='float_raster', - version='0.4', + version=float_raster.version, description='High-precision anti-aliasing polygon rasterizer', author='Jan Petykiewicz', author_email='anewusername@gmail.com',