Move version into setup.py and read it back with pkg_resources

This commit is contained in:
jan 2019-09-12 12:21:09 +02:00
parent c92656bed8
commit 9cd2dd131b
2 changed files with 4 additions and 3 deletions

View File

@ -41,8 +41,10 @@ Dependencies:
"""
import pkg_resources
from .types import dx_lists_t, field_t, vfield_t, field_updater
from .vectorization import vec, unvec
__author__ = 'Jan Petykiewicz'
version = '0.5'
__version__ = pkg_resources.get_distribution('meanas').version

View File

@ -1,13 +1,12 @@
#!/usr/bin/env python3
from setuptools import setup, find_packages
import meanas
with open('README.md', 'r') as f:
long_description = f.read()
setup(name='meanas',
version=meanas.version,
version='0.5',
description='Electromagnetic simulation tools',
long_description=long_description,
long_description_content_type='text/markdown',