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

View file

@ -1,20 +1,25 @@
#!/usr/bin/env python3
from setuptools import setup
import float_raster
from setuptools import setup, find_packages
with open('README.md', 'r') as f:
long_description = f.read()
with open('float_raster/VERSION', 'r') as f:
version = f.read().strip()
setup(name='float_raster',
version=float_raster.version,
version=version,
description='High-precision anti-aliasing polygon rasterizer',
long_description=long_description,
long_description_content_type='text/markdown',
author='Jan Petykiewicz',
author_email='anewusername@gmail.com',
url='https://mpxd.net/code/jan/float_raster',
py_modules=['float_raster'],
packages=find_packages(),
package_data={
'float_raster': ['VERSION']
},
install_requires=[
'numpy',
'scipy',