forked from jan/fatamorgana
Compare commits
3 commits
| Author | SHA1 | Date | |
|---|---|---|---|
| deb0fe3bef | |||
| e0c2947865 | |||
| e514ade2b1 |
4 changed files with 15 additions and 5 deletions
|
|
@ -1,2 +1,3 @@
|
||||||
include README.md
|
include README.md
|
||||||
include LICENSE.md
|
include LICENSE.md
|
||||||
|
include fatamorgana/VERSION
|
||||||
|
|
|
||||||
1
fatamorgana/VERSION
Normal file
1
fatamorgana/VERSION
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
0.5
|
||||||
|
|
@ -18,6 +18,8 @@
|
||||||
- Python 3.5 or later
|
- Python 3.5 or later
|
||||||
- numpy (optional, no additional functionality)
|
- numpy (optional, no additional functionality)
|
||||||
"""
|
"""
|
||||||
|
import pathlib
|
||||||
|
|
||||||
from .main import OasisLayout, Cell, XName
|
from .main import OasisLayout, Cell, XName
|
||||||
from .basic import NString, AString, Validation, OffsetTable, OffsetEntry, \
|
from .basic import NString, AString, Validation, OffsetTable, OffsetEntry, \
|
||||||
EOFError, SignedError, InvalidDataError, InvalidRecordError
|
EOFError, SignedError, InvalidDataError, InvalidRecordError
|
||||||
|
|
@ -25,4 +27,7 @@ from .basic import NString, AString, Validation, OffsetTable, OffsetEntry, \
|
||||||
|
|
||||||
__author__ = 'Jan Petykiewicz'
|
__author__ = 'Jan Petykiewicz'
|
||||||
|
|
||||||
version = '0.4'
|
with open(pathlib.Path(__file__).parent / 'VERSION', 'r') as f:
|
||||||
|
__version__ = f.read().strip()
|
||||||
|
version = __version__
|
||||||
|
|
||||||
|
|
|
||||||
11
setup.py
11
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 fatamorgana
|
|
||||||
|
|
||||||
with open('README.md', 'r') as f:
|
with open('README.md', 'r') as f:
|
||||||
long_description = f.read()
|
long_description = f.read()
|
||||||
|
|
||||||
|
with open('fatamorgana/VERSION', 'r') as f:
|
||||||
|
version = f.read().strip()
|
||||||
|
|
||||||
setup(name='fatamorgana',
|
setup(name='fatamorgana',
|
||||||
version=fatamorgana.version,
|
version=version,
|
||||||
description='OASIS layout format parser and writer',
|
description='OASIS layout format parser and writer',
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
long_description_content_type='text/markdown',
|
long_description_content_type='text/markdown',
|
||||||
|
|
@ -35,7 +37,6 @@ setup(name='fatamorgana',
|
||||||
'gds',
|
'gds',
|
||||||
],
|
],
|
||||||
classifiers=[
|
classifiers=[
|
||||||
'Programming Language :: Python',
|
|
||||||
'Programming Language :: Python :: 3',
|
'Programming Language :: Python :: 3',
|
||||||
'Development Status :: 3 - Alpha',
|
'Development Status :: 3 - Alpha',
|
||||||
'Environment :: Other Environment',
|
'Environment :: Other Environment',
|
||||||
|
|
@ -48,9 +49,11 @@ setup(name='fatamorgana',
|
||||||
'Operating System :: Microsoft :: Windows',
|
'Operating System :: Microsoft :: Windows',
|
||||||
'Topic :: Scientific/Engineering',
|
'Topic :: Scientific/Engineering',
|
||||||
'Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)',
|
'Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)',
|
||||||
'Topic :: Software Development :: Libraries :: Python Modules',
|
|
||||||
],
|
],
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
|
package_data={
|
||||||
|
'fatamorgana': ['VERSION']
|
||||||
|
},
|
||||||
install_requires=[
|
install_requires=[
|
||||||
'typing',
|
'typing',
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue