Use separate VERSION file
This commit is contained in:
parent
2259e7987b
commit
f471374b68
@ -1,2 +1,3 @@
|
|||||||
include README.md
|
include README.md
|
||||||
include LICENSE.md
|
include LICENSE.md
|
||||||
|
include masque/VERSION
|
||||||
|
1
masque/VERSION
Normal file
1
masque/VERSION
Normal file
@ -0,0 +1 @@
|
|||||||
|
0.5
|
@ -23,6 +23,8 @@
|
|||||||
- svgwrite [masque.file.svg]
|
- svgwrite [masque.file.svg]
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
import pathlib
|
||||||
|
|
||||||
from .error import PatternError
|
from .error import PatternError
|
||||||
from .shapes import Shape
|
from .shapes import Shape
|
||||||
from .label import Label
|
from .label import Label
|
||||||
@ -33,4 +35,6 @@ from .pattern import Pattern
|
|||||||
|
|
||||||
__author__ = 'Jan Petykiewicz'
|
__author__ = 'Jan Petykiewicz'
|
||||||
|
|
||||||
version = '0.5'
|
with open(pathlib.Path(__file__).parent / 'VERSION', 'r') as f:
|
||||||
|
__version__ = f.read().strip()
|
||||||
|
version = __version__
|
||||||
|
9
setup.py
9
setup.py
@ -1,13 +1,15 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
import masque
|
|
||||||
|
|
||||||
with open('README.md', 'r') as f:
|
with open('README.md', 'r') as f:
|
||||||
long_description = f.read()
|
long_description = f.read()
|
||||||
|
|
||||||
|
with open('masque/VERSION', 'r') as f:
|
||||||
|
version = f.read().strip()
|
||||||
|
|
||||||
setup(name='masque',
|
setup(name='masque',
|
||||||
version=masque.version,
|
version=version,
|
||||||
description='Lithography mask library',
|
description='Lithography mask library',
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
long_description_content_type='text/markdown',
|
long_description_content_type='text/markdown',
|
||||||
@ -15,6 +17,9 @@ setup(name='masque',
|
|||||||
author_email='anewusername@gmail.com',
|
author_email='anewusername@gmail.com',
|
||||||
url='https://mpxd.net/code/jan/masque',
|
url='https://mpxd.net/code/jan/masque',
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
|
package_data={
|
||||||
|
'masque': ['VERSION']
|
||||||
|
},
|
||||||
install_requires=[
|
install_requires=[
|
||||||
'numpy',
|
'numpy',
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user