mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-14 11:33:42 +02:00
build: extract version number in setup.py from version.py
This commit is contained in:
parent
5c47188931
commit
0d02e4d4b9
3 changed files with 9 additions and 1 deletions
8
setup.py
8
setup.py
|
@ -1,10 +1,16 @@
|
|||
from setuptools import setup, find_packages
|
||||
from pathlib import Path
|
||||
from distutils.util import convert_path
|
||||
|
||||
this_directory = Path(__file__).parent
|
||||
long_description = (this_directory / "README.md").read_text()
|
||||
|
||||
version = {}
|
||||
with open(convert_path('pyerrors/version.py')) as ver_file:
|
||||
exec(ver_file.read(), version)
|
||||
|
||||
setup(name='pyerrors',
|
||||
version='2.2.0+dev',
|
||||
version=version['__version__'],
|
||||
description='Error analysis for lattice QCD',
|
||||
long_description=long_description,
|
||||
long_description_content_type='text/markdown',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue